LXD creates all the interfaces as the physical machine has when using MAAS.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
John A Meinel |
Bug Description
I guess it is not a bug but a thing that needs to be fixed.
LXD creates all the interfaces as the physical machine has whenever I create or deploy services or LXD containers when using MAAS. I thought it will only create the interfaces I specified with '--constraints spaces=' option but it does not. I think it should be able to create the interfaces that we only specified with constraints so that we can save the IP resources and not create unnecessary resource and configurations.
dpkg -l '*maas*' | cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 2.0.0~beta5+
ii maas-cli 2.0.0~beta5+
un maas-cluster-
ii maas-common 2.0.0~beta5+
ii maas-dhcp 2.0.0~beta5+
ii maas-dns 2.0.0~beta5+
ii maas-proxy 2.0.0~beta5+
ii maas-rack-
ii maas-region-api 2.0.0~beta5+
ii maas-region-
un maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 2.0.0~beta5+
ii python3-maas-client 2.0.0~beta5+
ii python3-
dpkg -l '*juju*' | cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii juju 2.0-beta7-
ii juju-2.0 2.0-beta7-
un juju-core <none> <none> (no description available)
un juju2 <none> <none> (no description available)
juju add-machine --constraints spaces=
ubuntu@ac1:~$ sudo lxc list
+------
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------
| juju-machine-
| | | 192.168.101.56 (eth1) | | | |
| | | 192.168.102.56 (eth2) | | | |
| | | 10.192.229.56 (eth3) | | | |
+------
tags: | added: lxc maas-provider network |
tags: | added: spaces |
affects: | juju-core → juju |
Changed in juju: | |
milestone: | none → 2.1.0 |
Changed in juju: | |
status: | Triaged → In Progress |
assignee: | nobody → John A Meinel (jameinel) |
Changed in juju: | |
status: | Fix Committed → Fix Released |
FWIW spaces constraints (or any other kind for that matter) do not apply to containers, only to machines. The `juju deploy --bind` command is meant to be the way to specify required connectivity (e.g. --bind '<name>=<space> ...') and thus imply the minimum number of NICs needed. However, --bind does not (yet) work like that for containers.