Bug 1117836

Summary: an error removing a DHCP record (record doesn't exist) stops the delete process for a host
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: Foreman ProxyAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: cwelton, jmontleo
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6396
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-11 12:24:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bryan Kearney 2014-07-09 13:28:42 UTC
Trying to delete a host that does not have a DHCP record generates an error that prevents deletion of the host.  The error is:

<pre>
{"host":{"full_messages":["Remove DHCP Settings for our.host.com task failed with the following error: ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for 00:25:90:00:99:00 ([RestClient::BadRequest]: 400 Bad Request) for proxy https://our.host.com:8443/dhcp"],"errors":{"base":["Remove DHCP Settings for our.host.com task failed with the following error: ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for 00:25:90:00:99:00 ([RestClient::BadRequest]: 400 Bad Request) for proxy https://our.host.com:8443/dhcp"]},"id":1743}}
</pre>

Comment 1 Bryan Kearney 2014-07-09 13:28:43 UTC
Created from redmine issue http://projects.theforeman.org/issues/6396

Comment 3 Bryan Kearney 2014-07-11 10:03:37 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6396 has been closed
-------------
Dominic Cleal
https://github.com/theforeman/smart-proxy/pull/174
-------------
Anonymous
Applied in changeset commit:67bfd9a09741726cf7fa7c330b897b372a903d31.

Comment 5 Bryan Kearney 2014-09-11 12:24:52 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.