-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving host interface to OVS bridge failed due to interface altname #6301
Comments
Even the issue was reported for the secondary OVS bridge, it should apply to the primary bridge too with bridging mode when we move the host interface to the primary bridge as the uplink. It is not clear what Linux distros/config will lead to the altname setting on the interfaces. |
Thank you @jianjuns ! My test machine is a Ubuntu 23.10 Server on ARM64.
|
This is a new feature enabled by default in some new Linux distros.
|
Could you run below command in your env and post the result here?
|
@meibensteiner Could you provide more detailed information of your env?
|
@gran-vmv I found that the
|
As requested
|
No. The altname cannot conflict with other names and altnames, thus we cannot set uplink altname to
|
@meibensteiner Could you try below steps on your env?
|
Added second NIC named enp0s2
Set enp0s2 down, renamed it to enp0s2~, check naming:
Set enp0s2 to up, check naming:
|
Reproduced. If there is only one and same valid value in both
|
To support this case, we need to delete unexpected altname after rename interface, probably a short sleep is also needed. However, altname support in netlink lib vishvananda/netlink@a008cbd is not included by any tag (antrea is using |
Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix #6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix antrea-io#6301 Signed-off-by: gran <[email protected]> Co-authored-by: Lan <[email protected]>
Fix #6301 Signed-off-by: gran <[email protected]>
Fix #6301 Signed-off-by: gran <[email protected]>
…trea-io#6402) Fix antrea-io#6301 Signed-off-by: gran <[email protected]>
Fix #6301 Signed-off-by: gran <[email protected]>
Describe the bug
With some Linux distros, after moving the interface to an OVS bridge as an uplink and renaming it (e.g. from eth0 to eth0~), it fails to create a new bridge interface with the same name to move the host interface IP and routes. Seems it is because after the renaming, the host interface will get an "altname" using the original interface name (e.g. eth0) which conflicts with the new bridge interface name.
To Reproduce
@meibensteiner reported this issue with the following steps to create a secondary OVS bridge with a Node's primary interface.
antrea-agent config:
Then agent lost network.
ovs-vsctl shows:
From
ip addr
outputs, we can see the host interface after moved to OVS and renamed toenp0s1~
, has an altname ofenp0s1
.Before antrea-agent installation, the interface did not have an altname.
agent logs:
Versions:
Ubuntu 23.10 Server with RKE2 1.29.
The text was updated successfully, but these errors were encountered: