[2.x] DNS records are created with wrong/unpredictable subnet IP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Björn Tillenius |
Bug Description
Hello everybody,
I hope you day is bright !
When setting up new nodes with a 'complex' set of interfaces there does not seem to be a way to influence which interface gets picked first for DNS records creation.
Say for example that a MAAS setup for domain metal.example.com has a node 'abc' with the following interfaces:
bond0 (enp2s0f0/enp2s0f2) -> VLAN untagged -> Unconfigured
bond0.20 -> VLAN 20 -> Auto assign (172.20.0.0/16)
bond0.30 -> VLAN 30 -> Auto assign (172.30.0.0/16)
bond0.40.br -> Bridge on VLAN 40 -> Auto assign (172.40.0.0/16)
enp4s0f0 -> PXE on VLAN 80 -> Auto assign (10.80.0.0/16)
We then use Juju to commission machine for deployment.
The Juju controller is on VLAN 30 (172.30.0.0/16) and configure to DNS resolve via MAAS.
We use the following command:
> juju add-machine abc.metal.
When the machine gets deployed a set on DNS records get created for this host:
abc.metal.
bond0.20.
bond0.30.
bond0.40.
enp4s0f0.
In this case the Juju model is trying to connect to abc.metal.
But we then try to add a second machine 'xyz' to the Juju model:
> juju add-machine xyz.metal.
And this type MAAS deploys the node (configured similarly to the first one) but creates the following DNS records instead:
xyz.metal.
bond0.20.
bond0.30.
bond0.40.
enp4s0f0.
Now Juju is trying to reach xyz.metal.
In effect MAAS has created a "node record" not preceded by interface name that settled on a different subnet. This makes it challenging to predict what IP will come back.
There should be a way to tell MAAS to preferably use a particular subnet when creating DNS records for deploying node. Is there such a feature in place I would have missed. Can the API be used to change this behaviour in some way today ?
As always, thank you very much for your time !
Best wishes,
description: | updated |
Changed in maas: | |
milestone: | none → next |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Hi Florian,
In your use case scenario, which one is the PXE interface in the different machines?