Hi Gerry, thank you for your response.
Unfortunately I don’t have the logs all the way back to when this started, but what we were seeing in the log files is:
Apr 19 16:39:12 europa-cedsdb systemd-logind[1129]: Removed session 81.
Apr 19 16:39:12 europa-cedsdb NetworkManager[162356]: [1650382752.1230] device (ens192): state change: activated → deactivating (reason ‘connection-removed’, sys-iface-state: ‘managed’)
Apr 19 16:39:12 europa-cedsdb NetworkManager[162356]: [1650382752.1244] manager: NetworkManager state is now CONNECTED_LOCAL
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2291] policy: auto-activating connection ‘ens192’ (a5979606-4042-421a-af32-3c7ff505ab6f)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2298] device (ens192): Activation: starting connection ‘ens192’ (a5979606-4042-421a-af32-3c7ff505ab6f)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2299] device (ens192): state change: disconnected → prepare (reason ‘none’, sys-iface-state: ‘managed’)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2302] manager: NetworkManager state is now CONNECTING
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2303] device (ens192): state change: prepare → config (reason ‘none’, sys-iface-state: ‘managed’)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2311] device (ens192): state change: config → ip-config (reason ‘none’, sys-iface-state: ‘managed’)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2328] device (ens192): state change: ip-config → ip-check (reason ‘none’, sys-iface-state: ‘managed’)
Apr 20 09:41:56 europa-cedsdb dbus-daemon[1031]: [system] Activating via systemd: service name=‘org.freedesktop.nm_dispatcher’ unit=‘dbus-org.freedesktop.nm-dispatcher.service’ requested by ‘:1.437’ (uid=0 pid=162356 comm="/usr/sbin/NetworkManager --no-daemon " label=“system_u:system_r:NetworkManager_t:s0”)
Apr 20 09:41:56 europa-cedsdb systemd-logind[1129]: New session 82 of user root.
Apr 20 09:41:56 europa-cedsdb systemd[1]: Starting Network Manager Script Dispatcher Service…
Apr 20 09:41:56 europa-cedsdb systemd[1]: Started /run/user/0 mount wrapper.
Apr 20 09:41:56 europa-cedsdb systemd[1]: Created slice User Slice of UID 0.
Apr 20 09:41:56 europa-cedsdb systemd[1]: Starting User Manager for UID 0…
Apr 20 09:41:56 europa-cedsdb systemd[1]: Started Session 82 of user root.
Apr 20 09:41:56 europa-cedsdb dbus-daemon[1031]: [system] Successfully activated service ‘org.freedesktop.nm_dispatcher’
Apr 20 09:41:56 europa-cedsdb systemd[1]: Started Network Manager Script Dispatcher Service.
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2517] device (ens192): state change: ip-check → secondaries (reason ‘none’, sys-iface-state: ‘managed’)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2520] device (ens192): state change: secondaries → activated (reason ‘none’, sys-iface-state: ‘managed’)
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2524] manager: NetworkManager state is now CONNECTED_LOCAL
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2536] manager: NetworkManager state is now CONNECTED_SITE
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2537] policy: set ‘ens192’ (ens192) as default for IPv4 routing and DNS
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2644] device (ens192): Activation: successful, device activated.
Apr 20 09:41:56 europa-cedsdb NetworkManager[162356]: [1650444116.2650] manager: NetworkManager state is now CONNECTED_GLOBAL
So this shows that when a root session was terminated on the box, the primary interface was shut down/disconnected and was restored again when establishing a root session.
I started to look into the behind the scenes network configuration as on the face of things (given that when i logged in everything was up and running) network connectivity, routing, arp tables etc were all fine.
The output of: nmcli connection show
gave the following:
connection.id: ens192
connection.uuid:
connection.stable-id: –
connection.type: 802-3-ethernet
connection.interface-name: ens192
connection.autoconnect: yes
connection.autoconnect-priority: 0
connection.autoconnect-retries: -1 (default)
connection.multi-connect: 0 (default)
connection.auth-retries: -1
connection.timestamp: 1650534191
connection.read-only: no
connection.permissions: user:root
(removed all the other information)
It’s that final line that was the issue. The second interface on the box was unaffected.
when running nmtui and editing the interface in question, there is a check box for ‘available to all users’ that was unticked but this isn’t something that was manually changed.
I have tried and tried to find something to understand why this was changed but so far haven’t been able to track it down.
I’m wondering whether it’s potentially a bug or some kind of protective mechanism in place specifically for Rocky (Centos 8 boxes haven’t displayed the same behaviour despite having all the same actions for the migration carried out on them) when the MAC address of an interface has changed.
Checking that box in the network config has resolved the issue but I would like to just be able to understand why it happened.
Thank you
Luke