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 1648344 - Can't sync discovered containers without slash in name from Docker.io registry
Summary: Can't sync discovered containers without slash in name from Docker.io registry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.5.0
Assignee: Partha Aji
QA Contact: jcallaha
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-09 13:24 UTC by Mirek Długosz
Modified: 2021-04-06 17:47 UTC (History)
10 users (show)

Fixed In Version: tfm-rubygem-katello-3.10.0.24-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-14 12:38:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 25972 0 Normal Closed Can't sync discovered containers without slash in name from Docker.io registry 2020-01-27 18:59:07 UTC
Pulp Redmine 4374 0 Normal CLOSED - NOTABUG Unable to sync docker hub images from index.docker.io 2019-02-06 18:32:22 UTC
Red Hat Product Errata RHSA-2019:1222 0 None None None 2019-05-14 12:38:50 UTC

Description Mirek Długosz 2018-11-09 13:24:50 UTC
When using repo discovery to pull containers from Docker.io registry, containers from main namespace (without slash in name) will fail to sync afterwards.

The problem is that while repo discovery works against `index.docker.io`, containers must be properly namespaced to be pulled from it. So instead of `alpine`, `library/alpine` must be pulled.

It seems that `library` is implicit when pulling images from `registry-1.docker.io`, so just `alpine` will work; but repo discovery doesn't work against that host, which means manual creation of repositories.

While this might be problem on Docker.io side, they are the biggest provider of images out there, so we might want to adjust to them nevertheless.


Version-Release number of selected component (if applicable):
Sat 6.5 snap 2
katello-3.9.0-0.11.rc2.el7sat.noarch
satellite-6.5.0-3.beta.el7sat.noarch
foreman-1.20.0-0.17.RC2.el7sat.noarch


Steps to Reproduce:
1. Content -> Products -> Repo discovery -> Type: Container images
2. Registry: index.docker.io -> Registry Search Parameter: alpine
3. Select `alpine` and `alpine/git` -> Create Selected -> Run repository creation
4. Navigate to product page, sync both repositories

Actual results:
Syncing `alpine` repository fails; syncing `alpine/git` succeeds.
To make alpine sync, go to details page and do either of following:
- change Registry URL to `https://registry-1.docker.io/`
- change Upstream Repository Name to `library/alpine`


Expected results:
Syncing both succeeds.

Comment 3 Partha Aji 2019-01-31 21:33:02 UTC
Moving this to the pulp team. Being tracked in https://pulp.plan.io/issues/4374 .

Basically pulp needs to handle the docker logic as per the upstream bug.

Comment 4 Partha Aji 2019-01-31 21:43:23 UTC
https://github.com/pulp/pulp_docker/pull/304  should fix it.

Comment 5 pulp-infra@redhat.com 2019-02-01 12:02:20 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2019-02-01 12:02:21 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 7 Ina Panova 2019-02-01 12:50:24 UTC
@Miroslaw afaik official docker v2 registry is located at registry-1.docker.io
only v1 clients should hit the index.docker.io, for v2 workflows registry-1.docker.io should be used.
https://pulp.plan.io/issues/4374#note-3

Comment 8 Partha Aji 2019-02-02 20:49:43 UTC
Connecting redmine issue https://projects.theforeman.org/issues/25972 from this bug

Comment 9 Bryan Kearney 2019-02-06 03:05:33 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25972 has been resolved.

Comment 10 pulp-infra@redhat.com 2019-02-06 14:01:43 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 11 pulp-infra@redhat.com 2019-02-06 18:32:23 UTC
The Pulp upstream bug status is at CLOSED - NOTABUG. Updating the external tracker on this bug.

Comment 13 jcallaha 2019-03-04 15:43:46 UTC
Verified in Satellite 6.5.0 Snap 18

Followed the steps in the initial report, and both images sync'd correctly.

See attached video for verification.

Comment 17 errata-xmlrpc 2019-05-14 12:38:41 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, 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-2019:1222

Comment 18 Bruno Rocha 2020-01-28 16:09:56 UTC
What I've found during verification is that when using 

https://registry-1.docker.io -  it WORKS

However when using

https://index.docker.io - it FAILS


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