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

OperatorLifecycleManagerV1 wasn't enabled in installer config

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 4.18.0
    • OLM
    • Important
    • None
    • Approved
    • False
    • Hide

      None

      Show
      None

      Description of problem:

          $ cat install-config.yaml 
      additionalTrustBundlePolicy: Proxyonly
      apiVersion: v1
      baseDomain: qe.azure.devcluster.openshift.com
      capabilities:
        baselineCapabilitySet: None
        additionalEnabledCapabilities:
        - Build
        - CSISnapshot
        - CloudControllerManager
        - CloudCredential
        - Console
        - DeploymentConfig
        - Ingress
        - Insights
        - MachineAPI
        - NodeTuning
        - OperatorLifecycleManager
        - Storage
        - baremetal
        - marketplace
        - openshift-samples
        - OperatorLifecycleManagerV1
      ...
      $ ./openshift-install create manifests --dir ipi
      ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: capabilities.additionalEnabledCapabilities[15]: Unsupported value: "OperatorLifecycleManagerV1": supported values: "Build", "CSISnapshot", "CloudControllerManager", "CloudCredential", "Console", "DeploymentConfig", "ImageRegistry", "Ingress", "Insights", "MachineAPI", "NodeTuning", "OperatorLifecycleManager", "Storage", "baremetal", "marketplace", "openshift-samples" 
      
      $ ./openshift-install version
      ./openshift-install 4.18.0-0.nightly-2024-11-15-113437
      built from commit 4535ff481563e3323571f1d7985a4ec2d1b68355
      release image registry.ci.openshift.org/ocp/release@sha256:b6a254d19116d6eff261f52d752c6a10a227e6119064f0626060789056491de7
      release architecture amd64

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

          4.18.0-0.nightly-2024-11-15-113437

      How reproducible:

          always

      Steps to Reproduce:

          1. specify the OperatorLifecycleManagerV1 in the installer configure file.
          2. Install it.

      Actual results:

      Failed to install OLMv1.

          $ ./openshift-install create manifests --dir ipi
      ERROR failed to fetch Master Machines: failed to load asset "Install Config": failed to create install config: invalid "install-config.yaml" file: capabilities.additionalEnabledCapabilities[15]: Unsupported value: "OperatorLifecycleManagerV1": supported values: "Build", "CSISnapshot", "CloudControllerManager", "CloudCredential", "Console", "DeploymentConfig", "ImageRegistry", "Ingress", "Insights", "MachineAPI", "NodeTuning", "OperatorLifecycleManager", "Storage", "baremetal", "marketplace", "openshift-samples" 

      Expected results:

      Install OLMv1 successfully.

          

      Additional info:

      the OperatorLifecycleManagerV1 capability has been enabled as default, as follows,

      jiazha-mac:~ jiazha$ oc get clusterversion
      NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
      version   4.18.0-0.nightly-2024-11-15-113437   True        False         20m     Cluster version is 4.18.0-0.nightly-2024-11-15-113437
      jiazha-mac:~ jiazha$ oc get clusterversion version -o yaml
      apiVersion: config.openshift.io/v1
      kind: ClusterVersion
      ...
      status:
        availableUpdates: null
        capabilities:
          enabledCapabilities:
          - Build
          - CSISnapshot
          - CloudControllerManager
          - CloudCredential
          - Console
          - DeploymentConfig
          - ImageRegistry
          - Ingress
          - Insights
          - MachineAPI
          - NodeTuning
          - OperatorLifecycleManager
          - OperatorLifecycleManagerV1
          - Storage
          - baremetal
          - marketplace
          - openshift-samples
          knownCapabilities:
          - Build
          - CSISnapshot
          - CloudControllerManager
          - CloudCredential
          - Console
          - DeploymentConfig
          - ImageRegistry
          - Ingress
          - Insights
          - MachineAPI
          - NodeTuning
          - OperatorLifecycleManager
          - OperatorLifecycleManagerV1
          - Storage
          - baremetal
          - marketplace
          - openshift-samples    

              lmohanty@redhat.com Lalatendu Mohanty
              rhn-support-jiazha Jian Zhang
              Jian Zhang Jian Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: