Project

General

Profile

Actions

Bug #16079

closed

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

Added by alvin starr over 7 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
DHCP
Target version:
Difficulty:
Triaged:
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 4 (0 open4 closed)

Related to Smart Proxy - Feature #12211: Improve DHCP subnets parsing to get more informations from DHCP serverClosedBaptiste Agasse10/19/2015Actions
Related to Smart Proxy - Bug #14808: Foreman-Proxy DHCP class doesn't properly read subnets containing if statementsDuplicateWojciech Kowalski04/26/2016Actions
Has duplicate Smart Proxy - Bug #17800: ISC Dhcpd Config Parse ErrorDuplicate12/20/2016Actions
Has duplicate Smart Proxy - Bug #18674: on [commit,release,expiry] sections in dhcpd.conf cause subnet to not load in smart proxyDuplicate02/24/2017Actions
Actions #1

Updated by Anonymous over 7 years ago

  • Project changed from Foreman to Smart Proxy
  • Category changed from DHCP to DHCP
Actions #2

Updated by Dominic Cleal over 7 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)
Actions #3

Updated by Tomer Brisker over 7 years ago

  • Bugzilla link set to 1393914
Actions #4

Updated by Lukas Zapletal over 7 years ago

Regression introduced by #12211

Actions #5

Updated by Lukas Zapletal over 7 years ago

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

Updated by The Foreman Bot over 7 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
Actions #7

Updated by Daniel Lobato Garcia over 7 years ago

  • Target version set to 1.4.3
Actions #8

Updated by Anonymous over 7 years ago

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

Updated by Dominic Cleal over 7 years ago

  • translation missing: en.field_release set to 189
Actions #10

Updated by Anonymous over 7 years ago

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

Updated by Dominic Cleal over 7 years ago

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

Updated by Dominic Cleal about 7 years ago

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

Updated by Anonymous almost 7 years ago

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

Updated by Anonymous almost 7 years ago

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

Also available in: Atom PDF