Bug 1155642

Summary: hammer command to remove content host deletion record
Product: Red Hat Satellite Reporter: Tom McKay <tomckay>
Component: Content ManagementAssignee: Adam Price <adprice>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.4CC: adprice, bbuckingham, cwelton
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/8028
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-07 19:44:40 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 Tom McKay 2014-10-22 14:16:42 UTC
When a content host is deleted on the server, candlepin saves a record of it. If this consumer checks in after that point (via rhsm) it will receive a "410 gone" response. Rhsm know this to mean they have been deleted and so stop checking in. The host may be re-registered at that point, if desired.

Since virt-who checks in on a hypervisors behalf, deleting a hypervisor content host leaves things in a state where that hypervisor cannot be recreated since there is no way to re-register it. From that point on, the hypervisor will never appear again as a content host.

The workaround implemented is to provide a mechanism to delete the deletion record. This would allow virt-who to recreate the hypervisor.

Old katello CLI had a command for this; this needs to be implemented in hammer.

Comment 1 Tom McKay 2014-10-22 14:16:43 UTC
Created from redmine issue http://projects.theforeman.org/issues/8028

Comment 3 Tom McKay 2014-11-07 19:44:40 UTC
Not necessary