Project

General

Custom queries

Profile

Actions

Bug #17800

closed

ISC Dhcpd Config Parse Error

Added by Karl Vollmer over 8 years ago. Updated about 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.";
        } 
}


Related issues 3 (0 open3 closed)

Related to Smart Proxy - Feature #19104: Ignore tagged includes for ISC DHCPRejectedLukas Zapletal03/31/2017Actions
Related to Smart Proxy - Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks Closed05/03/2017Actions
Is duplicate of Smart Proxy - Bug #16079: ISC DHCP subnets fail to parse with host or class stanzas insideClosedLukas Zapletal08/11/2016Actions
#1

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
#2

Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Feedback
#8

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
#11

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)
#12

Updated by Lukas Zapletal about 8 years ago

  • Related to Feature #19104: Ignore tagged includes for ISC DHCP added
#13

Updated by Dominic Cleal about 8 years ago

  • Status changed from New to Duplicate
#14

Updated by Anonymous about 8 years ago

  • Related to Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks added
Actions

Also available in: Atom PDF