Bug #20022

Add action to force remove metadata from a repo to fix sync problem

Added by Juan Pablo Lorier 11 months ago. Updated 3 months ago.

Status:Closed
Priority:Normal
Assigned To:Partha Aji
Category:Repositories
Target version:Team Brad - Backlog
Difficulty: Pull request:https://github.com/Katello/katello/pull/7187
Bugzilla link: Found in Katello release:
Story points-
Velocity based estimate-
ReleaseKatello 3.5.2Release relationshipAuto

Description

I had 2 repos failing to sync becuase of metadata corruption. With the help of the community I was able to force the removal of the metadata via pulp:

pulp-admin -u admin -p $pulpAdminPassword rpm repo content metafile --repo-id=XXXXX
pulp-admin -u admin -p $pulpAdminPassword rpm repo remove metafile --repo-id=XXXXX --str-eq="checksum=YYYY"

That fixed the problem. Maybe you can add the option in the advanced sync action either as a checkbox or as part of the "Validate Content Sync".
Regards


Related issues

Blocked by Katello - Bug #21726: stop emptying repositories on promote Closed 11/21/2017

Associated revisions

Revision 13c3176a
Added by Partha Aji 3 months ago

Fixes #20022 - Clear yummetadata on validate sync

Many users have hit issues with sync failing due to metadata corruption.
The sync with "Validate Contents" does things redownloading missing or
corrupt packages.
This commit ensures that the yum metadata is also redownloaded if this
option is set (more as a precautionary measure with this action)

History

#1 Updated by Michael Moll 11 months ago

  • Project changed from Foreman to Katello

#2 Updated by Justin Sherrill 11 months ago

I hate to add a UI option to fix a bug in pulp that has not been identified, however I've seen many users hit this and it is very annoying to recover from. Will think about this for a bit.

#3 Updated by Eric Helms 11 months ago

  • Tracker changed from Feature to Bug
  • Release set to Katello 3.4.3

#4 Updated by Justin Sherrill 10 months ago

  • Release changed from Katello 3.4.3 to Katello 3.4.4

#5 Updated by Eric Helms 10 months ago

  • Release changed from Katello 3.4.4 to Katello 3.4.5

#6 Updated by Eric Helms 10 months ago

  • Release changed from Katello 3.4.5 to Katello 3.5.0

#7 Updated by Andrew Kofink 8 months ago

  • Target version set to Team Brad - Backlog

#8 Updated by Justin Sherrill 6 months ago

  • Release changed from Katello 3.5.0 to Katello 3.5.1

#9 Updated by Justin Sherrill 4 months ago

  • Release changed from Katello 3.5.1 to Katello 3.5.2
  • Category set to Repositories

#10 Updated by The Foreman Bot 3 months ago

  • Assigned To set to Partha Aji
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7187 added

#11 Updated by Partha Aji 3 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#12 Updated by Andrew Kofink about 1 month ago

  • Blocked by Bug #21726: stop emptying repositories on promote added

Also available in: Atom PDF