dnsmasq fails to start when setting inventory_dhcp to true

Bug #1728133 reported by Jonathan Harker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bifrost
Fix Released
Undecided
Unassigned

Bug Description

When using static dhcp by setting `inventory_dhcp: true`, the generated /etc/dnsmasq.conf file is invalid, causing dnsmasq to fail to start with the error: "bad dhcp-range at line 55 of /etc/dnsmasq.conf"

According to the dnsmasq man page, an ipv4 dhcp-range should take the form:
--dhcp-range=[tag:<tag>[,tag:<tag>],][set:<tag>,]<start-addr>[,<end-addr>|<mode>][,<netmask>[,<broadcast>]][,<lease time>]

The line generated from bifrost is:
dhcp-range=192.168.254.200,192.168.254.250,static,255.255.255.0,12h

I can get dnsmasq to successfully start after editing the line to be:
dhcp-range=192.168.254.0,static,255.255.255.0,12h

bifrost version: master (at 580ec8969b3f401d052148d1116e925773e87e6c)
dnsmasq version: 2.78-13.1
operating system: opensuse leap 42.3

Revision history for this message
Jonathan Harker (jesusaurus) wrote :

I've discovered that this issue only affects newer dnsmasq versions, and downgrading to version 2.71 will work with the configuration file generated by bifrost.

Revision history for this message
Julia Kreger (juliaashleykreger) wrote :
Changed in bifrost:
status: New → Fix Released
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.