Bug 2193053

Summary: Incorrect name in stage registry for 'hostpath-provisioner-operator-rhel9' image as 'hostpath-provisioner-rhel9-operator'
Product: Container Native Virtualization (CNV) Reporter: SATHEESARAN <sasundar>
Component: ReleaseAssignee: Derek <dcadzow>
Status: CLOSED MIGRATED QA Contact: Oded Ramraz <oramraz>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.13.0   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-04 14:19: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 SATHEESARAN 2023-05-04 06:51:41 UTC
Description of problem:
-----------------------
While inspecting the list of images under csv.spec.relatedImages in stage registry, one failure was seen with the container image 'hostpath-provisioner-operator-rhel9' and later found that this image was incorrectly named as 'hostpath-provisioner-rhel9-operator'


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
CNV v4.13.0

How reproducible:
-----------------
Always

Steps to Reproduce:
-------------------
1. Try inspecting the container image 'hostpath-provisioner-operator-rhel9' in stage
# skopeo inspect docker://registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-operator-rhel9@sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e

Actual results:
---------------
*skopeo inspect* failed, as the image doesn't exists.
This image is renamed as 'hostpath-provisioner-rhel9-operator'

<snip>
# skopeo inspect docker://registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-rhel9-operator@sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e
{
    "Name": "registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-rhel9-operator",
    "Digest": "sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e",
    "RepoTags": [
        "v4.13",
        "v4.13.0--2022-101182",
        "v4.13.0",
        "v4.13.0-37"
    ],
...
</snip>

Expected results:
-----------------
The container image with the name 'hostpath-provisioner-operator-rhel9' should be available with the correct naming convention

Additional info:
----------------
When querying the image in stage:

<snip>
[sas@fedora ~]$ skopeo inspect docker://registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-operator-rhel9@sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e
FATA[0002] Error parsing image name "docker://registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-operator-rhel9@sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e": reading manifest sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e in registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-operator-rhel9: unknown: Not Found 

[sas@fedora ~]$ skopeo inspect docker://registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-rhel9-operator@sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e
{
    "Name": "registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-rhel9-operator",
    "Digest": "sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e",
    "RepoTags": [
        "v4.13",
        "v4.13.0--2022-101182",
        "v4.13.0",
        "v4.13.0-37"
    ],
.
.
.
</snip>

Comment 2 SATHEESARAN 2023-05-04 14:19:15 UTC
The issue is fixed now.

<snip>
[ ~]$ skopeo inspect docker://registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-operator-rhel9@sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e
{
    "Name": "registry.stage.redhat.io/container-native-virtualization/hostpath-provisioner-operator-rhel9",
    "Digest": "sha256:045ad111f8d3fe28b8cf77df49a264922c9fa4cc46759ed98ef044077225a23e",
    "RepoTags": [
        "v4.13",
        "v4.13.0-37",
        "v4.13.0"
    ],
.
.
.
</snip>