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

[Doc][Local Storage Operator] Install via CLI Subscription template "spec.channel" should use "stable"

XMLWordPrintable

    • OSDOCS Sprint 241, OSDOCS Sprint 242, OSDOCS Sprint 243
    • 3
    • False
    • Hide

      None

      Show
      None

      Description of problem:
       
      Version-Release number of selected component (if applicable):
       
      Server Version: 4.11.0-0.nightly-2022-08-15-152346
       
       
       
      How reproducible: 
       
        Always
       
       
       
      Steps to Reproduce:
       
       
       # Follow the official doc install Local Storage Operator via CLI  local-storage-install_persistent-storage-local\
       
      $ cat lso_sub_and_csv.yaml
      apiVersion: operators.coreos.com/v1
      kind: OperatorGroup
      metadata:
        name: local-operator-group
        namespace: openshift-local-storage
        labels:
          og_label: local-storage
      spec:
        targetNamespaces:
          - openshift-local-storage
      ---
      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: local-storage-operator
        namespace: openshift-local-storage
      spec:
        channel: "4.11"
        installPlanApproval: Automatic
        name: local-storage-operator
        source: redhat-operators
        sourceNamespace: openshift-marketplace
       
      $ oc apply -f lso_sub_and_csv.yaml
      operatorgroup.operators.coreos.com/local-operator-group created
      subscription.operators.coreos.com/local-storage-operator created
      

       
       
      2. Check the Local Storage Operator Subscription status

      $ oc get sub local-storage-operator -o yaml
      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        annotations:
          kubectl.kubernetes.io/last-applied-configuration: \|
            \{"apiVersion":"operators.coreos.com/v1alpha1","kind":"Subscription","metadata":{"annotations":{},"name":"local-storage-operator","namespace":"openshift-local-storage"},"spec":\{"channel":"4.11","installPlanApproval":"Automatic","name":"local-storage-operator","source":"redhat-operators","sourceNamespace":"openshift-marketplace"}}
        creationTimestamp: "2022-08-16T02:04:42Z"
        generation: 1
        labels:
          operators.coreos.com/local-storage-operator.openshift-local-storage: ""
        name: local-storage-operator
        namespace: openshift-local-storage
        resourceVersion: "58502"
        uid: 90e56da6-9e76-4d48-98aa-6ca5d667a934
      spec:
        channel: "4.11"
        installPlanApproval: Automatic
        name: local-storage-operator
        source: redhat-operators
        sourceNamespace: openshift-marketplace
      status:
        ...
        conditions:
        - lastTransitionTime: "2022-08-16T02:04:42Z"
          message: all available catalogsources are healthy
          reason: AllCatalogSourcesHealthy
          status: "False"
          type: CatalogSourcesUnhealthy
        - message: 'constraints not satisfiable: no operators found in channel 4.11 of package
            local-storage-operator in the catalog referenced by subscription local-storage-operator,
            subscription local-storage-operator exists'
          reason: ConstraintsNotSatisfiable
          status: "True"
          type: ResolutionFailed
        lastUpdated: "2022-08-16T02:04:43Z"
       
      

      Actual results:
       
      In Step1: The doc 4.11+ CLI install Subscription yaml channel still use the OCP version
       
      In Step2: Local Storage Operator Subscription find no operators found in channel 4.11 of package
       
       
       
      Expected results:
       
      In Step1: The doc 4.11+ CLI install Subscription yaml channel should use "stable" 

      apiVersion: operators.coreos.com/v1alpha1
      kind: Subscription
      metadata:
        name: local-storage-operator
        namespace: openshift-local-storage
      spec:
        channel: "stable"
        ...
      

      In Step2: Local Storage Operator Subscription could find the operators package

            lpettyjo@redhat.com Lisa Pettyjohn
            rhn-support-pewang Penghao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: