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