Project

General

Profile

Actions

Bug #34880

closed

Missing publications and distributions can cause sync failures

Added by Ian Ballou over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Repositories
Target version:
Fixed in Releases:
Found in Releases:

Description

Katello fails syncing when publications and/or distributions are failing. We should automate what we can to fix that, or improve messaging.

This affects versions of Katello using pulp_rpm 3.14 differently from newer versions. More details are below.

Actions #1

Updated by Ian Ballou over 2 years ago

  • Subject changed from {"publication":["Invalid hyperlink - Object does not exist."]} error when syncing a repository to Missing publications and distributions can cause sync failures
  • Target version set to Katello 4.4.1

When a repo sync or cv publish (w/o filters) fails to sync due to a missing publication or distribution, we need to update the error message to say something more helpful. In the case of distributions, they should be automatically recreated. In the case of publications, the user will need to perform a full sync.

Backporting this to versions of Katello that use pulp_rpm 3.14 won't be straight-forward because you shouldn't recreate 'mirror complete' repo publications forcefully -- Pulp at that point did not recreate publications if no new repo version was created during sync. So, worst case, a new publication can be forcefully created, but any on-demand capsules will need to by fully resynced. As such, I think those cases should be handled case-by-case. Publications and distributions should not be deleted wrongfully by Katello anyway.

Actions #2

Updated by Ian Ballou over 2 years ago

  • Description updated (diff)
Actions #3

Updated by The Foreman Bot over 2 years ago

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

Updated by Ian Ballou over 2 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases Katello 4.5.0 added
Actions #6

Updated by Anonymous over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by The Foreman Bot over 2 years ago

  • Pull request https://github.com/Katello/katello/pull/10152 added
Actions

Also available in: Atom PDF