alpha space is IPv4 only
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Won't Fix
|
Undecided
|
Joseph Phillips |
Bug Description
When deploying without specifying a space, the "alpha" one is used as default. Apparently this space doesn't have any subnet associated with it but somehow, it ends up getting an address from the first subnet in another space.
$ juju spaces
Name Space ID Subnets
alpha 0
cloud 3 172.17.18.0/24
demo 1 172.17.17.0/24
dev 2 172.17.16.0/24
undefined 4 172.17.20.0/24
When calling get_binding(), the network.
However, if a space is explicitly bounded to "cloud" for example, the network.
IMHO, if this "alpha" space should inherit the subnet of another random space, it should get both INET family subnets.
Additional information:
$ juju version
2.9.11-ubuntu-amd64
MAAS: 3.1.0~alpha1
This is by design.
There is a model configuration item, "default-space", which is used as the default binding for all deployments where it is otherwise unspecified. By default, it is "alpha".
In order to accommodate legacy deployments, we do not throw an error when applications are bound to an empty alpha space, rather we treat such a situation as space-agnostic.
What then happens is that the binding information returns the preferred private address of the machine where the unit is deployed. This can only be one address and Juju's selection rules will prefer an IPv4 local-cloud address.
The solution is configure the model's default-space with one of the MAAS spaces.