Project

General

Profile

Bug #16079

ISC DHCP subnets fail to parse with host or class stanzas inside

Added by alvin starr about 2 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Category:
DHCP
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

I have a subnet definition
subnet 10.253.2.0 netmask 255.255.255.0 {
stuff
}

If I add a host definition to the subnet like

subnet 10.253.2.0 netmask 255.255.255.0 {
stuff
host puter {
       server-name "puter";
       hardware ethernet 00:18:dd:01:9e:2e;
       fixed-address 10.253.2.127;
       }

}

the subnet does not get recoginzed.
If I add in the subnet stanza something like

     class "pxeclients" {
          match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
          if option pxe-system-type = 00:02 {
                  filename "ia64/elilo.efi";
          } else if option pxe-system-type = 00:06 {
                  filename "grub/grub-x86.efi";
          } else if option pxe-system-type = 00:07 {
                  filename "grub/grub-x86_64.efi";
          } else {
                  filename "pxelinux.0";
          }
     }

the same thing happens.
If I extract the static hosts into dhcpd.hosts and include it then things are ok.


Related issues

Related to Smart Proxy - Feature #12211: Improve DHCP subnets parsing to get more informations from DHCP serverClosed2015-10-19
Related to Smart Proxy - Bug #14808: Foreman-Proxy DHCP class doesn't properly read subnets containing if statementsDuplicate2016-04-26
Has duplicate Smart Proxy - Bug #17800: ISC Dhcpd Config Parse ErrorDuplicate2016-12-20
Has duplicate Smart Proxy - Bug #18674: on [commit,release,expiry] sections in dhcpd.conf cause subnet to not load in smart proxyDuplicate2017-02-24

Associated revisions

Revision 7f016eca (diff)
Added by Lukas Zapletal over 1 year ago

Fixes #16079 - subnet recursive parsing

History

#1 Updated by Michael Moll about 2 years ago

  • Project changed from Foreman to Smart Proxy
  • Category changed from DHCP to DHCP

#2 Updated by Dominic Cleal about 2 years ago

  • Subject changed from dhcp proxy parsing problem. to ISC DHCP subnets fail to parse with host or class stanzas inside
  • Description updated (diff)

#3 Updated by Tomer Brisker almost 2 years ago

  • Bugzilla link set to 1393914

#4 Updated by Lukas Zapletal almost 2 years ago

Regression introduced by #12211

#5 Updated by Lukas Zapletal almost 2 years ago

  • Related to Feature #12211: Improve DHCP subnets parsing to get more informations from DHCP server added

#6 Updated by The Foreman Bot almost 2 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/smart-proxy/pull/474 added

#7 Updated by Daniel Lobato Garcia over 1 year ago

  • Target version set to 1.4.3

#8 Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#9 Updated by Dominic Cleal over 1 year ago

  • Legacy Backlogs Release (now unused) set to 189

#10 Updated by Dmitri Dolguikh over 1 year ago

  • Related to Bug #14808: Foreman-Proxy DHCP class doesn't properly read subnets containing if statements added

#11 Updated by Dominic Cleal over 1 year ago

  • Has duplicate Bug #17800: ISC Dhcpd Config Parse Error added

#12 Updated by Dominic Cleal over 1 year ago

  • Has duplicate Bug #18674: on [commit,release,expiry] sections in dhcpd.conf cause subnet to not load in smart proxy added

#13 Updated by Dmitri Dolguikh over 1 year ago

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

#14 Updated by Dmitri Dolguikh over 1 year ago

  • Related to deleted (Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks )

Also available in: Atom PDF