Project

General

Profile

Actions

Bug #22651

closed

ISC DHCP config parser ignores 'include' within 'shared_network'

Added by Dan Ports about 6 years ago. Updated about 6 years ago.

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

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.

Actions #1

Updated by Anonymous about 6 years ago

  • Category changed from DNS to DHCP
Actions #2

Updated by The Foreman Bot about 6 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
Actions #3

Updated by Anonymous about 6 years ago

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

Also available in: Atom PDF