ipv6 interfaces configured on a machine (in maas) are not added to lxc containers deployed to that machine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Witold Krecicki | ||
MAAS |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am seeing that lxc containers are not getting configured with interfaces with ipv6 subnets.
The machines hosting containers are configured with 4 interfaces in MAAS. one interface (bond2) has only an ipv6 subnet added and no ipv4. Containers deployed to the host machine are automatically configured bridged to the interfaces on the host machine which have ipv4 subnets. But, there is no interface added to the lxc config bridged to the interface with the ipv6 subnet.
using juju 2.0 beta7 and maas 2.0 beta 6
from the lxc config we see 3 interfaces added, but there should be a 4th interface bridged to br-bond2
# Network configuration
lxc.network.type = veth
lxc.network.link = br-eno1
lxc.network.flags = up
lxc.network.name = eth0
lxc.network.hwaddr = 00:16:3e:b4:54:75
lxc.network.ipv4 = 10.189.69.22/25
lxc.network.
lxc.network.mtu = 1500
lxc.network.type = veth
lxc.network.link = br-bond0
lxc.network.flags = up
lxc.network.name = eth1
lxc.network.hwaddr = 00:16:3e:8b:79:c4
lxc.network.ipv4 = 172.27.72.8/26
lxc.network.mtu = 1500
lxc.network.type = veth
lxc.network.link = br-bond1
lxc.network.flags = up
lxc.network.name = eth2
lxc.network.hwaddr = 00:16:3e:6d:4e:b0
lxc.network.ipv4 = 172.27.72.72/26
lxc.network.mtu = 1500
The host has br-bond2 with the ipv6 subnet, but no interface bridged to br-bond2 is getting added to containers deployed on the host
host br-bond2 config:
auto br-bond2
iface br-bond2 inet6 static
address fd0d:ffe0:
mtu 1500
hwaddress 0c:c4:7a:b7:32:a0
bridge_ports bond2
I'm able to add an interface bridged to br-bond2 to the lxc container manually by editing the container config to add the interface and choosing an available ipv6 address, then restarting the container
lxc.network.type = veth
lxc.network.link = br-bond2
lxc.network.flags = up
lxc.network.name = eth3
lxc.network.ipv6 = fd0d:ffe0:
lxc.network.mtu = 1500
description: | updated |
description: | updated |
tags: | added: sts |
Changed in juju-core: | |
milestone: | none → 2.1.0 |
tags: | added: ipv6 network |
Changed in juju-core: | |
status: | Confirmed → Triaged |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | 2.1.0 → none |
milestone: | none → 2.1.0 |
Changed in juju: | |
milestone: | 2.1-rc2 → none |
Changed in juju: | |
status: | Triaged → In Progress |
milestone: | none → 2.2.3 |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Attaching screenshot of the host's interface configuration in MAAS