dnsmasq fails to start when setting inventory_dhcp to true
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-
The line generated from bifrost is:
dhcp-range=
I can get dnsmasq to successfully start after editing the line to be:
dhcp-range=
bifrost version: master (at 580ec8969b3f401
dnsmasq version: 2.78-13.1
operating system: opensuse leap 42.3
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.