-
Notifications
You must be signed in to change notification settings - Fork 124
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
local variable 'coll' referenced before assignment syncing EPEL 8 modular Pulp->Pulp #3275
Comments
To workaround the issue I ran a complete sync on the repository after switching to metadata complete mirroring. The Pulp to Pulp sync worked after that. |
I don't see how that line has ever worked. If you want to try a quick hack-test for me, remove 1370 from /usr/lib/python3.9/site-packages/pulp_rpm/app/tasks/synchronizing.py and retry with your original parameters. UpdateReferences don't even have a pulp_domain... |
I mentioned on Slack, but this seems likely to be a copy/paste error from a few lines above, where this line is present in a context where it actually makes sense. However, it doesn't "really" make sense, since as you said these models don't actually have a pulp_domain by virtue of not actually being content themselves. So it's just setting a value on the object, not setting a field on the model to be saved. In other words it's not doing anything. |
I fixed the line in question and reset my repo to use the additive mirroring policy. Looks like it's working now. |
Version
Katello 4.11.master
Describe the bug
Katello server has EPEL 8 modular (https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64/) synced using "On Demand" download policy and "Additive" mirroring policy. A smart proxy server running the same versions as Katello and as above is failing to sync the EPEL 8 modular repo from Katello. Here's the error task info:
To Reproduce
Sync https://dl.fedoraproject.org/pub/epel/8/Modular/x86_64/ on Katello with "On Demand" download policy and "Additive" mirroring policy. Katello may matter here because the error seems to be related to domains, which Katello does not use.
Expected behavior
Sync succeeds
The text was updated successfully, but these errors were encountered: