-
Feature
-
Resolution: Done
-
Critical
-
None
-
None
-
Not Selected
-
False
-
False
-
-
0
-
0
-
0% To Do, 0% In Progress, 100% Done
-
rhos-connectivity-nfv
-
Feature
-
-
Done
When a host is deployed using cloud-init there is a file created in /etc/sysconfig/network-scripts/ for network-scripts to handle. That can cause issues upon reboot if an interface has been configured with NetworkManager using nmcli or nmstate. If both network-scripts and NetworkManager are installed, and both have a configuration file in their respective places, then they will confict. os-net-config should remove any ifcfg files left by previous configuration tools once it uses the nmstate back-end to configure the network interface. This will prevent a collision.
A similar situation can occur if an interface is configured in a NetworkManager connection and then os-net-config adds an ifcfg configuration with NM_CONTROLLED=no. This might be done by calling nmstate with "state: absent" in the YAML, or by calling nmcli to make the interface disabled/unmanaged (state: ignore), or by causing NetworkManager to immediately detect that there is a configuration in /etc/sysconfig/network-scripts that takes precedence and it should mark the interface disabled. This can be done by restarting the NetworkManager service or sending the "nmcli con reload" command.
When os-net-config is adding a new ifcfg file with NM_CONTROLLED=no it should resolve these conflicts.
Acceptance criteria:
1) Handle any exception raised by ifcfg vs nmstate config without end user's intervention
2) Log the conflict but dont abort/stop deployment/config operations
Doc imapct:
No Yes (Haresh updated this answer 10/27/25 based on input from Karthik)
- depends on
-
OSPRH-12238 BZ#1839790 [rfe] allow os-net-config to unconfigure previously managed interfaces that are no longer used or that are changed
-
- Closed
-
- is related to
-
OSPRH-13433 edpm node lost connectivity when running configure-network service
-
- Backlog
-
- links to