-
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
Fix mirror=True not including files declared in .treeinfo in publication #2088
Conversation
65bed5c
to
edc8d99
Compare
CI likely to fail for same reason as here: #2087 (comment) |
publish_data = RpmRpmPublication(repository=repo.pulp_href) | ||
publish_response = self.publications.create(publish_data) | ||
created_resources = monitor_task(publish_response.task).created_resources | ||
publication_href = created_resources[0] |
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.
Epic fail, this wasn't actually testing the mirrored publication :( I was doing testing manually also so nothing was missed, and the test wouldn't have caught this, but still.
66f2e60
to
f03baf8
Compare
Attached issue: https://pulp.plan.io/issues/9230 |
According to https://github.com/pulp/pulp_rpm/blob/2-master/plugins/pulp_rpm/plugins/importers/yum/parse/treeinfo.py#L542-L565, we may need to also handle the possibility of files not present in checksums but declared elsewhere. We're also missing Lastly I noticed that if I actually download the file with
If I download from Pulp with wget then it works - and then afterwards downloading with httpie works fine. I suspect I may have figured out the cause of https://pulp.plan.io/issues/9213 - perhaps we forward the headers when streaming the content, including |
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.
Thanks for the fix!
Required PR: pulp/pulpcore#1569 [nocoverage] closes: #9230 https://pulp.plan.io/issues/9230
f03baf8
to
f1697c9
Compare
closes: #9230
https://pulp.plan.io/issues/9230