Actions
Story #2132
closedAs a consumer of Pulp content I want ISO & ISO_rsync distributor to support relative_url for consistency with yum
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
2.11.0
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Pulp 2
Sprint:
Sprint 8
Quarter:
Description
In pulp 2.10, yum and rsync distributors have a relative_url config key which allows customizing the directory used for publishing.
ISO distributor doesn't seem to have this and instead will always use a fixed directory layout of {ISO_HTTP_DIR}/{repo.id}.
This inconsistency is confusing to our users and leaks the pulp repo IDs into user-visible locations which is undesired. It would be good to support relative_url also for iso & iso_rsync distributors with the same semantics.
Acceptance criteria:
- relative_url is documented under https://docs.pulpproject.org/plugins/pulp_rpm/tech-reference/iso-plugins.html#iso-distributor
- relative_url is optional for ISO distributor (for backwards-compat)
- if relative_url is set to some/relative/path on iso distributor, then ISO files are published to {ISO_HTTP_DIR}/some/relative/path
- if relative_url is set on iso distributor, then iso_rsync_distributor automatically uses it for the publish, with same semantics as how rpm_rsync_distributor uses yum distributor's relative_url.
Actions
Changes needed to support relative url for ISO repositories
The Q object used to find conflicts for relative url now restricts the search to distributor's of a particular type. This is necesary to allow the same relative URLs for RPM and ISO content.
re: #2132 https://pulp.plan.io/issues/2132