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

oc-mirror cannot sync operator image to local registry

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 4.16
    • oc-mirror
    • No
    • CLID Sprint 253
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          When I use `oc-mirror` to sync operator image to local registry, it fails 

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

          4.16

      How reproducible:

          CMD:/opt/dci-quay/artifacts/ocp-stable/oc-mirror --config=/opt/dci-quay/artifacts/files/imageset-config-OCP-4.16.yml docker://dci-mirror-registry.rackg06.local/raven-operators --skip-cleanup --skip-pruning
      
      
      
      
      

      Steps to Reproduce:

      1. prepare registry and oc-mirror fist    
      2. create yaml file imageset-config-OCP-4.16.yml
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      storageConfig:
        registry:
          imageURL: dci-mirror-registry.rackg06.local/raven-operators/oc-mirror-metadata
          skipTLS: true
      mirror:
        operators:
        - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15
          packages:
          - name: cincinnati-operator
            channels:
            - name: v1
          - name: servicemeshoperator
            channels:
            - name: stable
          - name: openshift-secondary-scheduler-operator
            channels:
            - name: stable
          - name: metallb-operator
            channels:
            - name: stable
      2.oc-mirror --config=/opt/dci-quay/artifacts/files/imageset-config-OCP-4.16.yml docker://dci-mirror-registry.rackg06.local/raven-operators --skip-cleanup --skip-pruning      
      
      

      Actual results:

      skipped pruning
      Rendering catalog image "dci-mirror-registry.rackg06.local/raven-operators/redhat/redhat-operator-index:v4.15" with file-based catalog
      error: error rebuilding catalog images from file-based catalogs: error regenerating the cache for dci-mirror-registry.rackg06.local/raven-operators/redhat/redhat-operator-index:v4.15: exit status 1   

      Expected results:

          successfully exit

      Additional info:

          We are leveraging this in DCI pipeline. The step to reproduce is automatically driven by DCI.

              luzuccar@redhat.com Luigi Mario Zuccarelli
              woyeah5 Chengjie Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: