-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-7-els, rhel-8.0.0, rhel-9.0.0
-
No
-
Low
-
rhel-net-mgmt
-
None
-
False
-
False
-
-
None
-
None
-
-
None
-
None
-
-
All
-
None
What were you trying to do that didn't work?
After changing the IPv4/IPv6 method manually from DHCP to manual followed by `nmcli connection reload`, the NetworkManager does not recognize the connection profile.
How reproducible is this bug?:
Always and On all RHEL versions that have NetworkManager installed.
Steps to reproduce
- Create a DHCP connection using nmcli.
# nmcli connection add type ethernet ifname eth0 con-name eth0 - Reload the connection:
#nmcli connection reload - Verify the interface got the IP from DHCP.
- Go to /etc/NetworkManager/system-connections/
- Edit the profile/keyfile/interface configuration.
- Change the method from DHCP to manual for IPv4 or IPv6.
#vi /etc/NetworkManager/system-connections/eth0.nmconnection
[connection] id=eth0 uuid=856cd26d-f6bb-476a-a8c3-02253287d484 type=ethernet interface-name=eth0 [ethernet] [ipv4] method=auto <<<----//Change this to manual [ipv6] addr-gen-mode=default method=auto <<<----//Change this to manual
7.Now reload the connection.
# nmcli connection reload
8. After reloading nmcli the existing connection profile is no longer visible in `nmcli connection show` output.
# nmcli connection show
NAME UUID TYPE DEVICE
- messages shows
Jan 20 10:00:24 localhost NetworkManager[668]: <warn> [1737385224.6339] keyfile: load: "/etc/NetworkManager/system-connections/eth0-856cd26d-f6bb-476a-a8c3-02253287d484.nmconnection": failed to load connection: invalid connection: ipv4.addresses: this property cannot be empty for 'method=manual' Jan 20 10:00:24 localhost NetworkManager[668]: <info> [1737385224.6357] device (eth0): state change: activated -> deactivating (reason 'connection-removed', sys-iface-state: 'managed') Jan 20 10:00:24 localhost NetworkManager[668]: <info> [1737385224.6393] audit: op="connections-reload" pid=1832 uid=0 result="success" Jan 20 10:00:24 localhost systemd[1]: Starting Network Manager Script Dispatcher Service... Jan 20 10:00:24 localhost systemd[1]: Started Network Manager Script Dispatcher Service. Jan 20 10:00:24 localhost NetworkManager[668]: <info> [1737385224.6653] device (eth0): state change: deactivating -> disconnected (reason 'connection-removed', sys-iface-state: 'managed') Jan 20 10:00:24 localhost NetworkManager[668]: <info> [1737385224.6659] dhcp4 (eth0): canceled DHCP transaction Jan 20 10:00:24 localhost NetworkManager[668]: <info> [1737385224.6659] dhcp4 (eth0): activation: beginning transaction (timeout in 45 seconds) Jan 20 10:00:24 localhost NetworkManager[668]: <info> [1737385224.6659] dhcp4 (eth0): state changed no lease Jan 20 10:00:34 localhost systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.