Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-50853

oc-mirror fails with error `unknown image: reference name is empty` when mirroring release payloads with digest and graph=true

    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • Done

      This is a clone of issue OCPBUGS-50503. The following is the description of the original issue:
      โ€”
      Description of problem:

      oc-mirror throws error when trying to mirror release payloads using digest with graph=true for nightly, rc and ec builds and does not generate signatures for ec and rc builds.
          

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

          [fedora@knarra-fedora knarra]$ ./oc-mirror version
      W0210 13:19:40.701416  143622 mirror.go:102] 
      
      โš ๏ธ  oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2
      
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.18.0-202502041931.p0.gc7144d5.assembly.stream.el9-c7144d5", GitCommit:"c7144d5d2c2b0345f163299ed04a400f2f93d340", GitTreeState:"clean", BuildDate:"2025-02-04T20:04:49Z", GoVersion:"go1.22.9 (Red Hat 1.22.9-1.module+el8.10.0+22500+aee717ef) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}
      
          

      How reproducible:

          Always
          

      Steps to Reproduce:

          1. use the nightly image set config as shown below and see that it throws an error
          2. use the rc candidate as shown below and see that it throws an error and does not generate signature relatted files
          3. use the ec candidate as shown below and see that it throws an error and does not generate signature related files.
          

      Actual results:

          2025/02/10 12:15:49  [INFO]   : === Results ===
      2025/02/10 12:15:49  [INFO]   :  โœ“  191 / 191 release images mirrored successfully
      2025/02/10 12:15:49  [INFO]   : ๐Ÿ“„ Generating IDMS file...
      2025/02/10 12:15:49  [INFO]   : internlrelease/working-dir/cluster-resources/idms-oc-mirror.yaml file created
      2025/02/10 12:15:49  [INFO]   : ๐Ÿ“„ No images by tag were mirrored. Skipping ITMS generation.
      2025/02/10 12:15:49  [INFO]   : ๐Ÿ“„ No catalogs mirrored. Skipping CatalogSource file generation.
      2025/02/10 12:15:49  [INFO]   : ๐Ÿ“„ No catalogs mirrored. Skipping ClusterCatalog file generation.
      2025/02/10 12:15:49  [INFO]   : ๐Ÿ“„ Generating UpdateService file...
      2025/02/10 12:15:49  [INFO]   : ๐Ÿ‘‹ Goodbye, thank you for using oc-mirror
      2025/02/10 12:15:49  [ERROR]  : unknown image : reference name is empty 
      
          

      Expected results:

           No errors should be seen and for ec and rc candidate signature should be generated as well.
          

      Additional info:

      with nightly payload and graph==true:
      ===============================
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        platform:
          graph: true
          release: quay.io/openshift-release-dev/ocp-release@sha256:e0907823bc8989b02bb1bd55d5f08262dd0e4846173e792c14e7684fbd476c0d
      
      with rc payload and graph==true:
      ===========================
      [fedora@knarra-fedora knarra]$ cat /tmp/internal.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        platform:
          release: quay.io/openshift-release-dev/ocp-release@sha256:f0de3be10be2f5fc1a5b1c208bcfe5d3a71a70989cacbca57ebf7c5fe6e14b09
          graph: true
      
      with ec payload and graph==true:
      ============================
      [fedora@knarra-fedora knarra]$ cat /tmp/internal.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v2alpha1
      mirror:
        platform:
          release: quay.io/openshift-release-dev/ocp-release@sha256:aa3e0a3a94babd90535f8298ab274b51a9bce6045dda8c3c8cd742bc59f0e2d9
          graph: true
      
          

            [OCPBUGS-50853] oc-mirror fails with error `unknown image: reference name is empty` when mirroring release payloads with digest and graph=true

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (OpenShift Container Platform 4.18.2 bug fix 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/RHBA-2025:1904

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (OpenShift Container Platform 4.18.2 bug fix 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/RHBA-2025:1904

            Ying Zhou added a comment -

            checked with the latest accepted payload, the fixed pr landed in :

            oc adm release info --commits registry.ci.openshift.org/ocp/release:4.18.0-0.nightly-2025-02-26-103013 |grep oc-m
              oc-mirror                                      https://github.com/openshift/oc-mirror                                      fcb9fbb2878a502d51a290fe4c9275850d02a888
            
            git log fcb9fbb2878a502d51a290fe4c9275850d02a888 |grep "#1075"
                OCPBUGS-50503: oc-mirror fails with error `unknown image: reference name is empty` (#1075) 

            Ying Zhou added a comment - checked with the latest accepted payload, the fixed pr landed in : oc adm release info --commits registry.ci.openshift.org/ocp/release:4.18.0-0.nightly-2025-02-26-103013 |grep oc-m   oc-mirror                                      https: //github.com/openshift/oc-mirror                                      fcb9fbb2878a502d51a290fe4c9275850d02a888 git log fcb9fbb2878a502d51a290fe4c9275850d02a888 |grep "#1075"     OCPBUGS-50503: oc-mirror fails with error `unknown image: reference name is empty` (#1075)

            Ying Zhou added a comment -

            Done pre-merge test with the fixed pr, can't reproduce the issue now:

             ./oc-mirror version
            W0217 03:58:45.014510  183451 mirror.go:102] โš ๏ธ  oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
            Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.1.1-alpha.3-510-gdbae38c", GitCommit:"dbae38cb", GitTreeState:"clean", BuildDate:"2025-02-17T03:34:23Z", GoVersion:"go1.23.4", Compiler:"gc", Platform:"linux/amd64"}
            
            
            kind: ImageSetConfiguration
            apiVersion: mirror.openshift.io/v2alpha1
            mirror:
              platform:
                release: registry.ci.openshift.org/ocp/release@sha256:c56912d4f5b93c47613be8e5a3bf3c7590475952d994f815f0caedefdd765671
                graph: true
            
            2025/02/17 03:56:16  [INFO]   : === Results ===
            2025/02/17 03:56:16  [INFO]   :  โœ“  192 / 192 release images mirrored successfully
            2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ Generating IDMS file...
            2025/02/17 03:56:16  [INFO]   : out50503/working-dir/cluster-resources/idms-oc-mirror.yaml file created
            2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ No images by tag were mirrored. Skipping ITMS generation.
            2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ No catalogs mirrored. Skipping CatalogSource file generation.
            2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ No catalogs mirrored. Skipping ClusterCatalog file generation.
            2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ Generating UpdateService file...
            2025/02/17 03:56:16  [INFO]   : out50503/working-dir/cluster-resources/updateService.yaml file created
            2025/02/17 03:56:16  [INFO]   : mirror time     : 2m16.465777512s
            2025/02/17 03:56:16  [INFO]   : ๐Ÿ‘‹ Goodbye, thank you for using oc-mirror 

            Ying Zhou added a comment - Done pre-merge test with the fixed pr, can't reproduce the issue now:  ./oc-mirror version W0217 03:58:45.014510  183451 mirror.go:102] โš ๏ธ  oc-mirror v1 is deprecated (starting in 4.18 release) and will be removed in a future release - please migrate to oc-mirror --v2WARNING: This version information is deprecated and will be replaced with the output from -- short . Use --output=yaml|json to get the full version. Client Version: version.Info{Major: "", Minor:" ", GitVersion:" v0.1.1-alpha.3-510-gdbae38c ", GitCommit:" dbae38cb ", GitTreeState:" clean ", BuildDate:" 2025-02-17T03:34:23Z ", GoVersion:" go1.23.4 ", Compiler :" gc ", Platform:" linux/amd64"} kind: ImageSetConfiguration apiVersion: mirror.openshift.io/v2alpha1 mirror:   platform:     release: registry.ci.openshift.org/ocp/release@sha256:c56912d4f5b93c47613be8e5a3bf3c7590475952d994f815f0caedefdd765671     graph: true 2025/02/17 03:56:16  [INFO]   : === Results === 2025/02/17 03:56:16  [INFO]   :  โœ“  192 / 192 release images mirrored successfully 2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ Generating IDMS file... 2025/02/17 03:56:16  [INFO]   : out50503/working-dir/cluster-resources/idms-oc-mirror.yaml file created 2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ No images by tag were mirrored. Skipping ITMS generation. 2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ No catalogs mirrored. Skipping CatalogSource file generation. 2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ No catalogs mirrored. Skipping ClusterCatalog file generation. 2025/02/17 03:56:16  [INFO]   : ๐Ÿ“„ Generating UpdateService file... 2025/02/17 03:56:16  [INFO]   : out50503/working-dir/cluster-resources/updateService.yaml file created 2025/02/17 03:56:16  [INFO]   : mirror time     : 2m16.465777512s 2025/02/17 03:56:16  [INFO]   : ๐Ÿ‘‹ Goodbye, thank you for using oc-mirror

              luzuccar@redhat.com Luigi Mario Zuccarelli
              openshift-crt-jira-prow OpenShift Prow Bot
              Ying Zhou Ying Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: