Project

General

Profile

Bug #30480

Failed Repository enable/create task can leave orphan repo root objects in db

Added by Samir Jha about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Based on support cases on BZ:https://bugzilla.redhat.com/show_bug.cgi?id=1854711 and discussions on that, a failed repository enable/create task could lead to orphan root repository objects in Katello.
The immediate problem it led to was with running sync plans on parent product which is fixed as part of the above BZ.
Not entirely sure if orphan root repos could lead to other problems but something to look into.

Associated revisions

Revision 89f1bb6e (diff)
Added by Ian Ballou almost 2 years ago

Fixes #30480: Cleanup orphaned root repositories (#8897)

History

#1 Updated by Samir Jha about 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.0.0

#2 Updated by Chris Roberts about 2 years ago

  • Target version changed from Katello 4.0.0 to Katello 3.17.0

#3 Updated by Ian Ballou almost 2 years ago

I'm searching for what might cause a Root Repository to be orphaned without a resumable task that could fix it. If I still cannot find why, I will simply improve the katello:correct_repositories rake task to work for Pulp 3 and remove any orphaned Root Repositories.

#4 Updated by The Foreman Bot almost 2 years ago

  • Assignee set to Ian Ballou
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8897 added

#5 Updated by The Foreman Bot almost 2 years ago

  • Fixed in Releases Katello 4.0.0 added

#6 Updated by Anonymous almost 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF