Skip to content
This repository was archived by the owner on Nov 11, 2021. It is now read-only.
This repository was archived by the owner on Nov 11, 2021. It is now read-only.

Network restart never happens on CentOS 7.5 #254

@lschweiss-wustl

Description

@lschweiss-wustl

Expected Behavior

When adding a routing rule to an interface the network should be restarted for at least that interface.

Actual Behavior

Network restart claims to happen, but never does:

Notice: /Stage[main]/Network/Network::Mroute[ens192]/File[route-ens192]/ensure: defined content as '{md5}14562cbe8446fd65d5001ada0a17524e'
Info: /Stage[main]/Network/Network::Mroute[ens192]/File[route-ens192]: Scheduling refresh of Exec[service network restart]
Notice: /Stage[main]/Network/Exec[service network restart]: Triggered 'refresh' from 1 events

After the Puppet run:

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.27.125.158   0.0.0.0         UG        0 0          0 ens192
10.27.125.128   0.0.0.0         255.255.255.224 U         0 0          0 ens192

# service network restart
Restarting network (via systemctl):                        [  OK  ]

# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         10.27.125.158   0.0.0.0         UG        0 0          0 ens192
10.27.125.128   0.0.0.0         255.255.255.224 U         0 0          0 ens192
100.64.100.0    10.27.125.155   255.255.254.0   UG        0 0          0 ens192

Steps to Reproduce the Problem

  1. Add a route
  2. Run Puppet
  3. Observe routing table

Specifications

Please add this info:

  1. Output of facter -p on the failing node (at least the OS related facts)
os => {
  architecture => "x86_64",
  family => "RedHat",
  hardware => "x86_64",
  name => "CentOS",
  release => {
    full => "7.5.1804",
    major => "7",
    minor => "5"
  },
  selinux => {
    config_mode => "permissive",
    current_mode => "permissive",
    enabled => true,
    enforced => false,
    policy_version => "31"
  }
}
  1. Version of Puppet and of the module
    Puppet: 4.10.12 module: 3.5.0
  2. The relevant Puppet code and eventually Hiera data
classes:
  - network

network::mroutes_hash:
  ens192:
    routes:
      100.64.100.0/23: 10.27.125.155

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions