maas-dhcp needs to quote interface name in /etc/maas/dhcpd.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Jeroen T. Vermeulen | ||
1.5 |
Fix Released
|
Critical
|
Jeroen T. Vermeulen | ||
maas (Ubuntu) |
Fix Released
|
Critical
|
Unassigned |
Bug Description
maas dhcp was configured to run on an interface named 'em3.10'.
as a result, I saw errors in /var/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 https:/
/etc/maas/
interface em3.
/etc/maas/
range
^
/etc/maas/
}
^
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 192.168.10.0 netmask 255.255.255.0 {
if option arch = 00:07 {
filename "bootx64.efi";
} else {
filename "pxelinux.0";
}
interface "em3.10";
Related branches
- Julian Edwards (community): Approve
-
Diff: 32 lines (+10/-1)2 files modifiedetc/maas/templates/dhcp/dhcpd.conf.template (+1/-1)
src/provisioningserver/dhcp/tests/test_config.py (+9/-0)
- Jeroen T. Vermeulen (community): Approve
-
Diff: 32 lines (+10/-1)2 files modifiedetc/maas/templates/dhcp/dhcpd.conf.template (+1/-1)
src/provisioningserver/dhcp/tests/test_config.py (+9/-0)
- Andres Rodriguez (community): Approve
-
Diff: 50 lines (+21/-8)2 files modifieddebian/changelog (+20/-7)
debian/maas-region-controller.postinst (+1/-1)
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 |
Changed in maas (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in maas (Ubuntu): | |
importance: | High → Critical |
Changed in maas: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package maas - 1.5+bzr2252- 0ubuntu1
--------------- 0ubuntu1) trusty; urgency=medium
maas (1.5+bzr2252-
* New upstream release maas-region- controller- min.install: Install drivers.yaml. maas-region- controller. postinst: No longer show the
- 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/
* debian/
installation note by default. (LP: #1284652)
-- Andres Rodriguez <email address hidden> Wed, 09 Apr 2014 19:02:00 -0400