I have two ovs bridges configured, each with its own bonded pair of physical interfaces, and a bunch of internal ports. On boot/started openvswitch, it appears that openvswitch tries to start bond0 before bridge0 is up and thus fails.
If I manually run
after the fact it comes up OK.
I've ordered my /etc/network/interfaces as per the wiki.
Any ideas?
/etc/network/interfaces
openvswitch systemctl output
If I manually run
Code:
ovs-vsctl add-bond vmbr0 bond0 eno1 eno2 lacp=active other_config:lacp-time=fast bomd_mode=balance-tcp
I've ordered my /etc/network/interfaces as per the wiki.
Any ideas?
/etc/network/interfaces
Code:
auto lo
iface lo inet loopback
allow-ovs vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan200
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan1 vlan10 vlan9
allow-vmbr0
iface bond0 inet manual
ovs_bonds eno1 eno2
ovs_type OVSBond
ovs_bridge vmbr0
ovs_options lacp=active other_config:lacp-time=fast bond_mode=balance-tcp
allow-vmbr1
iface bond1 inet manual
ovs_bonds enp1s0 enp1s0d1
ovs_type OVSBond
ovs_bridge vmbr1
ovs_options lacp=active bond_mode=balance-tcp other_config:lacp-time=fast
allow-vmbr0 vlan1
iface vlan1 inet static
address 192.168.0.118/24
gateway 192.168.0.254
ovs_type OVSIntPort
ovs_bridge vmbr0
#primary
allow-vmbr0 vlan10
iface vlan10 inet static
address 192.168.10.2/24
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=10
#clusternet
allow-vmbr1 vlan200
iface vlan200 inet static
address 192.168.200.118/24
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=200
#STORAGENET
[many more intports...]
openvswitch systemctl output
Code:
Jun 21 16:47:08 netcat ovs-vsctl[6622]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist --fake-iface add-bond vmbr0 bond0 eno1 eno2 lacp=active other_config:lacp-time=fast bond_mode=balance-tcp --
Jun 21 16:47:08 netcat ovs-vsctl[6622]: ovs|00002|db_ctl_base|ERR|no bridge named vmbr0
Jun 21 16:47:08 netcat openvswitch-switch[6521]: ovs-vsctl: no bridge named vmbr0
Jun 21 16:47:08 netcat openvswitch-switch[6521]: Cannot find device "bond0"
Jun 21 16:47:08 netcat ovs-vsctl[6678]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr1 vlan200 tag=200 -- set Interface vlan200 type=internal --
Jun 21 16:47:08 netcat ovs-vsctl[6789]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-br vmbr0 --
Jun 21 16:47:08 netcat ovs-vsctl[6812]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr0 vlan1 -- set Interface vlan1 type=internal --
Jun 21 16:47:08 netcat ovs-vsctl[6876]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr0 vlan10 tag=10 -- set Interface vlan10 type=internal --
Jun 21 16:47:08 netcat ovs-vsctl[6940]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --timeout=5 -- --may-exist add-port vmbr0 vlan9 tag=9 -- set Interface vlan9 type=internal --
Jun 21 16:47:08 netcat systemd[1]: Started Open vSwitch.