Project

General

Profile

Bug #34880

Missing publications and distributions can cause sync failures

Added by Ian Ballou about 2 months ago. Updated 26 days ago.

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

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.

Associated revisions

Revision 3638d91f (diff)
Added by Ian Ballou about 2 months ago

Fixes #34880 - auto-create missing distributions and improve errors (#10101)

History

#1 Updated by Ian Ballou about 2 months ago

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

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.

#2 Updated by Ian Ballou about 2 months ago

  • Description updated (diff)

#3 Updated by The Foreman Bot about 2 months ago

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

#4 Updated by Ian Ballou about 2 months ago

  • Triaged changed from No to Yes

#5 Updated by The Foreman Bot about 2 months ago

  • Fixed in Releases Katello 4.5.0 added

#6 Updated by Anonymous about 2 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by The Foreman Bot 26 days ago

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

Also available in: Atom PDF