RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1931785 - shortname for ubi8-minimal leads to "Repo not found" error
Summary: shortname for ubi8-minimal leads to "Repo not found" error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: skopeo
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Jindrich Novy
QA Contact: Yuhui Jiang
URL:
Whiteboard:
: 1935570 (view as bug list)
Depends On:
Blocks: 1817517 1933775
TreeView+ depends on / blocked
 
Reported: 2021-02-23 08:29 UTC by Ondřej Budai
Modified: 2021-05-18 15:35 UTC (History)
12 users (show)

Fixed In Version: skopeo-1.2.2-2.el8 or newer
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1933775 (view as bug list)
Environment:
Last Closed: 2021-05-18 15:34:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Updated rhel-shortnames.conf for review. (257.38 KB, text/plain)
2021-02-25 08:56 UTC, Jindrich Novy
no flags Details

Description Ondřej Budai 2021-02-23 08:29:06 UTC
/etc/containers/registries.conf.d/rhel-shortnames.conf shipped in containers-common-1:1.2.2-1.module+el8.4.0+10073+30e5ea69 (subpackage of skopeo) has a wrong shortname for ubi8-minimal:

"ubi8-minimal" = "registry.access.redhat.com/repository/ubi8-minimal"


When I try to pull the image using the short name, it fails:

$ podman pull ubi8-minimal
Resolved "ubi8-minimal" as an alias (/etc/containers/registries.conf.d/rhel-shortnames.conf)
Trying to pull registry.access.redhat.com/repository/ubi8-minimal:latest...
  name unknown: Repo not found
Error: Error initializing source docker://registry.access.redhat.com/repository/ubi8-minimal:latest: Error reading manifest latest in registry.access.redhat.com/repository/ubi8-minimal: name unknown: Repo not found


When I try to pull the image using the full name, it also fails:

$ podman pull registry.access.redhat.com/repository/ubi8-minimal
Trying to pull registry.access.redhat.com/repository/ubi8-minimal:latest...
  name unknown: Repo not found
Error: Error initializing source docker://registry.access.redhat.com/repository/ubi8-minimal:latest: Error reading manifest latest in registry.access.redhat.com/repository/ubi8-minimal: name unknown: Repo not found


The official docs (https://catalog.redhat.com/software/containers/ubi8/ubi-minimal/5c359a62bed8bd75a2c3fba8?gti-tabs=unauthenticated&container-tabs=gti) says that ubi8-minimal is available at the following address:

registry.access.redhat.com/ubi8/ubi-minimal

I tried `podman pull registry.access.redhat.com/ubi8/ubi-minimal` and it indeed worked.

Interestingly, Fedora uses `registry.access.redhat.com/ubi8-minimal` as a shortname and it also works.

Comment 4 Tom Sweeney 2021-02-23 20:03:18 UTC
Ondřej,

You should not need to do this, but as a test, can you change the entry in /etc/containers/registries.conf.d/rhel-shortnames.conf of:

"ubi8-minimal" = "registry.access.redhat.com/repository/ubi8-minimal"

to

"ubi8-minimal" = "registry.access.redhat.com/ubi8/ubi-minimal"

and see if you can pull with the short name?

Scott McCarty, can you please confirm that the "registry.access.redhat.com/ubi8/ubi-minimal" is the correct location we should have in the conf file for RHEL 8.4?

Assigning to Valentin for the moment, but this may be heading to Jindrich quickly.

Comment 5 Ondřej Budai 2021-02-23 20:10:14 UTC
Yes, this fix works.

Comment 6 Valentin Rothberg 2021-02-24 10:39:27 UTC
Looking at https://github.com/containers/shortnames/blob/main/shortnames.conf, we have:

  "ubi8-minimal" = "registry.access.redhat.com/ubi8-minimal"
  "ubi8/ubi-minimal" = "registry.access.redhat.com/ubi8-minimal"

This must be resolved on the packaging side, so I am assigning it to Jindrich.

Comment 7 Jindrich Novy 2021-02-24 11:04:39 UTC
The script using Pyxis API to generate rhel-shornames.conf needs to be changed to get this one fixed. Work is in progress.

Comment 8 Jindrich Novy 2021-02-24 14:10:58 UTC
Can you please re-test with the floowing scratch build?

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=35137006

Comment 14 Ondřej Budai 2021-02-25 07:55:32 UTC
The scratch build fixed the issue.

$ podman pull ubi8-minimal
Resolved "ubi8-minimal" as an alias (/etc/containers/registries.conf.d/rhel-shortnames.conf)
Trying to pull registry.access.redhat.com/ubi8-minimal:latest...
Getting image source signatures
Checking if image destination supports signatures
Copying blob 76b9354adec6 done  
Copying blob a591faa84ab0 done  
Copying config dc080723f5 done  
Writing manifest to image destination
Storing signatures
dc080723f596f2407300cca2c19a17accad89edcf39f7b8b33e6472dd41e30f1

Comment 15 Jindrich Novy 2021-02-25 08:56:40 UTC
Created attachment 1759215 [details]
Updated rhel-shortnames.conf for review.

Comment 17 Jindrich Novy 2021-02-25 09:13:10 UTC
(In reply to Ondřej Budai from comment #14)
> The scratch build fixed the issue.
> 
> $ podman pull ubi8-minimal
> Resolved "ubi8-minimal" as an alias
> (/etc/containers/registries.conf.d/rhel-shortnames.conf)
> Trying to pull registry.access.redhat.com/ubi8-minimal:latest...
> Getting image source signatures
> Checking if image destination supports signatures
> Copying blob 76b9354adec6 done  
> Copying blob a591faa84ab0 done  
> Copying config dc080723f5 done  
> Writing manifest to image destination
> Storing signatures
> dc080723f596f2407300cca2c19a17accad89edcf39f7b8b33e6472dd41e30f1

Thanks Ondřej. Now I will allow PM to review rhel-shortnames.conf which is attached to this bug. Once confirmed I will commit and build.

Laurie, can you please confirm the attached rhel-shortnames.conf looks good?

Comment 18 Tom Sweeney 2021-02-26 00:47:12 UTC
I'm not Laurie, but I've perused through the rhel-shortnames.conf and tried pulling each of the ubi-minimal images and they all LGTM.  Jindrich, do you by chance have a change log/diff between this file that you've attached and the one that you started with?  Just to quadruple check.

Comment 26 Jindrich Novy 2021-03-05 08:21:55 UTC
*** Bug 1935570 has been marked as a duplicate of this bug. ***

Comment 29 errata-xmlrpc 2021-05-18 15:34:31 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: container-tools:rhel8 security, bug fix, and enhancement update), 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:1796


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