Project

General

Profile

Bug #6286

Subnets not found in dhcpd.conf

Added by Mike McRill almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

After upgrading to 1.5.1, IP auto-suggest isn't working. I'm seeing these errors in the proxy.log when I go to the network tab and try auto-suggest on various networks:

E, [2014-06-19T07:30:31.713949 #9762] ERROR -- : Subnet 1.1.17.0 not found
D, [2014-06-19T07:30:32.266689 #9762] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf
D, [2014-06-19T07:30:32.266937 #9762] DEBUG -- : Loading subnets for 127.0.0.1
E, [2014-06-19T07:30:32.267253 #9762] ERROR -- : Subnet 1.1.17.0 not found
D, [2014-06-19T07:30:33.375446 #9762] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf
D, [2014-06-19T07:30:33.375682 #9762] DEBUG -- : Loading subnets for 127.0.0.1
E, [2014-06-19T07:30:33.376024 #9762] ERROR -- : Subnet 1.1.12.0 not found
D, [2014-06-19T07:30:34.372224 #9762] DEBUG -- : Reading config file /etc/dhcp/dhcpd.conf
D, [2014-06-19T07:30:34.372456 #9762] DEBUG -- : Loading subnets for 127.0.0.1

History

#1 Updated by Dominic Cleal almost 5 years ago

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

#2 Updated by Greg Sutcliffe almost 5 years ago

  • Status changed from New to Need more information

I can't replicate this, my proxy is suggesting IPs just fine:

172.20.10.20 - - [19/Jun/2014:15:05:02 BST] "GET /dhcp/172.20.10.0/unused_ip?from=172.20.10.50&to=172.20.10.199 HTTP/1.1" 200 21
- -> /dhcp/172.20.10.0/unused_ip?from=172.20.10.50&to=172.20.10.199

D, [2014-06-19T15:02:43.346098 #8005] DEBUG -- : Added 172.20.10.141 / 24:77:03:7d:06:e4 to 172.20.10.0/255.255.255.0

Could you attach your dhcpd.conf and, if possible, run the proxy in the foreground to catch the requests coming from foreman?

#3 Updated by Mike McRill almost 5 years ago

I resolved the issue by commenting out this line in the foreman-proxy settings.yml:

  1. :dhcp_subnets: [1.1.17.0/255.255.255.255.0]

For some reason that was uncommented, and I don't remember filling that in at all. I run an ISC DHCP server, so I would have no use for this option.

#4 Updated by Dominic Cleal almost 5 years ago

  • Status changed from Need more information to Resolved

Ahh, so in 1.5.1 we merged #5712 which made the ISC DHCP backend obey the same option as the AD backend to fix timeout issues there.

Also available in: Atom PDF