You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On one of our vcs cluster, which adds two static routs,
after applying the interface config using nmstatectl apply (via ncm-network) on reboot it seems to revert back to previous config. running nmstatectl apply again fixes it.
on reboot it appears to use the connection from /run and not the update config in /etc and config in run does not match the updated config in /etc/. During reboot it seem to always apply the config in /run/.
nmcli dev shows this as externally connected.
$ nmcli dev status
DEVICE TYPE STATE CONNECTION
lo loopback connected (externally) lo
dummy_hostname dummy connected dummy_hostname
eth0 ethernet connected (externally) eth0
eth1 ethernet connected (externally) eth1
# nmcli -f filename conn
FILENAME
/run/NetworkManager/system-connections/lo.nmconnection
/etc/NetworkManager/system-connections/dummy_hostname.nmconnection
/run/NetworkManager/system-connections/eth0.nmconnection
/run/NetworkManager/system-connections/eth1.nmconnection
/etc/NetworkManager/system-connections/eth0.nmconnection
/etc/NetworkManager/system-connections/eth1.nmconnection
from NetworkManager.conf
keep-configuration
On startup, NetworkManager tries to not interfere with interfaces that are already configured. It does so by generating a in-memory
connection based on the interface current configuration.
If this generated connection matches one of the existing persistent connections, the persistent connection gets activated. If there is no
match, the generated connection gets activated as "external", which means that the connection is considered as active, but NetworkManager
doesn't actually touch the interface.
It is possible to disable this behavior by setting keep-configuration to no. In this way, on startup NetworkManager always tries to
activate the most suitable persistent connection (the one with highest autoconnect-priority or, in case of a tie, the one activated most
recently).
Note that when NetworkManager gets restarted, it stores the previous state in /run/NetworkManager; in particular it saves the UUID of the
connection that was previously active so that it can be activated again after the restart. Therefore, keep-configuration does not have
any effect on service restart.
That suggests that 'keep-configuration no' might work on a start/reboot to ignore the previous uuid in /run and configure the device.
I'm not sure why on this particular vcs cluter we are seeing this, but this suggests that 'keep-configuration no' work on a start/reboot to ignore the previous uuid in /run and configure the device. Setting this value fixes this problem.
We need an option to set this in ncm-network.
The text was updated successfully, but these errors were encountered:
aka7
linked a pull request
Sep 11, 2024
that will
close
this issue
On one of our vcs cluster, which adds two static routs,
after applying the interface config using nmstatectl apply (via ncm-network) on reboot it seems to revert back to previous config. running nmstatectl apply again fixes it.
on reboot it appears to use the connection from /run and not the update config in /etc and config in run does not match the updated config in /etc/. During reboot it seem to always apply the config in /run/.
nmcli dev shows this as externally connected.
from NetworkManager.conf
That suggests that 'keep-configuration no' might work on a start/reboot to ignore the previous uuid in /run and configure the device.
I'm not sure why on this particular vcs cluter we are seeing this, but this suggests that 'keep-configuration no' work on a start/reboot to ignore the previous uuid in /run and configure the device. Setting this value fixes this problem.
We need an option to set this in ncm-network.
The text was updated successfully, but these errors were encountered: