-
Notifications
You must be signed in to change notification settings - Fork 78
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
KeyError when publishing repo with unsupported arch package #777
Comments
Steps I used to reproduce this: pulp deb repository create --name test
http --form :/pulp/api/v3/content/deb/packages/ file@frigg_1.0_ppc64.deb
http :/pulp/api/v3/repositories/deb/apt/703c66ef-f106-40c1-bb97-f2a5e797bdf2/modify/ add_content_units:='["/pulp/api/v3/content/deb/packages/63f97069-7d56-4620-891e-fc690d0c52f3/"]'
http :/pulp/api/v3/content/deb/releases/ distribution=test codename=test suite=test
http :/pulp/api/v3/repositories/deb/apt/703c66ef-f106-40c1-bb97-f2a5e797bdf2/modify/ add_content_units:='["/pulp/api/v3/content/deb/releases/61ee49c6-96d4-4d0a-be56-2637205a8004/"]'
http :/pulp/api/v3/content/deb/release_components/ codename=test component=test distribution=test suite=test
http :/pulp/api/v3/repositories/deb/apt/703c66ef-f106-40c1-bb97-f2a5e797bdf2/modify/ add_content_units:='["/pulp/api/v3/content/deb/release_components/fe1a0193-1e6f-4ea5-9362-04fe8f19818e/"]'
http :/pulp/api/v3/content/deb/release_architectures/ codename=test distribution=test suite=test architecture=amd64
http :/pulp/api/v3/repositories/deb/apt/703c66ef-f106-40c1-bb97-f2a5e797bdf2/modify/ add_content_units:='["/pulp/api/v3/content/deb/release_architectures/c427ef12-224f-49e5-9346-d49f53b0d989/"]'
http :/pulp/api/v3/content/deb/package_release_components/ release_component=/pulp/api/v3/content/deb/release_components/fe1a0193-1e6f-4ea5-9362-04fe8f19818e/ package=/pulp/api/v3/content/deb/packages/63f97069-7d56-4620-891e-fc690d0c52f3/
http :/pulp/api/v3/repositories/deb/apt/703c66ef-f106-40c1-bb97-f2a5e797bdf2/modify/ add_content_units:='["/pulp/api/v3/content/deb/package_release_components/07be43f7-5236-4f24-ae0a-31ea4021fbfa/"]'
pulp deb publication create --repository test --structured |
I think this is an oversight on my part, during recent publish changes. It is something we should make the publish robust against, and ideally add a test so this never happens again. |
Which recent publish changes? We are experiencing this in 2.20.0. I've opened a proposed fix here: #778 |
@daviddavis Then I was mistaken about this breaking with the recent changes, though I have some vague recollection of this sort of thing having worked in the past/having been an issue before. But I could be mistaken about that as well... |
fixes pulp#777 Co-authored-by: Quirin Pamp <quirinp@protonmail.com>
fixes pulp#777 Co-authored-by: Quirin Pamp <quirinp@protonmail.com>
A
KeyError
gets raised during publish if a repo contains a package with an architecture that doesn't have a corresponding release architecture.To Reproduce
The task fails due to a KeyError:
The text was updated successfully, but these errors were encountered: