Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM sync ought to provide sync_policy option, mark mirror as deprecated #462

Closed
dralley opened this issue Feb 1, 2022 · 2 comments · Fixed by #540
Closed

RPM sync ought to provide sync_policy option, mark mirror as deprecated #462

dralley opened this issue Feb 1, 2022 · 2 comments · Fixed by #540
Assignees
Labels
feature request New feature request (template-set)
Milestone

Comments

@dralley
Copy link
Contributor

dralley commented Feb 1, 2022

The RPM plugin provides a sync_policy parameter to replace the mirror parameter and has marked the mirror parameter as deprecated. The reason is that mirror = bool doesn't capture the full range of potentially desired behaviors, and is ambiguous when there could be multiple different meanings of "mirror".

The current choices for sync_policy are "additive", "mirror_content_only", and "mirror_complete"

pulp/pulp_rpm#2146
https://docs.pulpproject.org/pulp_rpm/workflows/create_sync_publish.html#sync-repository-foo-using-remote-bar

@dralley dralley added the feature request New feature request (template-set) label Feb 1, 2022
@mdellweg
Copy link
Member

mdellweg commented Feb 2, 2022

Can you provide a breakdown of the plugin versions that introduce the new parameter and deprecate / remove the old one (if already applicable)?

@dralley
Copy link
Contributor Author

dralley commented Feb 3, 2022

It was introduced in pulp_rpm 3.16.0, but later backported to 3.14.9 at Katello's request. It's not removed but it is mutually exclusive with sync_policy and will reject requests that supply both.

But anything you can do with mirror can be done with sync_policy. mirror=True == sync_policy=mirror_complete and mirror=False == sync_policy=additive

It's not present in 3.15 but we can consider that version effectively dead. It has no downstream users and no z-releases.

@ggainey ggainey self-assigned this May 16, 2022
ggainey pushed a commit to ggainey/pulp-cli that referenced this issue Aug 3, 2022
fixes pulp#462.

Co-authored by: Grant Gainey <ggainey@redhat.com>
ggainey pushed a commit to ggainey/pulp-cli that referenced this issue Aug 3, 2022
fixes pulp#462.

Co-authored by: Grant Gainey <ggainey@redhat.com>
ggainey pushed a commit to ggainey/pulp-cli that referenced this issue Aug 10, 2022
fixes pulp#462.

Co-authored by: Grant Gainey <ggainey@redhat.com>
ggainey pushed a commit to ggainey/pulp-cli that referenced this issue Aug 10, 2022
fixes pulp#462.

Co-authored by: Grant Gainey <ggainey@redhat.com>
ggainey pushed a commit that referenced this issue Aug 11, 2022
fixes #462.

Co-authored by: Grant Gainey <ggainey@redhat.com>
@mdellweg mdellweg added this to the 0.16.0 milestone Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request (template-set)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants