Fixes #34781 - Add rake script to push all repos from katello to pulp2/3 #10077
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This rake script was motivated by some events where we could not ascertain that pulp was hosting all repositories and content views that katello knew about. In these cases, the existing katello:correct_pulp_repositories rake script would sometimes end up removing from katello the repositories that were missing from pulp, instead of pushing those repos from katello to pulp.
This rake script here triggers a repo creation task on the local pulp/pulp3 for every repository known to katello. Existing repositories will usually succeed immediately or fail silently -- both these outcomes are OK.
This rake script can optionally target an individual Lifecycle Env or a CV or a repo as a way to narrow down the contents to be pushed to pulp in case one knows exactly which repos are missing on pulp.
I look forward to this team's feedback.