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

oc-mirror can't mirror IBM operator catalog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.18
    • oc-mirror
    • Moderate
    • Yes
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      *Cause*: What actions or circumstances cause this bug to present.
      *Consequence*: What happens when the bug presents.
      *Fix*: What was done to fix the bug.
      *Result*: Bug doesn’t present anymore.
      Show
      *Cause*: What actions or circumstances cause this bug to present. *Consequence*: What happens when the bug presents. *Fix*: What was done to fix the bug. *Result*: Bug doesn’t present anymore.
    • Bug Fix
    • In Progress

      Description of problem:

      when mirror IBM operator catalogs, oc-mirror failed with error: invalid package name "ibm-clickhouse-operator.v0.1.0": [must not contain dots]   

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

      ./oc-mirror.rhel8 version 
      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-202411090338.p0.g0a7dbc9.assembly.stream.el9-0a7dbc9", GitCommit:"0a7dbc90746a26ddff3bd438c7db16214dcda1c3", GitTreeState:"clean", BuildDate:"2024-11-09T08:33:46Z", GoVersion:"go1.22.7 (Red Hat 1.22.7-1.module+el8.10.0+22325+dc584f75) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

           Always
          

      Steps to Reproduce:

      1. imagesetconfig as follow :  
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      archiveSize: 4
      mirror:
        operators:
        - catalog: icr.io/cpopen/ibm-operator-catalog:v1.22
          packages:
          - name: ibm-ftm-operator
            channels:
            - name: v4.4
      
      2. run the mirror2mirror command : 
      ./oc-mirror.rhel8 -c /tmp/fixture-testdata-dir32961007/test/extended/testdata/workloads/config-75502.yaml  docker://localhost:5000 --dest-skip-tls --dest-use-http

       

      Actual results:

      2. hit error :  
      
      ./oc-mirror.rhel8 -c /tmp/fixture-testdata-dir32961007/test/extended/testdata/workloads/config-75502.yaml  docker://localhost:5000 --dest-skip-tls --dest-use-http
      Checking push permissions for localhost:5000
      Creating directory: oc-mirror-workspace/src/publish
      Creating directory: oc-mirror-workspace/src/v2
      Creating directory: oc-mirror-workspace/src/charts
      Creating directory: oc-mirror-workspace/src/release-signatures
      backend is not configured in /tmp/fixture-testdata-dir32961007/test/extended/testdata/workloads/config-75502.yaml, using stateless mode
      backend is not configured in /tmp/fixture-testdata-dir32961007/test/extended/testdata/workloads/config-75502.yaml, using stateless mode
      No metadata detected, creating new workspaceThe rendered catalog is invalid.Run "oc-mirror list operators --catalog CATALOG-NAME --package PACKAGE-NAME" for more information.error: error converting new declarative config to model: invalid package name "ibm-clickhouse-operator.v0.1.0": [must not contain dots]

      Expected results:

      2. no error

      Additional info:

      compared with 4.17 oc-mirror, no such issue 

       

              luzuccar@redhat.com Luigi Mario Zuccarelli
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: