On RHEL/CentOS 8, this role now installs the network-scripts RPM. This RPM provides the legacy ifup / ifdown implementations that can bypass NetworkManager. It also provides a network init.d script. However, this script is not enabled by default.
Since we use NM_CONTROLLED=no, this means that a role invocation will work fine, until the next reboot or until the DHCP lease expires (when using DHCP), whichever comes first.
Steps to reproduce in a fresh CentOS 8 cloud image using DHCP on eth0:
$ sudo systemctl enable network.service
network.service is not a native service, redirecting to systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable network
On RHEL/CentOS 8, this role now installs the
network-scripts
RPM. This RPM provides the legacyifup
/ifdown
implementations that can bypass NetworkManager. It also provides a network init.d script. However, this script is not enabled by default.Since we use
NM_CONTROLLED=no
, this means that a role invocation will work fine, until the next reboot or until the DHCP lease expires (when using DHCP), whichever comes first.Steps to reproduce in a fresh CentOS 8 cloud image using DHCP on
eth0
:Expected result
Network is functional
Actual result
No network is configured
Solution
Enable the legacy network init script: