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

oc-mirror print log: unable to parse reference oci://mno/redhat-operator-index:v4.12

    XMLWordPrintable

Details

    • Important
    • CFE Sprint 233
    • 1
    • Proposed
    • False
    • Hide

      None

      Show
      None
    • NA
    • Release Note Not Required
    • Done

    Description

      Description of problem:

      When use the command `oc-mirror --config config-oci-target.yaml  docker://localhost:5000  --use-oci-feature  --dest-use-http  --dest-skip-tls` , the command exit with code 0, but print log like : unable to parse reference oci://mno/redhat-operator-index:v4.12: lstat /mno: no such file or directory.

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

      oc-mirror version 
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"4.13.0-202303011628.p0.g2e3885b.assembly.stream-2e3885b", GitCommit:"2e3885b469ee7d895f25833b04fd609955a2a9f6", GitTreeState:"clean", BuildDate:"2023-03-01T16:49:12Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
      

      How reproducible:

      always

      Steps to Reproduce:

      1. with imagesetconfig like : 
      cat config-oci-target.yaml 
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        local:
          path: /home/ocmirrortest/0302/60597
      mirror:
        operators:
        - catalog: oci:///home/ocmirrortest/noo/redhat-operator-index
          targetCatalog: mno/redhat-operator-index
          targetTag: v4.12
          packages:
          - name: aws-load-balancer-operator
      `oc-mirror --config config-oci-target.yaml  docker://localhost:5000  --use-oci-feature  --dest-use-http  --dest-skip-tls`
      
      
      

      Actual results:

      1. the command exit with code 0, but print strange logs like:
      sha256:95c45fae0ca9e9bee0fa2c13652634e726d8133e4e3009b363fcae6814b3461d localhost:5000/albo/aws-load-balancer-rhel8-operator:95c45f
      sha256:ab38b37c14f7f0897e09a18eca4a232a6c102b76e9283e401baed832852290b5 localhost:5000/albo/aws-load-balancer-rhel8-operator:ab38b3
      info: Mirroring completed in 43.87s (28.5MB/s)
      Rendering catalog image "localhost:5000/mno/redhat-operator-index:v4.12" with file-based catalog 
      Writing image mapping to oc-mirror-workspace/results-1677743154/mapping.txt
      Writing CatalogSource manifests to oc-mirror-workspace/results-1677743154
      Writing ICSP manifests to oc-mirror-workspace/results-1677743154
      unable to parse reference oci://mno/redhat-operator-index:v4.12: lstat /mno: no such file or directory
      

      Expected results:

      no such log  .

       

      Attachments

        Issue Links

          Activity

            People

              rh-ee-aguidi Alex Guidi
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: