Our PVE-Cluster has been running on legacy ifupdown with a complex OVS-Setup that we want to continue using with ifupdown2.
Therefore, we have set up test hardware mimicking the NIC setup of our production Cluster with a fresh PVE 7.2 installation.
Our setup is making use of a parent OVS bridge configuring RSTP and attaching "fake bridges" to it (following the
This has worked well with legacy
The same error is found in the boot log as well as being displayed when trying
This is the
We have spent several hours Googling and scanning documentation, but don't find the reason for this problem. Strangely, though,
Can anyone help with this problem?
Therefore, we have set up test hardware mimicking the NIC setup of our production Cluster with a fresh PVE 7.2 installation.
Our setup is making use of a parent OVS bridge configuring RSTP and attaching "fake bridges" to it (following the
ovs-vsctl
manpage) in order to hard code different VLAN-Tags in the vmbr<vlan>
Bridges presentet to VMs.This has worked well with legacy
ifupdown
- however, using ifupdown2
we keep receiving the following error - and the vmbr "fake bridges" are not set up at all:error: cmd '/usr/bin/ovs-vsctl -- --may-exist add-br vmbr1005 -- set bridge vmbr1005 br_mgmt 0' failed: returned 1 (ovs-vsctl: Bridge does not contain a column whose name matches "br_mgmt"
)
error: cmd '/usr/bin/ovs-vsctl -- --may-exist add-br vmbr4 -- set bridge vmbr4 br_mgmt 4' failed: returned 1 (ovs-vsctl: Bridge does not contain a column whose name matches "br_mgmt"
)
error: cmd '/usr/bin/ovs-vsctl -- --may-exist add-br vmbr6 -- set bridge vmbr6 br_mgmt 6' failed: returned 1 (ovs-vsctl: Bridge does not contain a column whose name matches "br_mgmt"
)
The same error is found in the boot log as well as being displayed when trying
ifreload -a
.This is the
/etc/network/interfaces
we are currently using for testing. It is shortened to show just the error using only a few bridges for clarity. The original config contains more bridges and interfaces overall:
Code:
## Loopback Device
auto lo
iface lo inet loopback
## Fallback Single-Port NIC ##
auto enp65s0
iface enp65s0 inet static
address 192.168.0.89/20
## Physical Interfaces ##
auto enp2s0f0
allow-br_mgmt enp2s0f0
iface enp2s0f0 inet manual
ovs_bridge br_mgmt
ovs_type OVSPort
ovs_options other_config:rstp-enable=true other_config:rstp-port-admin-edge=false other_config:rstp-port-auto-edge=false other_config:rstp-port-mcheck=true
auto enp2s0f1
allow-br_mgmt enp2s0f1
iface enp2s0f1 inet manual
ovs_bridge br_mgmt
ovs_type OVSPort
ovs_options other_config:rstp-enable=true other_config:rstp-port-admin-edge=false other_config:rstp-port-auto-edge=false other_config:rstp-port-mcheck=true
## Open vSwitch Bridges ##
# Proxmox Mgmt Network + VM-VLANs
auto br_mgmt
allow-ovs br_mgmt
iface br_mgmt inet manual
ovs_type OVSBridge
ovs_ports if_mgmt enp2s0f0 enp2s0f1
up ovs-vsctl set Bridge ${IFACE} rstp_enable=true other_config:rstp-priority=61440
# wait for spanning-tree convergence
post-up sleep 10
auto if_mgmt
allow-br_mgmt if_mgmt
iface if_mgmt inet static
ovs_type OVSIntPort
ovs_bridge br_mgmt
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.5.5.106
netmask 255.255.255.0
gateway 10.5.5.1
## Additional internal Interfaces ##
auto if_backup
allow-br_mgmt if_backup
iface if_backup inet static
ovs_type OVSIntPort
ovs_bridge br_mgmt
ovs_options tag=1070
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 10.5.70.106
netmask 255.255.255.0
## Fake Bridges for VM-VLANs ##
auto vmbr1005
allow-br_mgmt vmbr1005
iface vmbr1005 inet manual
ovs_type OVSBridge
ovs_options br_mgmt 0
auto vmbr4
allow-br_mgmt vmbr4
iface vmbr4 inet manual
ovs_type OVSBridge
ovs_options br_mgmt 4
auto vmbr6
allow-br_mgmt vmbr6
iface vmbr6 inet manual
ovs_type OVSBridge
ovs_options br_mgmt 6
We have spent several hours Googling and scanning documentation, but don't find the reason for this problem. Strangely, though,
ifreload -s -a
complains about wrong ovs_type
, though we can see nothing wrong there - and everything seems to work except the fake bridges.root@pvetest01:~# ifreload -s -a
warning: enp2s0f0: ovs-type: invalid value "OVSPort": valid attribute values: ['OVSBridge']
warning: enp2s0f1: ovs-type: invalid value "OVSPort": valid attribute values: ['OVSBridge']
warning: br_mgmt: ovs-type: invalid value "OVSBridge": valid attribute values: ['OVSPort', 'OVSIntPort', 'OVSBond', 'OVSTunnel', 'OVSPatchPort']
warning: if_mgmt: ovs-type: invalid value "OVSIntPort": valid attribute values: ['OVSBridge']
warning: if_backup: ovs-type: invalid value "OVSIntPort": valid attribute values: ['OVSBridge']
warning: vmbr1005: ovs-type: invalid value "OVSBridge": valid attribute values: ['OVSPort', 'OVSIntPort', 'OVSBond', 'OVSTunnel', 'OVSPatchPort']
warning: vmbr4: ovs-type: invalid value "OVSBridge": valid attribute values: ['OVSPort', 'OVSIntPort', 'OVSBond', 'OVSTunnel', 'OVSPatchPort']
warning: vmbr6: ovs-type: invalid value "OVSBridge": valid attribute values: ['OVSPort', 'OVSIntPort', 'OVSBond', 'OVSTunnel', 'OVSPatchPort']
Can anyone help with this problem?