Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1624019

Summary: Cannot delete host when missing from the candlepin database
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Hosts - ContentAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: jcallaha
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.1CC: ahumbe, ajoseph, andrew.schofield, cduryee, dkaylor, ehelms, gapatil, inecas, jbhatia, ktordeur, lhellebr, mmccune, molasaga, mverma, pcreech, peter.vreman, rlavande, rraghuwa, stanislav.moravec, sthirugn, tbrisker
Target Milestone: UnspecifiedKeywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.4.5.79-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1575140 Environment:
Last Closed: 2018-10-11 15:18:07 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:
Attachments:
Description Flags
verification video none

Comment 4 jcallaha 2018-09-13 15:27:01 UTC
Verified in Satellite 6.3.4 Snap 1.

I followed the reproducer steps, then deleted the host (via ui) with no issues.

delete from cp_ent_certificate where entitlement_id in (select id from  cp_entitlement where consumer_id = '8a90c4a665ce42af0165cef0b8f4258a');
delete from cp2_pool_provided_products where pool_id='8a9084f364dd03de0164dd1c949e42cb';
delete from cp2_pool_source_sub where pool_id='8a9084f364dd03de0164dd1c949e42cb';
delete from cp_pool where sourceentitlement_id='eb78149b5beb4911aa09a4a1ff6cffba';
delete from cp_entitlement where consumer_id = '8a90c4a665ce42af0165cef0b8f8675a';
delete from cp_installed_products where consumer_id='8a90c4a665ce42af0165cef0b8f4258a';
delete from cp_consumer where id = '8a90c4a665ce42af0165cef0b8f4258a';

See attached video for verification of host deletion.

Comment 5 jcallaha 2018-09-13 15:27:29 UTC
Created attachment 1483085 [details]
verification video

Comment 7 errata-xmlrpc 2018-10-11 15:18: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/RHBA-2018:2915