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 1624028 - clean_backend_objects does not verify managed host status prior to action
Summary: clean_backend_objects does not verify managed host status prior to action
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.2.15
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-30 16:57 UTC by Mike McCune
Modified: 2021-12-10 17:14 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-katello-3.4.5.81-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1622666
Environment:
Last Closed: 2018-10-11 15:18:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24812 0 Normal Closed clean_backend_objects does not verify managed host status prior to action 2020-11-23 08:11:20 UTC
Red Hat Product Errata RHBA-2018:2915 0 None None None 2018-10-11 15:18:44 UTC

Comment 3 Satellite Program 2018-09-05 18:05:43 UTC
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 20:09:34 UTC
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 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


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