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 1206340 - rake clean_backend_objects fails with error
Summary: rake clean_backend_objects fails with error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1200420 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-26 20:08 UTC by Justin Sherrill
Modified: 2017-02-23 20:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 13:58:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9915 0 None None None 2016-04-22 16:29:27 UTC

Description Justin Sherrill 2015-03-26 20:08:12 UTC
<pre>

</pre>no error — just a long exception "exception when destroying candlepin consumer 2f86ed42-f840-49e8-9c75-d3671fb38237:Katello::Resources::Candlepin::Consumer: 500 Internal
Server Error {\"displayMessage\":\"Runtime Error null at org.candlepin.service.impl.DefaultIdentityCertServiceAdapter.deleteIdentityCert:6
9\",\"requestUuid\":\"56b221d5-a292-48d9-94c9-46e6c2a455e9\"} (DELETE /candlepin/consumers/2f86ed42-f840-49e8-9c75-d3671fb38237):
{\"displayMessage\":\"Runtime Error null at 
org.candlepin.service.impl.DefaultIdentityCertServiceAdapter.deleteIdentityCert:69\",\"requestUuid\":\"56b221d5-a292-48d9-94c9-46e6c2a455e9\"}"


this is due to there being 'ubercert' consumers that cannot be deleted properly

Comment 1 Justin Sherrill 2015-03-26 20:08:13 UTC
Created from redmine issue http://projects.theforeman.org/issues/9915

Comment 3 Bryan Kearney 2015-03-26 22:06:24 UTC
Upstream bug assigned to jsherril

Comment 4 Bryan Kearney 2015-04-09 18:06:50 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9915 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|d2cc576e48039d36723ed55d6e4bfcc1838a252e.

Comment 5 Bryan Kearney 2015-04-16 16:29:06 UTC
commit 7f07de6583febb25b9127ad2151519864180e066
Author: Eric D. Helms <ericdhelms>
Date:   Thu Apr 9 12:07:49 2015 -0400

    Fixes #9915: Backend cleanup script handles uebercert and hypervisors.
    
    When an uebercert is generated Candlepin generates a consumer. If
    a user runs the cleanup script we don't want to attempt to delete
    as it leads to errors and is not a consumer we manage directly.
    Also, we previously were preventing deletion of Hypervisors due
    in part to the errors that the script would generate since Hypervisors
    do not create corresponding Pulp consumers.
    
    (cherry picked from commit d2cc576e48039d36723ed55d6e4bfcc1838a252e)

Comment 6 Tazim Kolhar 2015-04-24 10:32:43 UTC
hi 

please provide verification steps

thanks

Comment 7 Justin Sherrill 2015-04-29 13:31:34 UTC
1. Navigate to Administer >  organizations > Click on an organization
2. On the org details page click the 'generate and download' button to download the ubercert
3. As root on the satellite run 'foreman-rake katello:clean_backend_objects'

Comment 8 Tazim Kolhar 2015-04-30 11:24:28 UTC
VERIFIED:

# rpm -qa | grep foreman
puppet-foreman_scap_client-0.3.3-8.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.10-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.8-1.el7sat.noarch
foreman-libvirt-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.12-1.el7sat.noarch
foreman-compute-1.7.2.18-1.el7sat.noarch
foreman-ovirt-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_discovery-2.0.0.12-1.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
foreman-debug-1.7.2.18-1.el7sat.noarch
foreman-postgresql-1.7.2.18-1.el7sat.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-client-1.0-1.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-proxy-1.0-1.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-1.7.2.18-1.el7sat.noarch
foreman-gce-1.7.2.18-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.10-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-vmware-1.7.2.18-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.6-1.el7sat.noarch
foreman-proxy-1.7.2.4-1.el7sat.noarch
qe-sat6-rhel71.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch
ruby193-rubygem-foreman-redhat_access-0.1.0-1.el7sat.noarch

1. Navigate to Administer >  organizations > Click on an organization
2. On the org details page click the 'generate and download' button to download the ubercert
3. As root on the satellite run 'foreman-rake katello:clean_backend_objects'

# foreman-rake katello:clean_backend_objects
# echo $?
0

Comment 9 Tom McKay 2015-05-13 14:49:47 UTC
*** Bug 1200420 has been marked as a duplicate of this bug. ***

Comment 10 Bryan Kearney 2015-08-11 13:32:49 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 Bryan Kearney 2015-08-12 13:58:20 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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