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

cli manager should be able to get correct image incase of multi-arch images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.17.0
    • cli-manager
    • None
    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • Release Note Not Required
    • In Progress

      Description of problem:

      when trying to install plugin via client based on arm64,  i see that cli manager downloads amd64 client which results in `exec format error`
      
          

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

          [knarra@knarra-thinkpadx1carbon7th aws]$ oc get csv -n openshift-cli-manager-operator
      NAME                          DISPLAY       VERSION   REPLACES   PHASE
      cli-manager-operator.v0.1.0   CLI Manager   0.1.0                Succeeded
      
          

      How reproducible:

           Always
          

      Steps to Reproduce:

          1. Install latest ocp4.17 client
          2. Install cli-manager operator
          3. Install linux/arm64 aws client machine
          4. Now add plugin as shown below
          apiVersion: config.openshift.io/v1alpha1
      kind: Plugin
      metadata:
        creationTimestamp: '2024-10-07T08:20:47Z'
        generation: 1
        managedFields:
          - apiVersion: config.openshift.io/v1alpha1
            fieldsType: FieldsV1
            fieldsV1:
              'f:spec':
                .: {}
                'f:description': {}
                'f:homepage': {}
                'f:platforms': {}
                'f:shortDescription': {}
                'f:version': {}
            manager: Mozilla
            operation: Update
            time: '2024-10-07T08:20:47Z'
          - apiVersion: config.openshift.io/v1alpha1
            fieldsType: FieldsV1
            fieldsV1:
              'f:status':
                .: {}
                'f:conditions':
                  .: {}
                  'k:{"type":"PluginInstalled"}':
                    .: {}
                    'f:lastTransitionTime': {}
                    'f:message': {}
                    'f:reason': {}
                    'f:status': {}
                    'f:type': {}
            manager: cli-manager
            operation: Update
            subresource: status
            time: '2024-10-07T08:20:56Z'
        name: oc-mirror
        resourceVersion: '42286'
        uid: 059225fc-82cc-4716-860f-e234b2fb5b03
      spec:
        description: oc mirror plugin rhel9 for arm64
        homepage: 'https://github.com/openshift/oc-mirror'
        platforms:
          - bin: oc-mirror
            files:
              - from: /usr/bin/oc-mirror
                to: .
            image: 'registry.redhat.io/openshift4/oc-mirror-plugin-rhel9:v4.17.0-202409120935.p0.gc912303.assembly.stream.el9'
            imagePullSecret: openshift-config/pull-secret
            platform: linux/arm64
        shortDescription: oc mirror plugin arm64
        version: v4.17.0
      status:
        conditions:
          - lastTransitionTime: '2024-10-07T08:20:56Z'
            message: plugin oc-mirror is ready to be served
            reason: Installed
            status: 'True'
            type: PluginInstalled
      
          5. Once plugin is ready, run oc krew update, oc krew search oc-mirror
          6. Verify that krew is able to list the plugin
          7. Run oc krew install ocp/oc-mirror
          8. once installed run command `oc oc-mirror`
          

      Actual results:

          [ec2-user@ip-10-0-128-151 ~]$ oc oc-mirror
            exec format error
      
          

      Expected results:

           cli manager should pull in the right image
          

      Additional info:

          https://redhat-internal.slack.com/archives/GK58XC2G2/p1728289547317719
          

            aguclu@redhat.com Arda Guclu
            knarra@redhat.com Rama Kasturi Narra
            Rama Kasturi Narra Rama Kasturi Narra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: