maas dhcp responses do not have domain-name or domain-search

Bug #1117415 reported by Scott Moser
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Julian Edwards

Bug Description

As found while debugging on bug 1116700, responses from the maas dhcp server do not have a 'domain-name' or 'domain-name-search' entries.

This has not been a glaring problem so far because fully qualified domain names are available.

It does seem, though that maas should at very least send the domain-name that corresponds to its domainname setting.

Related branches

Scott Moser (smoser)
Changed in maas:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Julian Edwards (julian-edwards) wrote :

There's actually a school of thought that says MAAS should return the IP address and not the name at all. That would make this bug moot.

Changed in maas:
status: Confirmed → Triaged
Revision history for this message
James Page (james-page) wrote :

Julian - not sure I agree 100% with your comment in #1.

Specifically this breaks code outside of Juju+MaaS which relies on the hostname being resolvable without a domain name suffix.

This is case with libvirt based live migration in OpenStack.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

James - fair enough then. But it's trivial to add a search config to external resolv.conf, is that enough to help? Or are you concerned about the nodes themselves being unable to resolve hosts?

Changed in maas:
assignee: nobody → Julian Edwards (julian-edwards)
status: Triaged → In Progress
Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

Julian, Jeroen, I think the preferred approach is to put the domain-search into the DHCP config:

  option domain-name cloud.mallards;
  option domain-name-servers 192.168.9.1;
  option domain-search "cloud.mallards";

Mark

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
milestone: none → 13.10
Revision history for this message
Kurt (burnbrighter) wrote :

Julian - can we get this regressed to other branches too?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

You have to file an SRU request and someone will backport it.

Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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