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

oc-mirror fails to exec on arm64 cluster with error: bin/usr/bin/registry/opm: exec format error

XMLWordPrintable

    • Important
    • No
    • CFE Sprint 240, CFE Sprint 241
    • 2
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • NA

      Description of problem:

      oc-mirror fails to  on arm64 platform with error : Rendering catalog image "ec2-18-224-73-36.us-east-2.compute.amazonaws.com:5000/arm/home/ec2-user/ocmtest/oci-multi-index:1fb06f" with file-based catalog 
      Rendering catalog image "ec2-18-224-73-36.us-east-2.compute.amazonaws.com:5000/arm/redhat/community-operator-index:v4.13" with file-based catalog 
      error: error rebuilding catalog images from file-based catalogs: error regenerating the cache for ec2-18-224-73-36.us-east-2.compute.amazonaws.com:5000/arm/redhat/community-operator-index:v4.13: fork/exec /home/ec2-user/ocmtest/oc-mirror-workspace/src/catalogs/registry.redhat.io/redhat/community-operator-index/v4.13/bin/usr/bin/registry/opm: exec format error
      

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

      
      

      How reproducible:

      always 

      Steps to Reproduce:

      1.  Clone the repo to arm64 cluster and build oc-mirror;
      2. Copy the catalog index to localhost ;
      `skopeo copy --all  --format oci  docker://registry.redhat.io/redhat/redhat-operator-index:v4.13 oci:///home/ec2-user/ocmtest/oci-multi-index  --remove-signatures`
      3.  Run the oc-mirror command :
      apiVersion: mirror.openshift.io/v1alpha2
      kind: ImageSetConfiguration
      archiveSize: 16
      mirror:
        operators:
        - catalog: oci:///home/ec2-user/ocmtest/oci-multi-index
          full: false # only mirror the latest versions
          packages:
          - name: cluster-logging
        - catalog: registry.redhat.io/redhat/community-operator-index:v4.13
          full: false # only mirror the latest versions
          packages:
          - name: namespace-configuration-operator
      `oc-mirror --config config-413.yaml docker://xxxx:5000/arm --dest-skip-tls` 
      

      Expected results:

      No errors and succeed 

            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: