DNS config is invalid after a node gets enlisted.

Bug #1066958 reported by Raphaël Badin
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Jeroen T. Vermeulen
maas (Ubuntu)
Andres Rodriguez

Bug Description

After a node gets enlisted, its hostname is set to a generated address based on its IP address (e.g. 192-168-10-10). When the DNS config gets written, if the hostname is not changed to a custom value, the CNAME record conflicts with a pre-populated A record for that IP:

Content of /etc/bind/maas/zone.master
    IN NS master.
master. IN A
192-168-10-10 IN A
192-168-10-10 IN CNAME 192-168-10-10

One solution is to change DNSForwardZoneConfig.get_cname_mapping so that the records where generated_hostname(ip) == hostname are filtered out.

1. Install MAAS and manage DHCP/DNS server.
2. Enlist machine
3. Make sure DNS config is correct

Tested in the lenovo lab. No CNAME records appear in the zone.master file.

Related branches

Raphaël Badin (rvb)
summary: - DNS config is left invalid after a node gets enlisted.
+ DNS config is invalid after a node gets enlisted.
Changed in maas:
milestone: none → 12.10
Changed in maas:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
tags: added: sru-12.10
Changed in maas:
status: Fix Committed → Fix Released
Changed in maas (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
importance: Undecided → Critical
status: New → In Progress
description: updated
Raphaël Badin (rvb)
Changed in maas (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Dave Walker (davewalker) wrote : Please test proposed package

Hello Raphaël, or anyone else affected,

Accepted into quantal-proposed. The package will build now and be available in a few hours 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 change the bug tag from verification-needed to verification-done. If it does not, 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
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 0.1+bzr1269+dfsg-0ubuntu1

maas (0.1+bzr1269+dfsg-0ubuntu1) quantal-proposed; urgency=low

  * New upstream bugfix release
    - Fixes commissioning failing to set memory attribute. (LP: #1064638)
    - Fixes node listing by adding pagination (LP: #1064672)
    - Changes default bind rndc key which breaks initscripts (LP: #1066938)
    - Fixes invalid DNS config once node is enlisted (LP: #1066958)
    - Reference documentation link to correct URL (LP: #1067261)

  [ Andres Rodriguez ]
  * debian/rules: Change upstream branch.

  [ Gavin Panella ]
  * debian/maas-dns.postinst: Remove MAAS-related include lines from named's
    config before adding a new one (LP: #1066929)

  [ Raphael Badin ]
  * debian/extras/maas-region-celeryd: Remove whitespace that affects DNS
    rabbitmq queue. (LP: #1067929)
 -- Andres Rodriguez <email address hidden> Tue, 16 Oct 2012 10:31:37 -0400

Changed in maas (Ubuntu):
status: Fix Committed → Fix Released
tags: added: verification-done
removed: verification-needed
description: updated
Revision history for this message
Dave Walker (davewalker) wrote : Update Released

The verification of this Stable Release Update 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 regresssions.

Dave Walker (davewalker)
Changed in maas (Ubuntu Precise):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers