I am seeing inconsistency with LXC containers and hosts in a MAAS environment with multiple subnets configured.
There is a management network, which is used by all the machines via MAAS DHCP to obtain IP addresses, these become the private address for all the machines and charms in the juju deployment, e.g. 192.168.92.0/24.
Additional network subnets are added either pre or post deployment, e.g. 172.16.x.y.
Multiple subnets are added.
The hosts (either physical or virtual) continue to provide the private address as the original private address, i.e. 192.168.92.x.
But LXC containers private address changes to one of the additional networks that were added, in fact the lowest numerical option, i.e. 172.16.20.0/24 is used instead.
This is inconsistent and can break complex deployments such as Openstack when deploying with multiple physical networks and LXC containers, depending on how those networks are isolated.
For example, we see juju status output like this:
"6":
agent-state: started
agent-version: 1.24.2
dns-name: halfrunt.hv.dazcloud.com
instance-id: /MAAS/api/1.0/nodes/node-28b38eb4-e781-11e4-a7bd-52540073f449/
series: trusty
hardware: arch=amd64 cpu-cores=4 mem=32768M
"7":
agent-state: started
agent-version: 1.24.2
dns-name: priv9.hv.dazcloud.com
instance-id: /MAAS/api/1.0/nodes/node-ccb1de24-ea0d-11e4-8d2c-52540073f449/
series: trusty
containers:
7/lxc/0:
agent-state: started
agent-version: 1.24.2
dns-name: 172.16.20.60
instance-id: juju-machine-7-lxc-0
series: trusty
hardware: arch=amd64
7/lxc/1:
agent-state: started
agent-version: 1.24.2
dns-name: 172.16.20.62
instance-id: juju-machine-7-lxc-1
series: trusty
hardware: arch=amd64
7/lxc/2:
agent-state: started
agent-version: 1.24.2
dns-name: 172.16.20.63
instance-id: juju-machine-7-lxc-2
series: trusty
hardware: arch=amd64
7/lxc/3:
agent-state: started
agent-version: 1.24.2
dns-name: 172.16.20.64
instance-id: juju-machine-7-lxc-3
series: trusty
hardware: arch=amd64
7/lxc/4:
agent-state: started
agent-version: 1.24.2
dns-name: 172.16.20.65
instance-id: juju-machine-7-lxc-4
series: trusty
hardware: arch=amd64
7/lxc/5:
agent-state: started
agent-version: 1.24.2
dns-name: 172.16.20.66
instance-id: juju-machine-7-lxc-5
series: trusty
hardware: arch=amd64
May be related or have impact to the following bugs: /bugs.launchpad .net/juju- core/+bug/ 1469193 /bugs.launchpad .net/juju- core/+bug/ 1307445 /bugs.launchpad .net/juju- core/+bug/ 1435283
https:/
https:/
https:/