Bug 1366375

Summary: cannot delete or unregister a host if it no longer exists in candlepin
Product: Red Hat Satellite Reporter: Justin Sherrill <jsherril>
Component: CandlepinAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Renzo Nuccitelli <rnuccite>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: bbuckingham, jcallaha, jsherril, rnuccite
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/15602
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:41:43 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 Justin Sherrill 2016-08-11 19:40:58 UTC
Right now you can see but not delete or unregister a host if it has been deleted in candlepin, we should make this possible.

Comment 1 Justin Sherrill 2016-08-11 19:41:00 UTC
Created from redmine issue http://projects.theforeman.org/issues/15602

Comment 2 Justin Sherrill 2016-08-11 19:41:03 UTC
Upstream bug assigned to jsherril

Comment 4 Justin Sherrill 2016-08-25 17:59:29 UTC
This was resolved as part of https://bugzilla.redhat.com/show_bug.cgi?id=1357866

Comment 7 Renzo Nuccitelli 2017-03-28 12:20:16 UTC
Can you provide some verification steps or clarification on exactly what is expected for this one?

Comment 8 Justin Sherrill 2017-03-28 12:57:30 UTC
1.  Register a host with subscription-manager
2. Run: foreman-rake console

> uuid = Host.find("foobar.example.com").subscription_facet.uuid
> Katello::Resources::Candlepin::Consumer.destroy(uuid)
> exit

Replacing 'foobar.example.com' with your hostname of your registered client in quotes.

3. Try to delete the host from the UI.

Comment 9 Renzo Nuccitelli 2017-03-30 15:22:20 UTC
After removing host on candlepin it was not possible checking its detail page. The following error msg is presented:

"Something went wrong when retrieving the resource."

Thus it was not possible unregister the host through its detail page.

Besides that I was able to remove host selecting it through check box and Build Actions -> Remove Hosts

So I am changing this to VERIFIED.

Comment 10 Bryan Kearney 2018-02-21 16:39:43 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 11 Bryan Kearney 2018-02-21 16:41:43 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.

For information on the advisory, and where to find the updated files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:0336

Comment 12 Satellite Program 2018-02-21 16:51:07 UTC
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA.
> 
> For information on the advisory, and where to find the updated files, follow the link below.
> 
> If the solution does not work for you, open a new bug report.
> 
> https://access.redhat.com/errata/RHSA-2018:0336