Symptoms
Error message:
# Task: configure network on 203.0.113.2 failed to configure OVS bridge on Linux: failed to build Open vSwitch bridge: failed probing network configuration: failed to probe Open vSwitch bridge: on provided bond "bond0" was found slaves [eno5] but 'ovs-vsctl add-bond' command requires at least 2 interfaces this may happens because of some interfaces are in DOWN state
- The compute resource becomes unreachable after it is added to SolusVM 2, and the bond interface is not detected.
- The network configuration stops responding after the bond interfaces are added.
-
Open vSwitch cannot attach the bond to the bridge:
CONFIG_TEXT: ovs-vsctl: cannot create a port named bond0 because a port named bond0 already exists on bridge br-ext
-
The bond interfaces cannot be added to the bridge:
CONFIG_TEXT: could not add network device enp129s0f1 to ofproto (Device or resource busy)
Cause
The 'ovs-vsctl add-bond' command requier minimum two interfaces. There are one or more interfaces that are in DOWN state.
The issue can also be caused by one of the following:
- The bond on the compute resource is configured with a VLAN tag (for example, bond0.100). SolusVM 2 does not support a VLAN-tagged bond on a compute resource.
- On AlmaLinux 9.x, the kernel-managed bond conflicts with Open vSwitch when the server is added as a compute resource. Open vSwitch tries to take over the physical interfaces, and the kernel bond becomes unstable.
Resolution
If the bond has only one interface or one of its interfaces is down:
- Add a minimum two interfaces to the bond interface and make sure both are in the UP state.
- Retry the network configuration in SolusVM 2.
- If the network configuration stops responding, reboot the compute resource.
If the bond is configured with a VLAN tag:
- Remove the VLAN tag from the bond on the compute resource, so that the bond is native and has no VLAN.
- Make sure the VLAN is configured on the network side for the compute resource.
- In SolusVM 2, go to Network > VLANs > Add VLAN and fill in the fields according to the VLAN configuration of the compute resource. See How to configure VLAN in SolusVM 2.
- Edit the IP block settings and assign the VLAN to the IP block.
- Add the server as a compute resource again.
If the server runs AlmaLinux 9.x and the kernel bond conflicts with Open vSwitch, use Debian 11 for the compute resource:
- Connect to the server via SSH.
-
Install the
ifenslavepackage:# apt-get install ifenslave
-
Create a backup copy of the network configuration file:
# cp -a /etc/network/interfaces /etc/network/interfaces.bak
- Configure the bond following the first example in the Debian Wiki Bonding guide, and add
bond-mode 802.3adto use LACP. - Reboot the server to confirm that the bond interface is persistent.
- Add the server to SolusVM 2 as a compute resource.
If the bond does not come up after the change, restore /etc/network/interfaces.bak and reboot the server.
Comments
Please sign in to leave a comment.