Story #2132
closedAs a consumer of Pulp content I want ISO & ISO_rsync distributor to support relative_url for consistency with yum
100%
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.
Updated by dkliban@redhat.com over 8 years ago
- Sprint Candidate changed from No to Yes
Updated by dkliban@redhat.com over 8 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dkliban@redhat.com
Updated by dkliban@redhat.com about 8 years ago
- Status changed from ASSIGNED to POST
Added by dkliban@redhat.com about 8 years ago
Added by dkliban@redhat.com about 8 years ago
Revision 0aa13525 | View on GitHub
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.
Updated by ipanova@redhat.com about 8 years ago
Tested these steps:
https://github.com/pulp/pulp_rpm/pull/988#issuecomment-248879670
Added by dkliban@redhat.com about 8 years ago
Revision 4255a483 | View on GitHub
Updates API and pulp-admin to accept relative url configuration for ISO content
ISO distributor continues to use the repository id as the default relative URL for the repository. It is now possible to specify the relative url for the ISO distributor using the API and pulp-admin iso repo create/update commands. When then ISO distributor is used as predistributor, the ISO rsync distributor uses the relative url of the predistributor when publishing.
Updated by dkliban@redhat.com about 8 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 4255a483a334815e0f969d27c55cedcc5dfbd753.
Updated by pthomas@redhat.com almost 8 years ago
Updated by pcreech almost 8 years ago
- Status changed from 5 to CLOSED - CURRENTRELEASE
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