Enlisted Nodes Cannot Access Metadata IPv6 URL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Low
|
Unassigned |
Bug Description
In an IPv6-only environment, enlisted nodes of MAAS are unable to parse the metadata url provided to cloud-init after a lookup to the internal DNS if it is an IPv6 address. This ultimately blocks nodes from being commissioned as cloud-init fails with a DatasourceNotFo
In this example, the MAAS node has an IPv6 address at xxxx:xxxx:
[WARNING]: retrieving url "http://
Looking at the nginx http logs indicate that the request never made it to MAAS. This might be an issue with the url_helper.
Build:
DEB packages maas/focal,now 1:3.2.6-
Steps to Reproduce:
1. Create an IPv6-only network to attach one MAAS node and one node to commission.
2. Install MAAS onto Focal using the 3.2 DEB packages and create an admin.
3. Go to the controller VLAN and enable DHCPv6 on a dynamic reserved range for the IPv6 subnet. Leave the gateway blank. Modify the IPv6 subnet to allow internal DNS resolution and set the DNS server to the MAAS-node's global IPv6 address.
4. Attempt to PXE-boot with IPv6 from a node on the same IPv6 network. Boot should succeed in loading Ubuntu image but fails when it attempts to access metadata url at the MAAS node's IPv6 address.
Note: one weird non-related issue with step 4 is that PXE booting appears to only work when the last octet of the MAAS IPv6 address ends with all zeros, e.g. xxxx:xxxx:
Logs:
/var/log/
/var/log/
/var/log/
/var/log/
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: ipv6 |
Changed in maas: | |
milestone: | none → 3.5.0 |