vlan on top of bond interfaces assumes bond[0-9]+ naming
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vlan (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Context: deploying nodes via maas with bonds and vlans
on top of them, in particular for the example below:
bong-stg and bond-stg.600
~# dpkg-query -W vlan
vlan 1.9-3.2ubuntu1.
* /etc/network/
(obfuscated for ip and mac addresses)
[...]
auto bond-stg
iface bond-stg inet static
address x.x.x.x/x
bond-
bond-slaves none
hwaddress ether xx:xx:xx:xx:xx:xx
bond-miimon 100
bond-lacp_rate slow
mtu 9000
bond-mode 802.3ad
[...]
auto bond-stg.600
iface bond-stg.600 inet static
address x.x.x.x/x
vlan_id 600
vlan-raw-device bond-stg
mtu 9000
* FYI bong-stg is properly brought up
* upping bong-stg.600 fails with:
~# ifup bond-stg.600
/etc/network/
/etc/network/
Set name-type for VLAN subsystem. Should be visible in /proc/net/
iface bond-mgmt inet manual
cat: /sys/class/
Device "bond-stg.600" does not exist.
bond-stg.600 does not exist, unable to create bond-stg.600
run-parts: /etc/network/
Failed to bring up bond-stg.600.
- this happens because /etc/network/
hardcodes bond names to be bond[0-9][0-9]*
* changing above regexp to bond[^.]* fixes it
(modulo the mtu error):
~# ifup bond-stg.600
/etc/network/
/etc/network/
Set name-type for VLAN subsystem. Should be visible in /proc/net/
Added VLAN with VID == 600 to IF -:bond-stg:-
* diff for above changes to /etc/network/
- http://
Changed in vlan (Ubuntu): | |
status: | New → Confirmed |