maas-dhcp needs to quote interface name in /etc/maas/dhcpd.conf

Bug #1306335 reported by Scott Moser on 2014-04-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jeroen T. Vermeulen
Jeroen T. Vermeulen
maas (Ubuntu)

Bug Description

maas dhcp was configured to run on an interface named 'em3.10'.
as a result, I saw errors in /var/log/upstart/maas-dhcp-server.log:

dhcpd self-test failed. Please fix the config file.
The error was:
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit
/etc/maas/dhcpd.conf line 36: semicolon expected.
       interface em3.
/etc/maas/dhcpd.conf line 44: range declaration not allowed here.
/etc/maas/dhcpd.conf line 49: expecting a declaration
Configuration file errors encountered -- exiting

The fix is simply that the 'interface' needs to be quoted if it contains a '.' (i suspect any non-alpha numeric char).

Ie, in the snippet here, I hand-quoted 'em3.10'.

subnet netmask {
       if option arch = 00:07 {
          filename "bootx64.efi";
       } else {
          filename "pxelinux.0";
       interface "em3.10";
       ignore-client-uids true;

Related branches

Changed in maas:
status: New → Triaged
importance: Undecided → Critical
Changed in maas:
status: Triaged → In Progress
assignee: nobody → Jeroen T. Vermeulen (jtv)
Changed in maas:
status: In Progress → Fix Committed
Scott Moser (smoser) on 2014-04-11
Changed in maas (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Changed in maas (Ubuntu):
importance: High → Critical
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 1.5+bzr2252-0ubuntu1

maas (1.5+bzr2252-0ubuntu1) trusty; urgency=medium

  * New upstream release
    - Add support to install Third Party Drivers. In order for this to be
      used the user will have to go to the Settings page to enable the
      installation of these drivers. (LP: #1305839)
    - Use release images instead of daily. (LP: #1306701)
    - Quote interface name in dhcpd.template, otherwise DHCP server fails
      to start. (LP: #1306335)
    - Fix IntegrityError, when multiple processes are trying to register
      the same component. (LP: #1307415)
    - Add missing armhf commissioning template (LP: #1307780)
  * debian/maas-region-controller-min.install: Install drivers.yaml.
  * debian/maas-region-controller.postinst: No longer show the
    installation note by default. (LP: #1284652)
 -- Andres Rodriguez <email address hidden> Wed, 09 Apr 2014 19:02:00 -0400

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

Other bug subscribers