-
Notifications
You must be signed in to change notification settings - Fork 123
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
Fixing dupe ISO units after file update #1058
Conversation
@daviddavis, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jortel, @jeremycline and @ipanova to be potential reviewers. |
Fixing a bug whereby a ISO or file gets updated and then reimported into pulp by sync or upload. We're now disassociating the original content unit and replacing it with the new one. Matching on the name of the unit. fixes pulp#2773 https://pulp.plan.io/issues/2773
@daviddavis , it looks like the similar issue was resolved for RPMs sync/upload, there is a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a comment to discuss general approach to solve this issue, could you take a look
@goosemania thanks for the feedback. I can take a look at combining the iso code with I'm not sure why the rpm importer purges units before importing the new ones, but it seems like a bad idea. If the import fails, then the units would automatically be removed from the repo without the new unit being added to Pulp/the repo. That seems suboptimal. |
@goosemania pushed the changes in a new commit. There may be a better way to generalize remove_unit_duplicate_nevra..? Also, I am not sure what to do about the |
I'm a bit torn. Not sure if the generalization here is an improvement but maybe there's a better way? |
@daviddavis , yeah, I am not sure either. |
@goosemania reverted to the initial commit. I think it's the simplest solution. |
@daviddavis , thanks! 🍻 |
Fixing a bug whereby an ISO or file gets updated and then reimported into
pulp by sync or upload. We're now disassociating the original content
unit and replacing it with the new one. Matching on the name of the
unit.
fixes #2773
https://pulp.plan.io/issues/2773