Bug #9915
rake clean_backend_objects fails with error
Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Description
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
Associated revisions
History
#1
Updated by Justin Sherrill almost 8 years ago
- Bugzilla link set to 1206340
#2
Updated by Eric Helms almost 8 years ago
- Target version deleted (
68)
#3
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5172 added
- Pull request deleted (
)
#4
Updated by Eric Helms almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|d2cc576e48039d36723ed55d6e4bfcc1838a252e.
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.