Project

General

Profile

Bug #34880

Updated by Ian Ballou over 2 years ago

Katello fails Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=2054786  

 *Description of problem:* 

 If a repository's publication is somehow missing in Pulp, syncing when publications and/or distributions are failing. We should automate what we a repository that has "Mirror on Sync" set to true can fail with the above error. 

 This is due to the fact the pulp_rpm 3.14 does not recreate publications at sync time if a new repository version is not generated.    This is not an issue for Katello versions running pulp_rpm 3.16. 

 There's an issue in Pulp to fix that, or improve messaging. this, but the backport is reportedly very difficult (and hence risky): https://github.com/pulp/pulp_rpm/issues/2399 

 This affects versions A workaround in Katello exists: 
 1) Set the repository's "Mirror on Sync" option to false 
 2) There will be an error when changing this, so skip the failing RefreshDistribution step in the Dynflow task for updating the repository. 
 3) Run a complete sync on the repository after the update task finishes. 

 The repository should now be fixed. The Mirror on Sync option can be turned back on if necessary. 



 *Version-Release number of selected component (if applicable):* 

 Any version of Katello using that uses pulp_rpm 3.14 differently from newer versions. More details are below. 3.14. 


 *How reproducible:* 
 Every time 


 *Steps to Reproduce:* 
 1.    Create and sync a repo 
 2.    Destroy the repo's publication via the Pulp API 
 3.    Try to sync the repository 

 *Actual results:* 
 The sync fails with the error in the title. 

 *Expected results:* 
 The sync should succeed. 

 *Additional info:* 

 Granted that there's a workaround, and publications should not be disappearing out of nowhere, I would consider this a low-priority.

Back