Project

General

Profile

Actions

Bug #5995

closed

Windows AD DHCP reservation creation fails with "The specified option does not exist"

Added by Oliver Weinmann almost 10 years ago. Updated about 8 years ago.

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

Description

Hi,

I upgraded from 1.3x to 1.5 two days ago and now I'm no longer able to create new hosts. :(

I always get an error during DHCP creation. Strange, because the DHCP reservation is created. We run a Win2k8 R2 server as DHCP.

I tried to use the latest foreman-proxy dev, no change. I saw a similar bug reported:

http://projects.theforeman.org/issues/5847

but the solution to this bug didn't solve my problem.


Related issues 2 (0 open2 closed)

Related to Smart Proxy - Bug #2870: DHCP reservations on MS DHCP servers with PXEClient definedClosed08/01/2013Actions
Related to Smart Proxy - Bug #13575: Don't fail due to missing PXEClient DHCP opt on 2008R2ClosedGuido Günther02/05/2016Actions
Actions #1

Updated by Dominic Cleal almost 10 years ago

  • Status changed from New to Need more information

This error message is simply reporting there's an error on your proxy server.

Please read and provide the logs from the proxy, typically "proxy.log".

Actions #2

Updated by Oliver Weinmann almost 10 years ago

Hi,

I looked in the logs and found this:

D, [2014-05-30T09:06:22.129142 #2620] DEBUG -- : Added test.a.space.corp (172.28.7.172 / 00:50:56:b7:0d:3f) to 172.28.4.0/255.255.252.0
D, [2014-05-30T09:06:22.129142 #2620] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe -c dhcp server 172.28.4.12 scope 172.28.4.0 add reservedip 172.28.7.172 005056b70d3f test.a.space.corp
I, [2014-05-30T09:06:22.534752 #2620]  INFO -- : Added DHCP reservation for test.a.space.corp (172.28.7.172 / 00:50:56:b7:0d:3f)
D, [2014-05-30T09:06:22.534752 #2620] DEBUG -- : key: "nextServer" 
D, [2014-05-30T09:06:22.534752 #2620] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe -c dhcp server 172.28.4.12 scope 172.28.4.0 set reservedoptionvalue 172.28.7.172 66 String "172.28.7.168" 
D, [2014-05-30T09:06:22.815559 #2620] DEBUG -- : key: "PXEClient" 
D, [2014-05-30T09:06:22.815559 #2620] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe -c dhcp server 172.28.4.12 scope 172.28.4.0 set reservedoptionvalue 172.28.7.172 60 String "" 
I, [2014-05-30T09:06:23.096367 #2620]  INFO -- : Vendor class not found
E, [2014-05-30T09:06:23.096367 #2620] ERROR -- : Netsh failed:

Changed the current scope context to 172.28.4.0 scope.

The specified option does not exist.

E, [2014-05-30T09:06:23.096367 #2620] ERROR -- : Unknown error while processing ''
D, [2014-05-30T09:06:23.096367 #2620] DEBUG -- : ./bin/../lib/proxy/dhcp/server/native_ms.rb:221:in `report'
./bin/../lib/proxy/dhcp/server/native_ms.rb:193:in `execute'
./bin/../lib/proxy/dhcp/server/native_ms.rb:54:in `addRecord'
./bin/../lib/proxy/dhcp/server/native_ms.rb:41:in `each'
./bin/../lib/proxy/dhcp/server/native_ms.rb:41:in `addRecord'
./bin/../lib/dhcp_api.rb:94:in `POST /dhcp/:network'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:1032:in `compile!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in `instance_eval'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:620:in `route_eval'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:604:in `route!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:656:in `process_route'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in `catch'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:653:in `process_route'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:603:in `route!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in `each'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:602:in `route!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:741:in `dispatch!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in `call!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `instance_eval'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `catch'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:706:in `invoke'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:530:in `call!'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:516:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/methodoverride.rb:24:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/showexceptions.rb:24:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/commonlogger.rb:18:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:1168:in `synchronize'
C:/Ruby187/lib/ruby/gems/1.8/gems/sinatra-1.1.0/lib/sinatra/base.rb:1142:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/content_length.rb:13:in `call'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/handler/webrick.rb:52:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.2.0/lib/rack/handler/webrick.rb:13:in `run'
./bin/../lib/sinatra-patch.rb:42:in `run!'
bin/smart-proxy:44
Actions #3

Updated by Oliver Weinmann almost 10 years ago

Problem also occurs on a second proxy where we only have one subnet. :( I thought maybe it's a timeout issue due too many subnets.

Actions #4

Updated by Oliver Weinmann almost 10 years ago

Hi Guys,

this is really becoming urgent as I can't deploy any new hosts, neither can I change / update existing hosts that are managed through foreman. I provided the logs output. Is any more info required? If yes, please let me know.

Best Regards,
Oliver

Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Status changed from Need more information to New

We generally don't actively maintain AD support, so any help to track it down and submit patches would be welcomed.

My only hunch looking at that error is that it's trying to add an option for code 60.. which was added back in 1.4.0 with this commit: https://github.com/theforeman/smart-proxy/commit/296617a

I'd try reverting that on your installation to see if it's causing the problem. Perhaps it's only available on certain versions of AD.

Actions #6

Updated by Oliver Weinmann almost 10 years ago

Hi Dominic,

must have missed the email about your update on this ticket. Thanks a lot the fix works. I have updated the ticket http://projects.theforeman.org/issues/2870 about this problem. Maybe the author can provide a workaround for it.

Best Regards,
Oliver

Actions #7

Updated by Dominic Cleal almost 10 years ago

  • Related to Bug #2870: DHCP reservations on MS DHCP servers with PXEClient defined added
Actions #8

Updated by Dominic Cleal over 9 years ago

  • Subject changed from error: ERF12-6899 [ProxyAPI::ProxyException]: Unable to set DHCP entry ([RestClient::BadRequest]: 400 Bad Request) for proxy to Windows AD DHCP reservation creation fails with "The specified option does not exist"
Actions #9

Updated by Sam Zandbergen over 9 years ago

I ran into the same problem, but also had a different one. The following error:
http://pastebin.com/ib7nyxug

My problem was solved by disabling UAC and restarting the server, I was test running it in a command prompt instead of a service.

Actions #10

Updated by Dominic Cleal over 8 years ago

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

Updated by Anonymous about 8 years ago

  • Related to Bug #13575: Don't fail due to missing PXEClient DHCP opt on 2008R2 added
Actions #12

Updated by Anonymous about 8 years ago

  • Status changed from New to Closed

Closing this in favour of http://projects.theforeman.org/issues/13575, where changes for the fix are being tracked.

Actions #13

Updated by Dominic Cleal about 8 years ago

  • Status changed from Closed to Duplicate
Actions

Also available in: Atom PDF