Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1934258

Summary: pulp3: migration: Attempting to sync a migrated repo which has URL with no trailing slash fails
Product: Red Hat Satellite Reporter: Stephen Wadeley <swadeley>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: bmbouter, ggainey, ipanova, jsherril, pcreech, rchan, smallamp, ttereshc
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pulp_2to3_migration-0.9.0-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-21 13:26:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stephen Wadeley 2021-03-02 19:03:12 UTC
Description of problem:

On a system migrated to Pulp3:
Attempting to sync a migrated repo which has URL with no trailing slash fails

Version-Release number of selected component (if applicable):

Sat6.9 snap 15


How reproducible:
unsure


Steps to Reproduce:
1. Create and sync a repo which has URL with no trailing slash (e.g.: redhat.com/pub/file-type_repo)
2. Migrate to pulp3
3. Attempt to resync

Actual results:
404, message='Not Found', url=URL('http://xxx.yyy.zzz.redhat.com/pub/PULP_MANIFEST')

Expected results:
URL should be handled correctly during pulp3 migration and sync should succeed post migration

Comment 1 Justin Sherrill 2021-03-02 19:55:41 UTC
Steps to reproduce in pulp2:

1.  create a file (iso) repo in pulp2, with an importer pointing to  https://fixtures.pulpproject.org/file   (NOTE the lack of trailing space)
2.  Sync the repository
3.  Migrate the repository to pulp3
3.  Check the created remote, you would expect:
https://fixtures.pulpproject.org/file/PULP_MANIFEST, but in reality it will be 
https://fixtures.pulpproject.org/PULP_MANIFEST

Comment 2 Justin Sherrill 2021-03-02 19:56:35 UTC
Note: there's a typo:  

(NOTE the lack of trailing space)
should be

(NOTE the lack of trailing slash)

Comment 3 pulp-infra@redhat.com 2021-03-02 21:05:54 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2021-03-02 21:05:56 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2021-03-04 12:08:18 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 8 pulp-infra@redhat.com 2021-03-04 18:06:38 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2021-03-04 19:05:08 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 10 pulp-infra@redhat.com 2021-03-09 23:06:47 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 14 Tanya Tereshchenko 2021-03-16 17:52:10 UTC
Correction to the comment#12:

Grant Gainey says:
python-pulp-rpm relates to:

pulp-rpm-plugins and python-pulp-rpm-common

Comment 18 errata-xmlrpc 2021-04-21 13:26:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313