Add action to force remove metadata from a repo to fix sync problem
|Assigned To:||Partha Aji|
|Target version:||Team Brad - Backlog|
|Velocity based estimate||-|
|Release||Katello 3.5.2||Release relationship||Auto|
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".
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
This commit ensures that the yum metadata is also redownloaded if this
option is set (more as a precautionary measure with this action)