Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1434609 - clean_backend_objects doesn't handle nil subscription_facet uuids properly
clean_backend_objects doesn't handle nil subscription_facet uuids properly
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Infrastructure (Show other bugs)
6.2.0
Unspecified Unspecified
medium Severity high (vote)
: 6.2.10
: Unused
Assigned To: Justin Sherrill
jcallaha
: PrioBumpField, Triaged
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-21 18:16 EDT by Justin Sherrill
Modified: 2017-06-20 13:23 EDT (History)
4 users (show)

See Also:
Fixed In Version: rubygem-katello-3.0.0.134-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1446718 (view as bug list)
Environment:
Last Closed: 2017-06-20 13:23:25 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 18972 None None None 2017-03-21 18:16 EDT
Red Hat Product Errata RHBA-2017:1553 normal SHIPPED_LIVE Satellite 6.2.10 Async Bug Release 2017-06-20 17:19:07 EDT

  None (edit)
Description Justin Sherrill 2017-03-21 18:16:47 EDT
Currently the rake katello:clean_backend_objects does not remove the host if its uuid is nil on subscription-facet
Comment 1 Justin Sherrill 2017-03-21 18:16:51 EDT
Created from redmine issue http://projects.theforeman.org/issues/18972
Comment 2 Justin Sherrill 2017-03-21 18:16:54 EDT
Upstream bug assigned to jsherril@redhat.com
Comment 4 pm-sat@redhat.com 2017-03-23 16:12:48 EDT
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18972 has been resolved.
Comment 6 jcallaha 2017-05-25 16:01:25 EDT
Verified in Satellite 6.2.10 Snap 1.

In the foreman-rake console run the following commands
1. sub = Host.find(ID).subscription_facet
2. sub.uuid = nil
3. sub.save

Then run the rake command

-bash-4.2# foreman-rake katello:clean_backend_objects COMMIT=true
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_theme_satellite-0.1.43/app/models/concerns/satellite_packages.rb:4: warning: already initialized constant Katello::Ping::PACKAGES
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.134/app/models/katello/ping.rb:7: warning: previous definition of PACKAGES was here
Host 2 docker2  is partially missing.  Un-registering
Host 3 docker3  is partially missing.  Un-registering
Host 5 docker4  is partially missing.  Un-registering
Host 108 docker108  is partially missing.  Un-registering
1 orphaned consumer id(s) found.

When visiting the content host page for that host, you see the following message:
"This Host is not currently registered with subscription-manager. Click here for registration information."
Comment 8 errata-xmlrpc 2017-06-20 13:23:25 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-2017:1553

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