I was trying to make workaround for the issue Unable to edit managed bridge network if it created with 'bridge.external_interfaces' value in <interfaceName>/<parentInterfaceName>/<vlanId> format · Issue #2166 · lxc/incus · GitHub and found another issue.
Historically I use banch of VLANs and I have to maintain corresponded VLANs and bridges on every incus
cluster node. Now I’m trying to switch to fully managed network and OVN (microovn
under the hood) to reduce cluster management overhead. However, the issue above blocks me now to create bridge (or even OVN
) managed network in one shot.
I was trying to make uplink vlan
and bridge
networks in 2 steps and this works well until… the node is rebooted. The incus
logs show that the networks created in orders which do not honor their dependencies. I expect that such case had never been reviewed and never supported.
Step for reproduce
(for cluster environment. should work with the single server and with regular bridge as well.
Create managed networks
for i in {1..3}; do incus network create eth0.90 --type physical parent=eth0 --target vm-0$i; done && \
incus network create eth0.90 --type physical ipv4.gateway=192.168.91.254/23 ipv4.ovn.ranges=192.168.91.0-192.168.91.248 vlan=90 && \
for i in {1..3}; do incus network create br90 --type bridge bridge.external_interfaces=eth0.90 --target vm-0$i; done && \
incus network create br90 --type bridge bridge.driver=openvswitch ipv6.address=none ipv4.address=192.168.90.1/23 ipv4.dhcp.expiry=10m ipv4.dhcp.gateway=192.168.91.254 ipv4.dhcp.ranges=192.168.90.64-192.168.90.255 ipv4.nat=false
Check that the bridge connected to the uplink
vlan.
>ovs-vsctl list-ports br90
eth0.90
Reboot the node and check that the bridge connected to the uplink
vlan. again
>ovs-vsctl list-ports br90
Incus logs the warning:
time="2025-06-16T16:09:35Z" level=warning msg="Skipping attaching missing external interface" driver=bridge interface=eth0.90 network=br90 project=default
ip link
displays that the both br90
and eth0.90
has been created, however the order of creation is not in the expected order.