Project

Profile

Help

Story #2132

closed

As a consumer of Pulp content I want ISO & ISO_rsync distributor to support relative_url for consistency with yum

Added by rmcgover over 8 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Sprint/Milestone:
-
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 #2

Updated by dkliban@redhat.com over 8 years ago

  • Sprint Candidate changed from No to Yes
Actions #3

Updated by dkliban@redhat.com over 8 years ago

  • Groomed changed from No to Yes
Actions #4

Updated by mhrivnak over 8 years ago

  • Sprint/Milestone set to 25
Actions #5

Updated by dkliban@redhat.com over 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to dkliban@redhat.com
Actions #6

Updated by bmbouter over 8 years ago

  • Tags 2.11 added
Actions #7

Updated by mhrivnak about 8 years ago

  • Sprint/Milestone changed from 25 to 26

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.

re: #2132 https://pulp.plan.io/issues/2132

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.

re: #2132 https://pulp.plan.io/issues/2132

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.

fixes #2132 https://pulp.plan.io/issues/2132

Actions #10

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #11

Updated by semyers about 8 years ago

  • Platform Release set to 2.11.0
Actions #12

Updated by semyers about 8 years ago

  • Status changed from MODIFIED to 5
Actions #14

Updated by pcreech almost 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #15

Updated by bmbouter over 7 years ago

  • Tags deleted (2.11)
Actions #16

Updated by bmbouter over 6 years ago

  • Sprint set to Sprint 8
Actions #17

Updated by bmbouter over 6 years ago

  • Sprint/Milestone deleted (26)
Actions #18

Updated by bmbouter over 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF