Bug 1730883

Summary: Host can't register after rebuilding
Product: Red Hat Satellite Reporter: Perry Gagne <pgagne>
Component: ProvisioningAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Perry Gagne <pgagne>
Severity: high Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: inecas, mmccune, sshtein
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-22 21:03:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Perry Gagne 2019-07-17 19:28:13 UTC
Description of problem:
I provisioned a host via satellite. When I rebuilt it, the host was not able to subscribe

Version-Release number of selected component (if applicable): 6.6 snap 11


How reproducible: Always 


Steps to Reproduce:
1. Create a Host via PXE provisioning. Wait for it to finish.
2. Rebuild it ("Build" Button on host details page). 
3. Wait for the re-install to finish. 

Actual results: 
The host is not able to register during the reinstall. When I tried to subscribe manually i get this error:

[root@lucy-medlen ~]# subscription-manager register --org="Default_Organization" --activationkey="ak-rhel-7"
HTTP error (422 - Unknown): Please unregister or remove hosts which match this host before registering: lucy-medlen.lab.eng.rdu2.redhat.com


Expected results:
Host is able to register during reinstall. 

Additional info:
Foreman debug:
https://drive.google.com/file/d/15s5e4H-pNeKyeXEzW2MP6ow2kOrHLRmR/view?usp=sharing

Comment 3 Mike McCune 2019-07-17 20:04:45 UTC
IMO, this is a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1717006

Comment 4 Brad Buckingham 2019-07-22 21:03:16 UTC

*** This bug has been marked as a duplicate of bug 1717006 ***