Project

General

Profile

Actions

Bug #7768

closed

ms_native dhcp smart proxy code fails to find and delete a reservation it just added

Added by Dan Berger about 10 years ago. Updated over 7 years ago.

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

Description

This is running the "1.5.0 stable" smart proxy on windows.

Repro: create a host through foreman (which creates an associated reservation), delete that host through foreman, observe that the delete doesn't delete the reservation.

log excerpt:

D, [2014-10-01T14:05:24.334788 #3792] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe c dhcp server \\dhcp01 scope 172.16.0.0 add reservedip 172.16.1.118 005056934f6c mavericks.valvesoftware.com
I, [2014-10-01T14:05:24.381664 #3792] INFO -
: Added DHCP reservation for mavericks.valvesoftware.com (172.16.1.118 / 00:50:56:93:4f:6c)
...

delete host from foreman:
D, [2014-10-01T14:20:47.036787 #3792] DEBUG -- : executing: c:\windows\sysnative\cmd.exe /c c:\Windows\System32\netsh.exe c dhcp server \\dhcp01 scope 172.16.0.0 Show ReservedOptionValue 172.16.1.118
I, [2014-10-01T14:20:47.083663 #3792] INFO -
: Queried 172.16.1.118 options
D, [2014-10-01T14:20:47.083663 #3792] DEBUG -- : found option filename
D, [2014-10-01T14:20:47.083663 #3792] DEBUG -- : found option install_path
D, [2014-10-01T14:20:47.083663 #3792] DEBUG -- : {:install_path=>"mavericks.valvesoftware.com", :filename=>"pxelinux.0"}
D, [2014-10-01T14:20:47.083663 #3792] DEBUG -- : {:install_path=>"mavericks.valvesoftware.com", :ip=>"172.16.1.118", :mac=>"00:50:56:93:4f:6c", :filename=>"pxelinux.0", :subnet=>172.16.0.0/255.255.248.0}
D, [2014-10-01T14:20:47.083663 #3792] DEBUG -- : Added 172.16.1.118 / 00:50:56:93:4f:6c to 172.16.0.0/255.255.248.0
D, [2014-10-01T14:20:47.083663 #3792] DEBUG -- : Lazy loaded 172.16.0.0/255.255.248.0 records
E, [2014-10-01T14:20:47.083663 #3792] ERROR -- : Record 172.16.0.0/00:50:56:93:4f:6c not found

Actions

Also available in: Atom PDF