Bug #25972
closedCan't sync discovered containers without slash in name from Docker.io registry
Description
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.
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.
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7957 added
Updated by Anonymous almost 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|c490d55ed1012aac08e10dacc4e581d19125fbea.
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/Katello/katello/pull/7966 added
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/Katello/katello/pull/7967 added
Updated by Justin Sherrill almost 6 years ago
- Target version set to Katello 3.12.0
- Triaged changed from No to Yes