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

mirrorToDisk command failed when imagesetconfig include multiple catalogs (v2docker2 + oci)

XMLWordPrintable

    • Important
    • None
    • CLID Sprint 253
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress
    • Customer Facing

      Description of problem:

      mirrorToDisk command failed when imagesetconfig include multiple catalogs (v2docker2 + oci)

       

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

      oc-mirror 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.16.0-202403251146.p0.g03ce0ca.assembly.stream.el9-03ce0ca", GitCommit:"03ce0ca797e73b6762fd3e24100ce043199519e9", GitTreeState:"clean", BuildDate:"2024-03-25T16:34:33Z", GoVersion:"go1.21.7 (Red Hat 1.21.7-1.el9) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

      How reproducible:

      always

      Steps to Reproduce:

      1)  Copy   oci redhat-operator-index multi-arch with skopeo:
      `skopeo copy --all docker://registry.redhat.io/redhat/redhat-operator-index:v4.15 oci:///app1/noo/redhat-operator-index --remove-signatures`
        
      2)  Set the imagesetconfig with multiple catalogs :
      cat config-multi-cs.yaml
      kind: ImageSetConfiguration
      apiVersion: mirror.openshift.io/v1alpha2
      mirror:
        operators:
          - catalog: oci:///app1/noo/redhat-operator-index
            packages:
              - name: aws-load-balancer-operator
          - catalog: registry.redhat.io/redhat/redhat-operator-index:v4.15
            packages:
             - name: elasticsearch-operator
          - catalog: registry.redhat.io/redhat/redhat-marketplace-index:v4.15
            packages:
            - name: datadog-operator-certified-rhmp
          - catalog: registry.redhat.io/redhat/certified-operator-index:v4.15
            packages:
            - name: portworx-certified
          - catalog: registry.redhat.io/redhat/community-operator-index:v4.15
            packages:
            - name: seldon-operator
      
      3) Run the mirrorToDisk
      `oc-mirror --config config-multi-cs.yaml file://multics --v2` 

      Actual results: 

      3)  mirror command failed: 
      oc-mirror --config config-multi-cs.yaml file://multics --v2
      --v2 flag identified, flow redirected to the oc-mirror v2 version. PLEASE DO NOT USE that. V2 is still under development and it is not ready to be used. 
      2024/04/02 06:41:10  [INFO]   : mode mirrorToDisk 
      2024/04/02 06:41:10  [INFO]   : local storage registry will log to /app1/0401/multics/working-dir/logs/registry.log
      2024/04/02 06:41:10  [INFO]   : starting local storage on localhost:55000
      2024/04/02 06:41:10  [INFO]   : copying  cincinnati response to multics/working-dir/release-filters
      2024/04/02 06:41:10  [INFO]   : total release images to copy 0 
      2024/04/02 06:41:10  [INFO]   : copying operator image oci:///app1/noo/redhat-operator-index
      2024/04/02 06:41:15  [INFO]   : manifest 8bfb449c24d03d6ddbd05d3de9fe7a7dae4a2ecdb8f84487f28d24d6ca2d175c
      2024/04/02 06:41:15  [INFO]   : label /configs
      2024/04/02 06:41:29  [INFO]   : copying operator image registry.redhat.io/redhat/redhat-operator-index:v4.15
      2024/04/02 06:41:39  [INFO]   : manifest c866c3b4dac531016e4798f3232bb40e07d7dabd7d628d575de53d1821e51a50
      2024/04/02 06:41:39  [INFO]   : label /configs
      2024/04/02 06:41:53  [INFO]   : copying operator image registry.redhat.io/redhat/redhat-marketplace-index:v4.15
      2024/04/02 06:42:01  [INFO]   : manifest 895c1659c4337aaa963263f002fefa938087e40011cd2c1331ef4780d62fd1a7
      2024/04/02 06:42:01  [INFO]   : label /configs
      2024/04/02 06:42:07  [INFO]   : copying operator image registry.redhat.io/redhat/certified-operator-index:v4.15
      2024/04/02 06:42:13  [INFO]   : manifest 5c32d95f0c6d873454f2fcd6a9750dbadf638b8db8ada3d0b1c282d80b0dbcb3
      2024/04/02 06:42:13  [INFO]   : label /configs
      2024/04/02 06:42:21  [INFO]   : copying operator image registry.redhat.io/redhat/community-operator-index:v4.15
      2024/04/02 06:42:27  [INFO]   : manifest befb55a98886578684023b155c5889a845defb35d0d09c52b8738b851ee4eec2
      2024/04/02 06:42:27  [INFO]   : label /configs
      2024/04/02 06:42:36  [INFO]   : related images length 10 
      2024/04/02 06:42:36  [INFO]   : images to copy (before duplicates) 26 
      error closing log file registry.log: close multics/working-dir/logs/registry.log: file already closed
      2024/04/02 06:42:36  [ERROR]  : unable to parse image  correctly

      Expected results:

      4) no error

              skhoury@redhat.com Sherine Khoury
              yinzhou@redhat.com ying zhou
              ying zhou ying zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: