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

Fixes #33893 - fix smart proxy sync with blank url #9775

Merged
merged 1 commit into from Nov 15, 2021

Conversation

jlsherrill
Copy link
Member

What are the changes introduced in this pull request?

We stopped checking remotes to see if they need updates due to the issue around that check. (Thinks like password and certs are not provided by pulp so will always show as needing updates). It seems the code for smart proxy syncing was comparing the remote config on the SP to the one that was supposed to be on the main pulp server. This was incorrect, and would have always been returning true! Except it seems that this completely errors if the repository has no url

What is the thinking behind these changes?

Skip the remote comparison like we do for regular repo syncs

What are the testing steps for this pull request?

  1. create some yum repository in Library without a url set
  2. try to sync it to a smart proxy (either associating the SP to library or promoting to an LCE)

@theforeman-bot
Copy link

Issues: #33893

Copy link
Member

@jjeffers jjeffers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reproduced the original condition then retested with latest updates - a yum repository with an empty url didn't cause a problem during a smart proxy sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants