[2.1 ipv6] DHCP generation should not fail when address-family conflicts are present

Bug #1629475 reported by LaMont Jones
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
LaMont Jones

Bug Description

If MAAS has ipv4 and ipv6 subnets present on a vlan with dhcp enabled, and the maas_url is set to an ipv6 address, dns generation fails as below. This should not be a traceback, and hopefully should at least produce a partially-working DNS.

Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 return func(*args, **kwds)
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 565, in get_dhcp_configuration
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 default_domain, dhcp_snippets)
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 File "/usr/lib/python3/dist-packages/maasserver/dhcp.py", line 451, in get_dhcp_configure_for
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 rack_controller, ipv4=(ip_version == 4), ipv6=(ip_version == 6))
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 File "/usr/lib/python3/dist-packages/maasserver/dns/zonegenerator.py", line 119, in get_dns_server_address
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 iplist = get_dns_server_addresses(rack_controller, ipv4, ipv6)
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 File "/usr/lib/python3/dist-packages/maasserver/dns/zonegenerator.py", line 150, in get_dns_server_addresses
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011 % e.strerror)
Sep 30 22:05:47 maas-boot-vm-xenial sh[20078]: #011maasserver.dns.zonegenerator.DNSException: Unable to find MAAS server IP address: Address family for hostname not supported. MAAS's DNS server requires this IP address for the NS records in its zone files. Make sure that the configuration setting for the MAAS URL has the correct hostname. Consult the 'maas-region local_config_set --maas-url' command.

Related branches

LaMont Jones (lamont)
tags: added: maas-ipv6
Changed in maas:
milestone: none → 2.1.0
importance: Undecided → Critical
Revision history for this message
LaMont Jones (lamont) wrote :

As I think about this, what we're trying to do is find the IP of the rack, so that we can give it to the DHCPing node to use for name resolution... It should be raised as an error, somehow.

LaMont Jones (lamont)
summary: - [2.1 ipv6] DNS generation should not fail when address-family conflicts
+ [2.1 ipv6] DHCP generation should not fail when address-family conflicts
are present
Changed in maas:
assignee: nobody → LaMont Jones (lamont)
Changed in maas:
status: New → In Progress
Changed in maas:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Hello LaMont, or anyone else affected,

Accepted maas into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/maas/2.1.0+bzr5480-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Andres Rodriguez (andreserl) wrote :

I've tested this and can confirm it has been fixed. Marking verification-done

tags: added: verification-done
removed: verification-needed
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Update Released

The verification of the Stable Release Update for maas has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.