Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1624028 - clean_backend_objects does not verify managed host status prior to action
clean_backend_objects does not verify managed host status prior to action
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Hosts - Content (Show other bugs)
6.2.15
Unspecified Unspecified
urgent Severity urgent (vote)
: 6.3.4
: Unused
Assigned To: Justin Sherrill
jcallaha
: Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-30 12:57 EDT by Mike McCune
Modified: 2018-10-11 11:18 EDT (History)
6 users (show)

See Also:
Fixed In Version: tfm-rubygem-katello-3.4.5.81-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1622666
Environment:
Last Closed: 2018-10-11 11:18:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 24812 None None None 2018-09-05 13:28 EDT
Red Hat Product Errata RHBA-2018:2915 None None None 2018-10-11 11:18 EDT

  None (edit)
Comment 3 pm-sat@redhat.com 2018-09-05 14:05:43 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/24812 has been resolved.
Comment 5 jcallaha 2018-09-19 16:09:34 EDT
Verified in Satellite 6.3.4 Snap 1

Registered 2 hosts to the satellite. 
Changed one of them to managed (postgres)
Added a compute resource to the other (postgres)
Marked each of their subscription facet uuid's as nil (postgres)
Then ran the rake task.

Since I did these one at a time, the task was targeting one each time.

-bash-4.2# foreman-rake katello:clean_backend_objects COMMIT=true
Host 13 another nil is partially missing subscription information.  Un-registering
Leaving provisioning record for another in place, it is either managed or assigned to a compute resource.1 orphaned consumer id(s) found in candlepin.
0 orphaned consumer id(s) found in pulp.


-bash-4.2# foreman-rake katello:clean_backend_objects COMMIT=true
Host 14 another nil is partially missing subscription information.  Un-registering
Leaving provisioning record for another in place, it is either managed or assigned to a compute resource.1 orphaned consumer id(s) found in candlepin.
0 orphaned consumer id(s) found in pulp.
Comment 7 errata-xmlrpc 2018-10-11 11:18:07 EDT
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

Note You need to log in before you can comment on or make changes to this bug.