-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly unmanage veth interfaces (#701)
nmstate 0.3 introduces a bug where all veths attached to nmstatectl configured bridge turn into "managed" by NetworkManager. This was not the case in 0.2. Due to this regression, NetworkManager deliberatelly detaches veth ifaces from the bridge and by doing that it disconnectecs Pods/VMs from the network. With this change, we explicitly set veth interfaces as unmanaged. Important: With this change, it is no longer possible to change configuration of bridges that have veths attached. Signed-off-by: Petr Horáček <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash -xe | ||
|
||
echo '[keyfile] | ||
unmanaged-devices=interface-name:veth* | ||
' > /host/etc/NetworkManager/conf.d/001-cnv-unmanaged-veth.conf | ||
dbus-send --system --dest=org.freedesktop.systemd1 --type=method_call /org/freedesktop/systemd1 --print-reply org.freedesktop.systemd1.Manager.ReloadUnit string:NetworkManager.service string:replace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters