Actions
Bug #22651
closedISC DHCP config parser ignores 'include' within 'shared_network'
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Description
I was getting errors of the following form when trying to perform any DHCP operation:
ERROR -- : No Subnet detected for: 10.100.1.0
After debugging this for a bit, it seems that the problem is that my dhcpd.conf looks like:
shared-network syslab { include "/etc/dhcp/subnets/10.100.0.0.conf"; include "/etc/dhcp/subnets/10.100.1.0.conf"; include "/etc/dhcp/subnets/10.100.2.0.conf"; include "/etc/dhcp/subnets/10.100.3.0.conf"; include "/etc/dhcp/subnets/10.100.5.0.conf"; }
(where the referenced files contain pretty standard subnet declarations)
The ISC configuration_parser only processes include_file directives at the top level, so it was ignoring the includes and missing the subnet declarations, causing the DHCP plugin to be unable to detect any subnets.
Updated by The Foreman Bot about 7 years ago
- Status changed from New to Ready For Testing
- Assignee set to Anonymous
- Pull request https://github.com/theforeman/smart-proxy/pull/568 added
Updated by Anonymous about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset c291779119c4b16e20669f2cc2889e01509b10dd.
Actions