Bug #34880
closedMissing publications and distributions can cause sync failures
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.
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.
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
Updated by The Foreman Bot over 2 years ago
- Fixed in Releases Katello 4.5.0 added
Updated by Anonymous over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|3638d91f74c7031f40c6ac217fdd1f576e118039.
Updated by The Foreman Bot over 2 years ago
- Pull request https://github.com/Katello/katello/pull/10152 added