Comment 14 for bug 1698443

Revision history for this message
Ben (bjenkins-x) wrote :

ubuntu@controller01:/etc/network$ sudo ifdown enp2s0f0.11
Removed VLAN -:enp2s0f0.11:-
Cannot find device "enp2s0f0.11"

Here is /etc/network/interfaces section for the VLAN
auto enp2s0f0.11
iface enp2s0f0.11 inet static
    address 10.11.0.3/16
    vlan-raw-device enp2s0f0
    mtu 9000
    vlan_id 11

iface enp2s0f0.11 inet6 static
    address xxxx:xxxx:xxxx:3:0:1:0:1/64

After the physical server is pushed and a charm is pushed you will get 2 routes per subnet

ubuntu@controller01:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.1.0.1 0.0.0.0 UG 0 0 0 br-enp2s0f0
10.0.225.0 * 255.255.255.0 U 0 0 0 lxdbr0
10.1.0.0 * 255.255.0.0 U 0 0 0 br-enp2s0f0
10.1.0.0 * 255.255.0.0 U 0 0 0 enp2s0f0
10.11.0.0 * 255.255.0.0 U 0 0 0 br-enp2s0f0.11
10.11.0.0 * 255.255.0.0 U 0 0 0 enp2s0f0.11

and the juju status error

1/lxd/0 down pending xenial failed to bridge devices: bridge activaction error: bridge activation failed: ifdown:
interface enp2s0f0 not configured
Cannot find device "enp2s0f0.11"
/etc/network/if-pre-up.d/mtuipv6: line 9: /sys/class/net/enp2s0f0.11/mtu: No such file or directory
/etc/network/if-pre-up.d/mtuipv6: line 10: /proc/sys/net/ipv6/conf/enp2s0f0.11/mtu: No such file or directory
ifup: recursion detected for interface enp2s0f0 in parent-lock phase
ifup: waiting for lock on /run/network/ifstate.enp2s0f0
RTNETLINK answers: File exists
Bringing up bridged interfaces failed, see system logs and /etc/network/interfaces.new
RTNETLINK answers: File exists
/etc/network/if-pre-up.d/mtuipv6: line 9: /sys/class/net/enp2s0f0.11/mtu: No such file or directory
/etc/network/if-pre-up.d/mtuipv6: line 10: /proc/sys/net/ipv6/conf/enp2s0f0.11/mtu: No such file or directory
ifup: recursion detected for interface enp2s0f0 in parent-lock phase
ifup: waiting for lock on /run/network/ifstate.enp2s0f0