[2.2.1] When deploying servers with VLAN using IPv6 alias ifdown fails with cannot find device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Expired
|
Undecided
|
Unassigned | ||
curtin |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
Using MAAS 2.2.1 a server configured with an alias to add IPv6 will not allow ifdown to function correctly. You will receive cannot find device. This is a problem when paired with JUJU as you can no longer create bridges for charms because the last step before activating the new interfaces.new file is to bring the interfaces down but the error stops the process. This was not a problem on 2.1.x or 2.0.x.
To recreate, commission a server and add an IPv4 VLAN subnet to the root interface. Then add an alias to the VLAN interface using IPv6 subnet. Deploy the server using Ubuntu 16.04 and try to ifdown the VLAN interface.
root@server01:
enp2s0f0 Link encap:Ethernet HWaddr fc:aa:14:1d:xx:xx
inet addr:10.1.0.7 Bcast:10.1.255.255 Mask:255.255.0.0
inet6 addr: fe80::feaa:
inet6 addr: xxxx:xxxx:
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:5454 errors:0 dropped:0 overruns:0 frame:0
TX packets:1394 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:6681566 (6.6 MB) TX bytes:195223 (195.2 KB)
enp2s0f0.11 Link encap:Ethernet HWaddr fc:aa:14:1d:xx:xx
inet addr:10.11.0.4 Bcast:10.11.255.255 Mask:255.255.0.0
inet6 addr: xxxx:xxxx:
inet6 addr: fe80::feaa:
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:24 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:4820 (4.8 KB) TX bytes:756 (756.0 B)
root@server01:
Removed VLAN -:enp2s0f0.11:-
Cannot find device "enp2s0f0.11"
root@server01:
/etc/network/
/etc/network/
Set name-type for VLAN subsystem. Should be visible in /proc/net/
ifup: recursion detected for interface enp2s0f0 in parent-lock phase
Added VLAN with VID == 11 to IF -:enp2s0f0:-
Waiting for DAD... Done
no longer affects: | juju |
Hi Ben,
Could you please attach the output of:
- maas <user> machines get-curtin-config <system_id>
This will tell us the network configuration that was supposed to be made. That said, this could be an issue with either curtin (which actually wrote e/n/i) or ifupdown (the latest in xenial).