inconsistent DNS zone entries when using multiple subnets
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Blake Rouse |
Bug Description
Using MAAS 1.9.0~beta1+bzr4417 specifying multiple subnets on multiple NICs without using VLANs.
In a multiple node deployment when using MAAS 1.9 to configure the networking on each NIC using a simple untagged subnet.
Some nodes are deployed with only 1 NIC (the management network).
Some nodes are deployed with multiple NICs, such as a compute node which needs both the management network and the data network.
When MAAS adds the entries to the forward DNS zone it adds the last NIC's IP address for the A record and not the first NIC so we end up with the DNS lookup resolving to different subnets depending on which subnets are connected to which node.
If there is no routing between these nodes on those subnets then internal routing between nodes will fail.
This was initially tested with only 1 space and 1 fabric and all subnets included.
It was then tested with each subnet in it's own space and fabric.
So, in the case of different spaces where there is no routing between subnets, then using the DNS hostname internal routing between nodes would fail even if there is a route on a different space and fabric that can reach other hosts.
e.g. the DNS zone file for a test deployment included:
bootstrap IN A 192.168.92.103
desiato IN A 192.168.160.150
hactar IN A 192.168.160.151
neutron IN A 192.168.140.151
even though each of these nodes had eth0 on the network 192.168.92.0/24.
To Re-create:
Configure a space and fabric for each subnet in MAAS using the API.
Configure a node with 2 NICs with different subnets/
Deploy the node.
Check the forward lookup for the hostname, i.e. dig hostname.
or look in /etc/bind/
Related branches
- Andres Rodriguez (community): Approve
-
Diff: 56 lines (+30/-5)2 files modifiedsrc/maasserver/models/staticipaddress.py (+7/-5)
src/maasserver/models/tests/test_staticipaddress.py (+23/-0)
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Hi Darryl,
Can you please attach logs ? (/var/log/ Maas/*. log)
Also, can you confirm that the DNS records where not always created against the IP address of the PXE interface?
Thanks!