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

Pulp allows you to create a distribution for another repository type #6174

Open
daviddavis opened this issue Jan 3, 2025 · 0 comments
Open
Labels

Comments

@daviddavis
Copy link
Contributor

daviddavis commented Jan 3, 2025

I noticed that we had an apt distro with an rpm repository. I think this is might be a Pulp bug in that Pulp should prevent this from happening?

Steps to reproduce:

pulp rpm repository create --name test-yum

# note you have to use the api here because the cli checks the href type
http ${SERVER}/pulp/api/v3/distributions/deb/apt/ repository=/pulp/api/v3/repositories/rpm/rpm/01942cdc-3ae2-7b
ab-9c52-2157b5e14cce/ base_path=test-apt name=test-apt

pulp deb distribution list

Output:

[
  {
    "pulp_href": "/pulp/api/v3/distributions/deb/apt/01942cdd-9f20-7f09-89f3-ae06d0c80f4b/",
    "prn": "prn:deb.aptdistribution:01942cdd-9f20-7f09-89f3-ae06d0c80f4b",
    "pulp_created": "2025-01-03T15:51:49.281526Z",
    "pulp_last_updated": "2025-01-03T15:51:49.281539Z",
    "base_path": "test-apt",
    "base_url": "https://pulp.example.com/pulp/content/test-apt/",
    "content_guard": null,
    "no_content_change_since": null,
    "hidden": false,
    "pulp_labels": {},
    "name": "test-apt",
    "repository": "/pulp/api/v3/repositories/rpm/rpm/01942cdc-3ae2-7bab-9c52-2157b5e14cce/",
    "publication": null
  },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants