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 1947628 - [BUG] The --docker-tags-whitelist option is not allowing the syncing of whitelisted tags for a docker type repo in Satellite 6
Summary: [BUG] The --docker-tags-whitelist option is not allowing the syncing of white...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.8.0
Hardware: All
OS: All
medium
medium
Target Milestone: 6.10.0
Assignee: Justin Sherrill
QA Contact: sganar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-08 18:39 UTC by Sayan Das
Modified: 2024-06-14 01:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:10:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33039 0 Normal New [BUG] The --docker-tags-whitelist option is not allowing the syncing of whitelisted tags for a docker type repo in Satel... 2021-07-15 18:43:52 UTC
Red Hat Knowledge Base (Solution) 4961101 0 None None None 2021-04-08 18:39:35 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:10:52 UTC

Description Sayan Das 2021-04-08 18:39:07 UTC
Description of problem:

hammer is not handing the "." in repository tags properly when using --docker-tags-whitelist option. I could reproduce this issue with any repos from rhosp-rhel8/* .


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

How reproducible:
Always

Steps to Reproduce:

1. hammer product create --name container --organization RedHat

2. hammer repository create --name "rhosp-rhel8/openstack-aodh-base" --upstream-username USER --upstream-password "PASSWORD" --docker-upstream-name "rhosp-rhel8/openstack-aodh-base" --product container --url "https://registry.redhat.io" --publish-via-http yes --content-type docker --organization RedHat

3. hammer repository update --name "rhosp-rhel8/openstack-aodh-base" --product container --docker-tags-whitelist "16.1" --organization RedHat

4. hammer repository synchronize --name "rhosp-rhel8/openstack-aodh-base" --product "container" --organization RedHat

5. hammer repository update --name "rhosp-rhel8/openstack-aodh-base" --product container --docker-tags-whitelist "16\.1" --organization RedHat

6. hammer repository synchronize --name "rhosp-rhel8/openstack-aodh-base" --product "container" --organization RedHat

Actual results:

At step 3, the tag will be correctly set to 16.1 but at step 4 , repo sync will not download any data.
~~
# hammer repository synchronize --name "rhosp-rhel8/openstack-aodh-base" --product "container" --organization RedHat
[...............................................................................................................................................................................] [100%]
~~

At step 5, when I escape the "." with "\." and update the tag as "16\.1" , it will set the tag as 16.1 only and at step 6, it will download the blobs.
~~
# hammer repository synchronize --name "rhosp-rhel8/openstack-aodh-base" --product "container" --organization RedHat
[...............................................................................................................................................................................] [100%]
New blobs: 12.
~~


Expected results:

--docker-tags-whitelist "16.1" should work and sync after that should allow downloading the data as well for that tag.


Additional info:

* This issue cannot be reproduced if we set the "Limit Sync Tags" from Satellite UI as 16.1. So from UI it works just fine.

Comment 2 Mike McCune 2021-05-13 15:07:46 UTC
Re-evaluate in 6.10 with Pulp 3, see if this is working or not

Comment 4 Justin Sherrill 2021-07-15 18:43:52 UTC
Created redmine issue https://projects.theforeman.org/issues/33039 from this bug

Comment 5 Bryan Kearney 2021-07-15 20:05:59 UTC
Upstream bug assigned to jsherril

Comment 6 Bryan Kearney 2021-07-15 20:06:01 UTC
Upstream bug assigned to jsherril

Comment 7 Justin Sherrill 2021-07-27 20:20:45 UTC
moving to modified as this is fixed already in 6.10

Comment 8 sganar 2021-09-09 10:25:14 UTC
Verified.

Tested on Satellite 6.10.0 Snap 17.0

Steps followed: 
1. hammer product create --name container --organization RedHat

2. hammer repository create --name "rhosp-rhel8/openstack-aodh-base" --upstream-username USER --upstream-password "PASSWORD" --docker-upstream-name "rhosp-rhel8/openstack-aodh-base" --product container --url "https://registry.redhat.io" --publish-via-http yes --content-type docker --organization RedHat

3. hammer repository update --name "rhosp-rhel8/openstack-aodh-base" --product container --docker-tags-whitelist "16.1" --organization RedHat

4. hammer repository synchronize --name "rhosp-rhel8/openstack-aodh-base" --product "container" --organization RedHat

5. hammer repository update --name "rhosp-rhel8/openstack-aodh-base" --product container --docker-tags-whitelist "16\.1" --organization RedHat

6. hammer repository synchronize --name "rhosp-rhel8/openstack-aodh-base" --product "container" --organization RedHat

Observation: 

Repository sync is successful with the given --docker-tags-whitelist "16.1"
Also after sync downloading the data for that tag is successful as expected.

Comment 11 errata-xmlrpc 2021-11-16 14:10:33 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.10 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:4702


Note You need to log in before you can comment on or make changes to this bug.