Bug #34880
closed
Missing publications and distributions can cause sync failures
Added by Ian Ballou over 2 years ago.
Updated over 2 years ago.
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.
- 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.
- Description updated (diff)
- Status changed from New to Ready For Testing
- Assignee set to Ian Ballou
- Pull request https://github.com/Katello/katello/pull/10101 added
- Triaged changed from No to Yes
- Fixed in Releases Katello 4.5.0 added
- Status changed from Ready For Testing to Closed
- Pull request https://github.com/Katello/katello/pull/10152 added
Also available in: Atom
PDF