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

[CLI Manager Operator] - Adding openshift-install as plugin via Cli manager throws error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.17
    • cli-manager
    • None
    • Important
    • None
    • False
    • Hide

      None

      Show
      None
    • Unspecified Release Note Type - Unknown
    • In Progress

      Description of problem:

      When adding openshift-install as a plugin via cli manager it fails with error below
      E0726 15:38:13.755323 3876882 scanner.go:66] failed to read or parse plugin manifest "openshift-install": plugin manifest validation error: platform ({URI:https://openshift-cli-manager-openshift-cli-manager-operator.apps.knarra0726.qe.devcluster.openshift.com/cli-manager/plugins/download/?name=openshift-install&platform=linux_amd64 Sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 Selector:&LabelSelector{MatchLabels:map[string]string{arch: amd64,os: linux,},MatchExpressions:[]LabelSelectorRequirement{},} Files:[] Bin:openshift-install}) is badly constructed: `files` is invalid: `files` has to be unspecified or non-empty
          

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

           
          

      How reproducible:

           Always
          

      Steps to Reproduce:

          1. Install 4.17 cluster
          2.  Install CLI Manager
          3. Now add openshift-install as CLI Manager
      apiVersion: config.openshift.io/v1alpha1
      kind: Plugin
      metadata:
        creationTimestamp: '2024-07-26T10:08:02Z'
        generation: 1
        managedFields:
          - apiVersion: config.openshift.io/v1alpha1
            fieldsType: FieldsV1
            fieldsV1:
              'f:spec':
                .: {}
                'f:homepage': {}
                'f:platforms': {}
                'f:shortDescription': {}
                'f:version': {}
            manager: Mozilla
            operation: Update
            time: '2024-07-26T10:08:02Z'
        name: openshift-install
        resourceVersion: '95583'
        uid: c6846547-050e-42e3-bc3b-16632f26029a
      spec:
        homepage: 'https://github.com/openshift/installer'
        platforms:
          - bin: openshift-install
            files:
              - from: /bin/openshift-install
                to: .
            image: 'registry.redhat.io/openshift4/ose-installer:v4.15.0-202407180207.p0.gc48f860.assembly.stream.el8'
            imagePullSecret: openshift-config/pull-secret
            platform: linux/amd64
        shortDescription: openshift-installer
        version: v4.15.0
          

      Actual results:

          Adding it as plugin fails with error as shown in the description
          

      Expected results:

          User should be able to add openshift-install as a plugin via cli manager
          

      Additional info:

           Related discussion thread: https://redhat-internal.slack.com/archives/GK58XC2G2/p1721988843032789
          

              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: