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

Rebuild catalog not support for oci format catalog

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 4.18
    • oc-mirror
    • Moderate
    • None
    • Proposed
    • 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:

      Rebuild catalog failed with error when mirror the oci format catalog  : 	* [linux/s390x]: creating build container: committing the finished image: image with ID "f5ce37eb8d358b6e6e4ae6b64140c9b666d7d8975b606b2ba8f468c10aca3e3d" already exists, but uses a different top layer: that ID is already in use

      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-202410251041.p0.g95f0611.assembly.stream.el9-95f0611", GitCommit:"95f0611c1dc9584a4a9e857912b9eaa539234bbc", GitTreeState:"clean", BuildDate:"2024-10-25T11:28:19Z", 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. Using imagesetconfig with oci format:
      cat config-operator.yaml 
      apiVersion: mirror.openshift.io/v2alpha1
      kind: ImageSetConfiguration
      mirror:
        operators:
        - catalog: oci:///test/ibm-catalog
        - catalog: registry.redhat.io/redhat/community-operator-index:v4.15
          packages:
          - name: skupper-operator
          - name: reportportal-operator
        - catalog: registry.redhat.io/redhat/redhat-marketplace-index:v4.15
          packages:
          - name: dynatrace-operator-rhmp 
      
      
      2. run the oc-mirror with rebuild catalog : 
      
      ./oc-mirror.rhel8 -c config-operator.yaml  file://outss --v2 --alpha-ctlg-filter

       

      Actual results:

      2. Hit error:  
      
      ./oc-mirror.rhel8 -c config-operator.yaml  file://outss --v2 --alpha-ctlg-filter
      
      2024/11/05 02:54:25  [WARN]   : ⚠️  --v2 flag identified, flow redirected to the oc-mirror v2 version. This is Tech Preview, it is still under development and it is not production ready.
      2024/11/05 02:54:25  [INFO]   : 👋 Hello, welcome to oc-mirror
      2024/11/05 02:54:25  [INFO]   : ⚙️  setting up the environment for you...
      2024/11/05 02:54:25  [INFO]   : 🔀 workflow mode: mirrorToDisk 
      2024/11/05 02:54:25  [INFO]   : 🕵️  going to discover the necessary images...
      2024/11/05 02:54:25  [INFO]   : 🔍 collecting release images...
      2024/11/05 02:54:25  [INFO]   : 🔍 collecting operator images...
      2024/11/05 02:55:08  [INFO]   : 🔂 rebuilding catalog (pulling catalog image) oci:///test/ibm-catalog
      2024/11/05 02:55:09  [INFO]   : 👋 Goodbye, thank you for using oc-mirror
      2024/11/05 02:55:09  [ERROR]  : 4 errors occurred:
      	* [linux/s390x]: creating build container: committing the finished image: image with ID "f5ce37eb8d358b6e6e4ae6b64140c9b666d7d8975b606b2ba8f468c10aca3e3d" already exists, but uses a different top layer: that ID is already in use
      	* [linux/arm64]: creating build container: committing the finished image: image with ID "f5ce37eb8d358b6e6e4ae6b64140c9b666d7d8975b606b2ba8f468c10aca3e3d" already exists, but uses a different top layer: that ID is already in use
      	* [linux/ppc64le]: creating build container: committing the finished image: image with ID "f5ce37eb8d358b6e6e4ae6b64140c9b666d7d8975b606b2ba8f468c10aca3e3d" already exists, but uses a different top layer: that ID is already in use
      	* [linux/amd64]: building at STEP "RUN rm -rf /configs": while running runtime: exit status 1

       

       

      Expected results:

      2. no error.

      Additional info:

       

            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: