Actions
Bug #17800
closedISC Dhcpd Config Parse Error
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Description
After updating from Smart Proxy 9.x -> 12.4 the subnet in my dhcpd.conf was no longer being detected. I checked in on IRC, and witlessb, confirmed it was an issue with the dhcpd parser due to the use of the 'pool' option within the subnet declaration. My 'non-working' dhcpd subnet config is as follows. Removing the conditional (logically useless I know) didn't fix it..., but it's valid dhcpd jargon so I figured I'd leave it in. This worked in the 9.x release of the foreman proxy. I was able to remove the pool declaration from this config, but my other Foreman'd systems have multiple pools with different settings, so I will need this working before I can update them.
# Subnet subnet 10.30.0.0 netmask 255.255.0.0 { default-lease-time 3600; max-lease-time 3600; option routers 10.30.0.1; option subnet-mask 255.255.0.0; option domain-name "ZZZ."; option domain-name-servers 10.30.0.1; option broadcast-address 10.30.255.255; if ((substring (option vendor-class-identifier, 0, 9) = "PXEClient") or (substring (option vendor-class-identifier, 0, 9) = "Etherboot")) { # i386 and x86_64 filename "pxelinux.0"; } else { filename "pxelinux.0"; } pool { range 10.30.0.10 10.30.0.254; option routers 10.30.0.1; option domain-name-servers 10.30.0.1; option subnet-mask 255.255.0.0; option ntp-servers 10.30.0.1; ddns-domain-name = "ZZZ."; } }
Updated by Dominic Cleal over 8 years ago
- Is duplicate of Bug #16079: ISC DHCP subnets fail to parse with host or class stanzas inside added
Updated by The Foreman Bot about 8 years ago
- Status changed from Feedback to Ready For Testing
- Assignee set to Lukas Zapletal
- Pull request https://github.com/theforeman/smart-proxy/pull/517 added
Updated by Lukas Zapletal about 8 years ago
- Status changed from Ready For Testing to New
- Assignee deleted (
Lukas Zapletal) - Pull request deleted (
https://github.com/theforeman/smart-proxy/pull/517)
Updated by Lukas Zapletal about 8 years ago
- Related to Feature #19104: Ignore tagged includes for ISC DHCP added
Updated by Anonymous about 8 years ago
- Related to Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks added
Actions