Bug 1866577 - the certain copied csv is listed in Operator's component
Summary: the certain copied csv is listed in Operator's component
Keywords:
Status: CLOSED DUPLICATE of bug 1947916
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.6
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: kuiwang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-06 00:57 UTC by kuiwang
Modified: 2021-05-20 17:43 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-20 17:43:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description kuiwang 2020-08-06 00:57:29 UTC
Description of problem:
currently copied csv is not supported for the Operator resource, but we find certain copied csv is listed for 4.6 cluster upgraded from 4.5, for example
--
[root@preserve-olm-env memcached-operator]# oc get operator aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat -o yaml|grep -A2 "kind: ClusterServiceVersion"
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-aws-ebs-csi-driver-operator
--
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-cluster-csi-drivers
acutally the csv in openshift-cluster-csi-drivers are copied
--
it means something wrong for selection of component.

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-08-05-041346

How reproducible:


Steps to Reproduce:
setup 4.5 cluster and then upgraded to 4.6

--
[root@preserve-olm-env memcached-operator]# oc get operators
NAME                                                              AGE
aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat   119m
cluster-logging.openshift-logging                                 119m
elasticsearch-operator.openshift-operators-redhat                 119m
local-storage-operator.openshift-local-storage                    119m

[root@preserve-olm-env memcached-operator]# oc get operator aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat -o yaml
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
...
  name: aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
  resourceVersion: "583457"
  selfLink: /apis/operators.coreos.com/v1/operators/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
  uid: 39c38136-a5f3-4845-9e95-f57e35a632ae
spec: {}
status:
  components:
    labelSelector:
      matchExpressions:
      - key: operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
        operator: Exists
    refs:
    - apiVersion: apps/v1
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-08-05T09:48:36Z"
        lastUpdateTime: "2020-08-05T09:48:36Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T09:48:36Z"
        lastUpdateTime: "2020-08-05T09:48:37Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: InstallWaiting
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T09:48:41Z"
        lastUpdateTime: "2020-08-05T09:48:41Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:01:31Z"
        lastUpdateTime: "2020-08-05T10:01:31Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: ComponentUnhealthy
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:01:32Z"
        lastUpdateTime: "2020-08-05T10:01:32Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: NeedsReinstall
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:01:34Z"
        lastUpdateTime: "2020-08-05T10:01:34Z"
        message: all requirements found, attempting install
        reason: AllRequirementsMet
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:02:02Z"
        lastUpdateTime: "2020-08-05T10:02:02Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:02:05Z"
        lastUpdateTime: "2020-08-05T10:02:05Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:22Z"
        lastUpdateTime: "2020-08-05T10:05:22Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
        reason: ComponentUnhealthy
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:34Z"
        lastUpdateTime: "2020-08-05T10:05:34Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: NeedsReinstall
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:39Z"
        lastUpdateTime: "2020-08-05T10:05:39Z"
        message: all requirements found, attempting install
        reason: AllRequirementsMet
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:43Z"
        lastUpdateTime: "2020-08-05T10:05:43Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:43Z"
        lastUpdateTime: "2020-08-05T10:05:48Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: InstallWaiting
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:06:27Z"
        lastUpdateTime: "2020-08-05T10:06:27Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:42Z"
        lastUpdateTime: "2020-08-05T10:21:42Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: ComponentUnhealthy
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:42Z"
        lastUpdateTime: "2020-08-05T10:21:42Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: NeedsReinstall
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:43Z"
        lastUpdateTime: "2020-08-05T10:21:43Z"
        message: all requirements found, attempting install
        reason: AllRequirementsMet
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:43Z"
        lastUpdateTime: "2020-08-05T10:21:43Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:43Z"
        lastUpdateTime: "2020-08-05T10:21:43Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: InstallWaiting
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:45Z"
        lastUpdateTime: "2020-08-05T10:21:45Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-aws-ebs-csi-driver-operator
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-08-05T09:48:36Z"
        lastUpdateTime: "2020-08-05T09:48:36Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T09:48:36Z"
        lastUpdateTime: "2020-08-05T09:48:37Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: InstallWaiting
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T09:48:41Z"
        lastUpdateTime: "2020-08-05T09:48:41Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:01:31Z"
        lastUpdateTime: "2020-08-05T10:01:31Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: ComponentUnhealthy
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:01:32Z"
        lastUpdateTime: "2020-08-05T10:01:32Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: NeedsReinstall
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:01:34Z"
        lastUpdateTime: "2020-08-05T10:01:34Z"
        message: all requirements found, attempting install
        reason: AllRequirementsMet
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:02:02Z"
        lastUpdateTime: "2020-08-05T10:02:02Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:02:05Z"
        lastUpdateTime: "2020-08-05T10:02:05Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:22Z"
        lastUpdateTime: "2020-08-05T10:05:22Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
        reason: ComponentUnhealthy
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:34Z"
        lastUpdateTime: "2020-08-05T10:05:34Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: NeedsReinstall
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:39Z"
        lastUpdateTime: "2020-08-05T10:05:39Z"
        message: all requirements found, attempting install
        reason: AllRequirementsMet
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:43Z"
        lastUpdateTime: "2020-08-05T10:05:43Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:05:43Z"
        lastUpdateTime: "2020-08-05T10:05:48Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: InstallWaiting
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:06:27Z"
        lastUpdateTime: "2020-08-05T10:06:27Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:42Z"
        lastUpdateTime: "2020-08-05T10:21:42Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: ComponentUnhealthy
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:42Z"
        lastUpdateTime: "2020-08-05T10:21:42Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: NeedsReinstall
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:43Z"
        lastUpdateTime: "2020-08-05T10:21:43Z"
        message: all requirements found, attempting install
        reason: AllRequirementsMet
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:43Z"
        lastUpdateTime: "2020-08-05T10:21:43Z"
        message: waiting for install components to report healthy
        reason: InstallSucceeded
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:43Z"
        lastUpdateTime: "2020-08-05T10:21:43Z"
        message: |
          installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
        reason: InstallWaiting
        status: ""
        type: ""
      - lastTransitionTime: "2020-08-05T10:21:45Z"
        lastUpdateTime: "2020-08-05T10:21:45Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: ""
        type: ""
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-cluster-csi-drivers

the orignal csv
[root@preserve-olm-env memcached-operator]# oc get csv aws-ebs-csi-driver-operator.v4.5.0 -n openshift-aws-ebs-csi-driver-operator -o yaml
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
  annotations:
    alm-examples: |-
      [
        {
          "apiVersion": "csi.openshift.io/v1alpha1",
          "kind": "AWSEBSDriver",
          "metadata": {
            "name": "cluster"
          },
          "spec": {
            "managementState": "Managed",
            "logLevel": "Normal",
            "operatorLogLevel": "Normal"
          }
        }
      ]
    capabilities: Full Lifecycle
    categories: Storage
    certified: "false"
    containerImage: registry.redhat.io/openshift4/ose-aws-ebs-csi-driver-rhel7-operator@sha256:b94ddf1345163419cfb038fbf25f74bf748f7cfc8fbf9a10d6da8ef58ee24aa1
    createdAt: 2020-03-24:13:08:00
    description: Operator to install and maintain the AWS EBS CSI Driver on a cluster.
    olm.operatorGroup: openshift-aws-ebs-csi-driver-operator-gjgvp
    olm.operatorNamespace: openshift-aws-ebs-csi-driver-operator
    olm.skipRange: '>=4.3.0 <4.5.0'
    olm.targetNamespaces: ""
    operatorframework.io/suggested-namespace: openshift-aws-ebs-csi-driver-operator
    repository: https://github.com/openshift/aws-ebs-csi-driver-operator
    support: https://github.com/openshift/aws-ebs-csi-driver-operator
  creationTimestamp: "2020-08-05T04:44:46Z"
  generation: 1
  labels:
    olm.api.fc98c1b154e30479: provided
    operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat: ""
  name: aws-ebs-csi-driver-operator.v4.5.0
  namespace: openshift-aws-ebs-csi-driver-operator
  resourceVersion: "566660"
  selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-aws-ebs-csi-driver-operator/clusterserviceversions/aws-ebs-csi-driver-operator.v4.5.0
  uid: 18ae86cd-d1ae-4276-9932-82995c5ce64e
spec:
  apiservicedefinitions: {}
  customresourcedefinitions:
    owned:
    - description: Manage EBS CSI driver for OpenShift
      displayName: EBS CSI Driver
      kind: AWSEBSDriver
      name: awsebsdrivers.csi.openshift.io
      specDescriptors:
      - description: Management state of operator
        displayName: Managementstate
        path: managementState
      - description: Log level of operator
        displayName: LogLevel
        path: logLevel
      statusDescriptors:
      - description: Last generation of this object
        displayName: ObservedGeneration
        path: observedGeneration
      - description: Last known condition of the operator
        displayName: Conditions
        path: conditions
        x-descriptors:
        - urn:alm:descriptor:io.kubernetes.conditions
      version: v1alpha1
  description: Operator to install and maintain the AWS EBS CSI Driver on a cluster.
  displayName: AWS EBS CSI Driver Operator
  install:
    spec:
      clusterPermissions:
      - rules:
        - apiGroups:
          - security.openshift.io
          resourceNames:
          - privileged
          resources:
          - securitycontextconstraints
          verbs:
          - use
        - apiGroups:
          - ""
          resourceNames:
          - extension-apiserver-authentication
          resources:
          - configmaps
          verbs:
          - '*'
        - apiGroups:
          - rbac.authorization.k8s.io
          resources:
          - clusterroles
          - clusterrolebindings
          - roles
          - rolebindings
          verbs:
          - watch
          - list
          - get
          - create
          - delete
          - patch
          - update
        - apiGroups:
          - ""
          resources:
          - serviceaccounts
          verbs:
          - get
          - list
          - watch
          - create
          - update
          - patch
          - delete
        - apiGroups:
          - apiextensions.k8s.io
          resources:
          - customresourcedefinitions
          verbs:
          - list
          - create
          - watch
          - delete
        - apiGroups:
          - coordination.k8s.io
          resources:
          - leases
          verbs:
          - '*'
        - apiGroups:
          - ""
          resources:
          - nodes
          verbs:
          - '*'
        - apiGroups:
          - ""
          resources:
          - secrets
          verbs:
          - get
          - list
          - watch
        - apiGroups:
          - ""
          resources:
          - namespaces
          verbs:
          - get
          - list
          - watch
          - create
          - patch
          - delete
          - update
        - apiGroups:
          - ""
          resources:
          - persistentvolumes
          verbs:
          - create
          - delete
          - list
          - get
          - watch
          - update
          - patch
        - apiGroups:
          - ""
          resources:
          - persistentvolumeclaims
          verbs:
          - get
          - list
          - watch
          - update
        - apiGroups:
          - ""
          resources:
          - persistentvolumeclaims/status
          verbs:
          - patch
          - update
        - apiGroups:
          - apps
          resources:
          - deployments
          - daemonsets
          - replicasets
          - statefulsets
          verbs:
          - '*'
        - apiGroups:
          - storage.k8s.io
          resources:
          - volumeattachments
          verbs:
          - get
          - list
          - watch
          - update
          - delete
          - create
          - patch
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshotcontents/status
          verbs:
          - update
          - patch
        - apiGroups:
          - storage.k8s.io
          resources:
          - storageclasses
          - csinodes
          verbs:
          - create
          - get
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - '*'
          resources:
          - events
          verbs:
          - get
          - patch
          - create
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshotclasses
          verbs:
          - get
          - list
          - watch
          - create
          - update
          - delete
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshotcontents
          verbs:
          - create
          - get
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshots
          verbs:
          - get
          - list
          - watch
          - update
        - apiGroups:
          - storage.k8s.io
          resources:
          - csidrivers
          verbs:
          - create
          - get
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - csi.openshift.io
          resources:
          - '*'
          verbs:
          - '*'
        - apiGroups:
          - cloudcredential.openshift.io
          resources:
          - credentialsrequests
          verbs:
          - '*'
        - apiGroups:
          - config.openshift.io
          resources:
          - infrastructures
          verbs:
          - get
          - list
          - watch
        serviceAccountName: aws-ebs-csi-driver-operator
      deployments:
      - name: aws-ebs-csi-driver-operator
        spec:
          replicas: 1
          selector:
            matchLabels:
              name: aws-ebs-csi-driver-operator
          strategy: {}
          template:
            metadata:
              creationTimestamp: null
              labels:
                name: aws-ebs-csi-driver-operator
            spec:
              containers:
              - args:
                - start
                env:
                - name: RELATED_IMAGE_DRIVER
                  value: registry.redhat.io/openshift4/ose-aws-ebs-csi-driver-rhel7@sha256:1eef81ca67d2c4f9613920bf9e34471aa611ac7d664caec55bf6e7353dbae55f
                - name: RELATED_IMAGE_PROVISIONER
                  value: registry.redhat.io/openshift4/ose-csi-external-provisioner-rhel7@sha256:77483486f6d7a351c2fa5d11d7e3b61cea68153ef003c94152da568c95a9c379
                - name: RELATED_IMAGE_ATTACHER
                  value: registry.redhat.io/openshift4/ose-csi-external-attacher@sha256:4927063c14fe20934939036fa4cb99929733a288c2a8d9ed38e6ef3b48e903e3
                - name: RELATED_IMAGE_RESIZER
                  value: registry.redhat.io/openshift4/ose-csi-external-resizer-rhel7@sha256:c82ebccf65ec71727ada5d041d413d5dc2777c99a9f378b5651165bd313ef38d
                - name: RELATED_IMAGE_SNAPSHOTTER
                  value: registry.redhat.io/openshift4/ose-csi-external-snapshotter-rhel7@sha256:911b512b715b795ae5f40b38d0e47ec8cc82f86b91ce074bb5d999362519e28a
                - name: RELATED_IMAGE_NODE_DRIVER_REGISTRAR
                  value: registry.redhat.io/openshift4/ose-csi-node-driver-registrar@sha256:91af7d7f61a2a6ac8d1e14d66dcbcaef8b24991c1bd0f5ad0418fedae027d12d
                - name: RELATED_IMAGE_LIVENESS_PROBE
                  value: registry.redhat.io/openshift4/ose-csi-livenessprobe@sha256:d24d69d15e48f6196f7cde21f75077916ec258d5c838c4d9ee87a99349a3da38
                - name: POD_NAME
                  valueFrom:
                    fieldRef:
                      fieldPath: metadata.name
                - name: OPERATOR_NAME
                  value: aws-ebs-csi-driver-operator
                image: registry.redhat.io/openshift4/ose-aws-ebs-csi-driver-rhel7-operator@sha256:b94ddf1345163419cfb038fbf25f74bf748f7cfc8fbf9a10d6da8ef58ee24aa1
                imagePullPolicy: Always
                name: aws-ebs-csi-driver-operator
                resources: {}
              priorityClassName: system-cluster-critical
              serviceAccountName: aws-ebs-csi-driver-operator
              tolerations:
              - key: CriticalAddonsOnly
                operator: Exists
      permissions:
      - rules:
        - apiGroups:
          - ""
          resources:
          - pods
          - services
          - endpoints
          - persistentvolumeclaims
          - events
          - configmaps
          - secrets
          verbs:
          - '*'
        - apiGroups:
          - ""
          resources:
          - namespaces
          verbs:
          - get
        - apiGroups:
          - apps
          resources:
          - deployments
          - daemonsets
          - replicasets
          - statefulsets
          verbs:
          - '*'
        - apiGroups:
          - monitoring.coreos.com
          resources:
          - servicemonitors
          verbs:
          - get
          - create
        serviceAccountName: aws-ebs-csi-driver-operator
    strategy: deployment
  installModes:
  - supported: false
    type: OwnNamespace
  - supported: false
    type: SingleNamespace
  - supported: false
    type: MultiNamespace
  - supported: true
    type: AllNamespaces
  keywords:
  - aws
  - CSI
  labels:
    alm-owner-metering: aws-ebs-csi-driver-operator
    alm-status-descriptors: aws-ebs-csi-driver-operator.v4.5.0
  maintainers:
  - email: aos-storage-staff
    name: Red Hat
  maturity: alpha
  minKubeVersion: 1.17.0
  provider:
    name: Red Hat
  selector:
    matchLabels:
      alm-owner-metering: aws-ebs-csi-driver-operator
  version: 4.5.0
status:
  conditions:
  - lastTransitionTime: "2020-08-05T09:48:36Z"
    lastUpdateTime: "2020-08-05T09:48:36Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T09:48:36Z"
    lastUpdateTime: "2020-08-05T09:48:37Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Installing
    reason: InstallWaiting
  - lastTransitionTime: "2020-08-05T09:48:41Z"
    lastUpdateTime: "2020-08-05T09:48:41Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:01:31Z"
    lastUpdateTime: "2020-08-05T10:01:31Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Failed
    reason: ComponentUnhealthy
  - lastTransitionTime: "2020-08-05T10:01:32Z"
    lastUpdateTime: "2020-08-05T10:01:32Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Pending
    reason: NeedsReinstall
  - lastTransitionTime: "2020-08-05T10:01:34Z"
    lastUpdateTime: "2020-08-05T10:01:34Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-08-05T10:02:02Z"
    lastUpdateTime: "2020-08-05T10:02:02Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:02:05Z"
    lastUpdateTime: "2020-08-05T10:02:05Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:05:22Z"
    lastUpdateTime: "2020-08-05T10:05:22Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
    phase: Failed
    reason: ComponentUnhealthy
  - lastTransitionTime: "2020-08-05T10:05:34Z"
    lastUpdateTime: "2020-08-05T10:05:34Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Pending
    reason: NeedsReinstall
  - lastTransitionTime: "2020-08-05T10:05:39Z"
    lastUpdateTime: "2020-08-05T10:05:39Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-08-05T10:05:43Z"
    lastUpdateTime: "2020-08-05T10:05:43Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:05:43Z"
    lastUpdateTime: "2020-08-05T10:05:48Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Installing
    reason: InstallWaiting
  - lastTransitionTime: "2020-08-05T10:06:27Z"
    lastUpdateTime: "2020-08-05T10:06:27Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:21:42Z"
    lastUpdateTime: "2020-08-05T10:21:42Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Failed
    reason: ComponentUnhealthy
  - lastTransitionTime: "2020-08-05T10:21:42Z"
    lastUpdateTime: "2020-08-05T10:21:42Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Pending
    reason: NeedsReinstall
  - lastTransitionTime: "2020-08-05T10:21:43Z"
    lastUpdateTime: "2020-08-05T10:21:43Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-08-05T10:21:43Z"
    lastUpdateTime: "2020-08-05T10:21:43Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:21:43Z"
    lastUpdateTime: "2020-08-05T10:21:43Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Installing
    reason: InstallWaiting
  - lastTransitionTime: "2020-08-05T10:21:45Z"
    lastUpdateTime: "2020-08-05T10:21:45Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  lastTransitionTime: "2020-08-05T10:21:45Z"
  lastUpdateTime: "2020-08-05T10:21:45Z"
  message: install strategy completed with no errors
  phase: Succeeded
  reason: InstallSucceeded
  requirementStatus:
  - group: operators.coreos.com
    kind: ClusterServiceVersion
    message: CSV minKubeVersion (1.17.0) less than server version (v4.6.0-202008031851.p0-dirty)
    name: aws-ebs-csi-driver-operator.v4.5.0
    status: Present
    version: v1alpha1
  - group: apiextensions.k8s.io
    kind: CustomResourceDefinition
    message: CRD is present and Established condition is true
    name: awsebsdrivers.csi.openshift.io
    status: Present
    uuid: 33cecf50-19e6-4c39-91f7-3c26356e3e33
    version: v1
  - dependents:
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["*"],"apiGroups":[""],"resources":["pods","services","endpoints","persistentvolumeclaims","events","configmaps","secrets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["get"],"apiGroups":[""],"resources":["namespaces"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["*"],"apiGroups":["apps"],"resources":["deployments","daemonsets","replicasets","statefulsets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["get","create"],"apiGroups":["monitoring.coreos.com"],"resources":["servicemonitors"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["use"],"apiGroups":["security.openshift.io"],"resources":["securitycontextconstraints"],"resourceNames":["privileged"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":[""],"resources":["configmaps"],"resourceNames":["extension-apiserver-authentication"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["watch","list","get","create","delete","patch","update"],"apiGroups":["rbac.authorization.k8s.io"],"resources":["clusterroles","clusterrolebindings","roles","rolebindings"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","create","update","patch","delete"],"apiGroups":[""],"resources":["serviceaccounts"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["list","create","watch","delete"],"apiGroups":["apiextensions.k8s.io"],"resources":["customresourcedefinitions"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["coordination.k8s.io"],"resources":["leases"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":[""],"resources":["nodes"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch"],"apiGroups":[""],"resources":["secrets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","create","patch","delete","update"],"apiGroups":[""],"resources":["namespaces"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","delete","list","get","watch","update","patch"],"apiGroups":[""],"resources":["persistentvolumes"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","update"],"apiGroups":[""],"resources":["persistentvolumeclaims"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["patch","update"],"apiGroups":[""],"resources":["persistentvolumeclaims/status"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["apps"],"resources":["deployments","daemonsets","replicasets","statefulsets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","update","delete","create","patch"],"apiGroups":["storage.k8s.io"],"resources":["volumeattachments"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["update","patch"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshotcontents/status"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","get","list","watch","update","delete"],"apiGroups":["storage.k8s.io"],"resources":["storageclasses","csinodes"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","patch","create","list","watch","update","delete"],"apiGroups":["*"],"resources":["events"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","create","update","delete"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshotclasses"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","get","list","watch","update","delete"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshotcontents"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","update"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshots"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","get","list","watch","update","delete"],"apiGroups":["storage.k8s.io"],"resources":["csidrivers"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["csi.openshift.io"],"resources":["*"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["cloudcredential.openshift.io"],"resources":["credentialsrequests"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch"],"apiGroups":["config.openshift.io"],"resources":["infrastructures"]}
      status: Satisfied
      version: v1
    group: ""
    kind: ServiceAccount
    message: ""
    name: aws-ebs-csi-driver-operator
    status: Present
    version: v1
 
copied csv
[root@preserve-olm-env memcached-operator]# oc get csv aws-ebs-csi-driver-operator.v4.5.0 -o yaml -n openshift-cluster-csi-drivers
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
  annotations:
    alm-examples: |-
      [
        {
          "apiVersion": "csi.openshift.io/v1alpha1",
          "kind": "AWSEBSDriver",
          "metadata": {
            "name": "cluster"
          },
          "spec": {
            "managementState": "Managed",
            "logLevel": "Normal",
            "operatorLogLevel": "Normal"
          }
        }
      ]
    capabilities: Full Lifecycle
    categories: Storage
    certified: "false"
    containerImage: registry.redhat.io/openshift4/ose-aws-ebs-csi-driver-rhel7-operator@sha256:b94ddf1345163419cfb038fbf25f74bf748f7cfc8fbf9a10d6da8ef58ee24aa1
    createdAt: 2020-03-24:13:08:00
    description: Operator to install and maintain the AWS EBS CSI Driver on a cluster.
    olm.operatorGroup: openshift-aws-ebs-csi-driver-operator-gjgvp
    olm.operatorNamespace: openshift-aws-ebs-csi-driver-operator
    olm.skipRange: '>=4.3.0 <4.5.0'
    operatorframework.io/suggested-namespace: openshift-aws-ebs-csi-driver-operator
    repository: https://github.com/openshift/aws-ebs-csi-driver-operator
    support: https://github.com/openshift/aws-ebs-csi-driver-operator
  creationTimestamp: "2020-08-05T08:38:49Z"
  generation: 1
  labels:
    olm.api.fc98c1b154e30479: provided
    olm.copiedFrom: openshift-aws-ebs-csi-driver-operator
    operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat: ""
  managedFields:
  - apiVersion: operators.coreos.com/v1alpha1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:alm-examples: {}
          f:capabilities: {}
          f:categories: {}
          f:certified: {}
          f:containerImage: {}
          f:createdAt: {}
          f:description: {}
          f:olm.operatorGroup: {}
          f:olm.operatorNamespace: {}
          f:olm.skipRange: {}
          f:operatorframework.io/suggested-namespace: {}
          f:repository: {}
          f:support: {}
        f:labels:
          .: {}
          f:olm.api.fc98c1b154e30479: {}
          f:olm.copiedFrom: {}
          f:operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat: {}
      f:spec:
        .: {}
        f:apiservicedefinitions: {}
        f:customresourcedefinitions:
          .: {}
          f:owned: {}
        f:description: {}
        f:displayName: {}
        f:install:
          .: {}
          f:spec:
            .: {}
            f:clusterPermissions: {}
            f:deployments: {}
            f:permissions: {}
          f:strategy: {}
        f:installModes: {}
        f:keywords: {}
        f:labels:
          .: {}
          f:alm-owner-metering: {}
          f:alm-status-descriptors: {}
        f:maintainers: {}
        f:maturity: {}
        f:minKubeVersion: {}
        f:provider:
          .: {}
          f:name: {}
        f:selector:
          .: {}
          f:matchLabels:
            .: {}
            f:alm-owner-metering: {}
        f:version: {}
      f:status:
        .: {}
        f:conditions: {}
        f:lastTransitionTime: {}
        f:lastUpdateTime: {}
        f:message: {}
        f:phase: {}
        f:reason: {}
        f:requirementStatus: {}
    manager: olm
    operation: Update
    time: "2020-08-05T10:45:17Z"
  name: aws-ebs-csi-driver-operator.v4.5.0
  namespace: openshift-cluster-csi-drivers
  resourceVersion: "587961"
  selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-cluster-csi-drivers/clusterserviceversions/aws-ebs-csi-driver-operator.v4.5.0
  uid: f118f8ea-c7ef-4502-af3d-dbd3a2f29dc1
spec:
  apiservicedefinitions: {}
  customresourcedefinitions:
    owned:
    - description: Manage EBS CSI driver for OpenShift
      displayName: EBS CSI Driver
      kind: AWSEBSDriver
      name: awsebsdrivers.csi.openshift.io
      specDescriptors:
      - description: Management state of operator
        displayName: Managementstate
        path: managementState
      - description: Log level of operator
        displayName: LogLevel
        path: logLevel
      statusDescriptors:
      - description: Last generation of this object
        displayName: ObservedGeneration
        path: observedGeneration
      - description: Last known condition of the operator
        displayName: Conditions
        path: conditions
        x-descriptors:
        - urn:alm:descriptor:io.kubernetes.conditions
      version: v1alpha1
  description: Operator to install and maintain the AWS EBS CSI Driver on a cluster.
  displayName: AWS EBS CSI Driver Operator
  install:
    spec:
      clusterPermissions:
      - rules:
        - apiGroups:
          - security.openshift.io
          resourceNames:
          - privileged
          resources:
          - securitycontextconstraints
          verbs:
          - use
        - apiGroups:
          - ""
          resourceNames:
          - extension-apiserver-authentication
          resources:
          - configmaps
          verbs:
          - '*'
        - apiGroups:
          - rbac.authorization.k8s.io
          resources:
          - clusterroles
          - clusterrolebindings
          - roles
          - rolebindings
          verbs:
          - watch
          - list
          - get
          - create
          - delete
          - patch
          - update
        - apiGroups:
          - ""
          resources:
          - serviceaccounts
          verbs:
          - get
          - list
          - watch
          - create
          - update
          - patch
          - delete
        - apiGroups:
          - apiextensions.k8s.io
          resources:
          - customresourcedefinitions
          verbs:
          - list
          - create
          - watch
          - delete
        - apiGroups:
          - coordination.k8s.io
          resources:
          - leases
          verbs:
          - '*'
        - apiGroups:
          - ""
          resources:
          - nodes
          verbs:
          - '*'
        - apiGroups:
          - ""
          resources:
          - secrets
          verbs:
          - get
          - list
          - watch
        - apiGroups:
          - ""
          resources:
          - namespaces
          verbs:
          - get
          - list
          - watch
          - create
          - patch
          - delete
          - update
        - apiGroups:
          - ""
          resources:
          - persistentvolumes
          verbs:
          - create
          - delete
          - list
          - get
          - watch
          - update
          - patch
        - apiGroups:
          - ""
          resources:
          - persistentvolumeclaims
          verbs:
          - get
          - list
          - watch
          - update
        - apiGroups:
          - ""
          resources:
          - persistentvolumeclaims/status
          verbs:
          - patch
          - update
        - apiGroups:
          - apps
          resources:
          - deployments
          - daemonsets
          - replicasets
          - statefulsets
          verbs:
          - '*'
        - apiGroups:
          - storage.k8s.io
          resources:
          - volumeattachments
          verbs:
          - get
          - list
          - watch
          - update
          - delete
          - create
          - patch
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshotcontents/status
          verbs:
          - update
          - patch
        - apiGroups:
          - storage.k8s.io
          resources:
          - storageclasses
          - csinodes
          verbs:
          - create
          - get
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - '*'
          resources:
          - events
          verbs:
          - get
          - patch
          - create
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshotclasses
          verbs:
          - get
          - list
          - watch
          - create
          - update
          - delete
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshotcontents
          verbs:
          - create
          - get
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - snapshot.storage.k8s.io
          resources:
          - volumesnapshots
          verbs:
          - get
          - list
          - watch
          - update
        - apiGroups:
          - storage.k8s.io
          resources:
          - csidrivers
          verbs:
          - create
          - get
          - list
          - watch
          - update
          - delete
        - apiGroups:
          - csi.openshift.io
          resources:
          - '*'
          verbs:
          - '*'
        - apiGroups:
          - cloudcredential.openshift.io
          resources:
          - credentialsrequests
          verbs:
          - '*'
        - apiGroups:
          - config.openshift.io
          resources:
          - infrastructures
          verbs:
          - get
          - list
          - watch
        serviceAccountName: aws-ebs-csi-driver-operator
      deployments:
      - name: aws-ebs-csi-driver-operator
        spec:
          replicas: 1
          selector:
            matchLabels:
              name: aws-ebs-csi-driver-operator
          strategy: {}
          template:
            metadata:
              creationTimestamp: null
              labels:
                name: aws-ebs-csi-driver-operator
            spec:
              containers:
              - args:
                - start
                env:
                - name: RELATED_IMAGE_DRIVER
                  value: registry.redhat.io/openshift4/ose-aws-ebs-csi-driver-rhel7@sha256:1eef81ca67d2c4f9613920bf9e34471aa611ac7d664caec55bf6e7353dbae55f
                - name: RELATED_IMAGE_PROVISIONER
                  value: registry.redhat.io/openshift4/ose-csi-external-provisioner-rhel7@sha256:77483486f6d7a351c2fa5d11d7e3b61cea68153ef003c94152da568c95a9c379
                - name: RELATED_IMAGE_ATTACHER
                  value: registry.redhat.io/openshift4/ose-csi-external-attacher@sha256:4927063c14fe20934939036fa4cb99929733a288c2a8d9ed38e6ef3b48e903e3
                - name: RELATED_IMAGE_RESIZER
                  value: registry.redhat.io/openshift4/ose-csi-external-resizer-rhel7@sha256:c82ebccf65ec71727ada5d041d413d5dc2777c99a9f378b5651165bd313ef38d
                - name: RELATED_IMAGE_SNAPSHOTTER
                  value: registry.redhat.io/openshift4/ose-csi-external-snapshotter-rhel7@sha256:911b512b715b795ae5f40b38d0e47ec8cc82f86b91ce074bb5d999362519e28a
                - name: RELATED_IMAGE_NODE_DRIVER_REGISTRAR
                  value: registry.redhat.io/openshift4/ose-csi-node-driver-registrar@sha256:91af7d7f61a2a6ac8d1e14d66dcbcaef8b24991c1bd0f5ad0418fedae027d12d
                - name: RELATED_IMAGE_LIVENESS_PROBE
                  value: registry.redhat.io/openshift4/ose-csi-livenessprobe@sha256:d24d69d15e48f6196f7cde21f75077916ec258d5c838c4d9ee87a99349a3da38
                - name: POD_NAME
                  valueFrom:
                    fieldRef:
                      fieldPath: metadata.name
                - name: OPERATOR_NAME
                  value: aws-ebs-csi-driver-operator
                image: registry.redhat.io/openshift4/ose-aws-ebs-csi-driver-rhel7-operator@sha256:b94ddf1345163419cfb038fbf25f74bf748f7cfc8fbf9a10d6da8ef58ee24aa1
                imagePullPolicy: Always
                name: aws-ebs-csi-driver-operator
                resources: {}
              priorityClassName: system-cluster-critical
              serviceAccountName: aws-ebs-csi-driver-operator
              tolerations:
              - key: CriticalAddonsOnly
                operator: Exists
      permissions:
      - rules:
        - apiGroups:
          - ""
          resources:
          - pods
          - services
          - endpoints
          - persistentvolumeclaims
          - events
          - configmaps
          - secrets
          verbs:
          - '*'
        - apiGroups:
          - ""
          resources:
          - namespaces
          verbs:
          - get
        - apiGroups:
          - apps
          resources:
          - deployments
          - daemonsets
          - replicasets
          - statefulsets
          verbs:
          - '*'
        - apiGroups:
          - monitoring.coreos.com
          resources:
          - servicemonitors
          verbs:
          - get
          - create
        serviceAccountName: aws-ebs-csi-driver-operator
    strategy: deployment
  installModes:
  - supported: false
    type: OwnNamespace
  - supported: false
    type: SingleNamespace
  - supported: false
    type: MultiNamespace
  - supported: true
    type: AllNamespaces
  keywords:
  - aws
  - CSI
  labels:
    alm-owner-metering: aws-ebs-csi-driver-operator
    alm-status-descriptors: aws-ebs-csi-driver-operator.v4.5.0
  maintainers:
  - email: aos-storage-staff
    name: Red Hat
  maturity: alpha
  minKubeVersion: 1.17.0
  provider:
    name: Red Hat
  selector:
    matchLabels:
      alm-owner-metering: aws-ebs-csi-driver-operator
  version: 4.5.0
status:
  conditions:
  - lastTransitionTime: "2020-08-05T09:48:36Z"
    lastUpdateTime: "2020-08-05T09:48:36Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T09:48:36Z"
    lastUpdateTime: "2020-08-05T09:48:37Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Installing
    reason: InstallWaiting
  - lastTransitionTime: "2020-08-05T09:48:41Z"
    lastUpdateTime: "2020-08-05T09:48:41Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:01:31Z"
    lastUpdateTime: "2020-08-05T10:01:31Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Failed
    reason: ComponentUnhealthy
  - lastTransitionTime: "2020-08-05T10:01:32Z"
    lastUpdateTime: "2020-08-05T10:01:32Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Pending
    reason: NeedsReinstall
  - lastTransitionTime: "2020-08-05T10:01:34Z"
    lastUpdateTime: "2020-08-05T10:01:34Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-08-05T10:02:02Z"
    lastUpdateTime: "2020-08-05T10:02:02Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:02:05Z"
    lastUpdateTime: "2020-08-05T10:02:05Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:05:22Z"
    lastUpdateTime: "2020-08-05T10:05:22Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 out of 1 new replicas have been updated...
    phase: Failed
    reason: ComponentUnhealthy
  - lastTransitionTime: "2020-08-05T10:05:34Z"
    lastUpdateTime: "2020-08-05T10:05:34Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Pending
    reason: NeedsReinstall
  - lastTransitionTime: "2020-08-05T10:05:39Z"
    lastUpdateTime: "2020-08-05T10:05:39Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-08-05T10:05:43Z"
    lastUpdateTime: "2020-08-05T10:05:43Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:05:43Z"
    lastUpdateTime: "2020-08-05T10:05:48Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Installing
    reason: InstallWaiting
  - lastTransitionTime: "2020-08-05T10:06:27Z"
    lastUpdateTime: "2020-08-05T10:06:27Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:21:42Z"
    lastUpdateTime: "2020-08-05T10:21:42Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Failed
    reason: ComponentUnhealthy
  - lastTransitionTime: "2020-08-05T10:21:42Z"
    lastUpdateTime: "2020-08-05T10:21:42Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Pending
    reason: NeedsReinstall
  - lastTransitionTime: "2020-08-05T10:21:43Z"
    lastUpdateTime: "2020-08-05T10:21:43Z"
    message: all requirements found, attempting install
    phase: InstallReady
    reason: AllRequirementsMet
  - lastTransitionTime: "2020-08-05T10:21:43Z"
    lastUpdateTime: "2020-08-05T10:21:43Z"
    message: waiting for install components to report healthy
    phase: Installing
    reason: InstallSucceeded
  - lastTransitionTime: "2020-08-05T10:21:43Z"
    lastUpdateTime: "2020-08-05T10:21:43Z"
    message: |
      installing: waiting for deployment aws-ebs-csi-driver-operator to become ready: Waiting for rollout to finish: 0 of 1 updated replicas are available...
    phase: Installing
    reason: InstallWaiting
  - lastTransitionTime: "2020-08-05T10:21:45Z"
    lastUpdateTime: "2020-08-05T10:21:45Z"
    message: install strategy completed with no errors
    phase: Succeeded
    reason: InstallSucceeded
  lastTransitionTime: "2020-08-05T10:21:45Z"
  lastUpdateTime: "2020-08-05T10:45:16Z"
  message: The operator is running in openshift-aws-ebs-csi-driver-operator but is
    managing this namespace
  phase: Succeeded
  reason: Copied
  requirementStatus:
  - group: operators.coreos.com
    kind: ClusterServiceVersion
    message: CSV minKubeVersion (1.17.0) less than server version (v4.6.0-202008031851.p0-dirty)
    name: aws-ebs-csi-driver-operator.v4.5.0
    status: Present
    version: v1alpha1
  - group: apiextensions.k8s.io
    kind: CustomResourceDefinition
    message: CRD is present and Established condition is true
    name: awsebsdrivers.csi.openshift.io
    status: Present
    uuid: 33cecf50-19e6-4c39-91f7-3c26356e3e33
    version: v1
  - dependents:
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["*"],"apiGroups":[""],"resources":["pods","services","endpoints","persistentvolumeclaims","events","configmaps","secrets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["get"],"apiGroups":[""],"resources":["namespaces"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["*"],"apiGroups":["apps"],"resources":["deployments","daemonsets","replicasets","statefulsets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: namespaced rule:{"verbs":["get","create"],"apiGroups":["monitoring.coreos.com"],"resources":["servicemonitors"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["use"],"apiGroups":["security.openshift.io"],"resources":["securitycontextconstraints"],"resourceNames":["privileged"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":[""],"resources":["configmaps"],"resourceNames":["extension-apiserver-authentication"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["watch","list","get","create","delete","patch","update"],"apiGroups":["rbac.authorization.k8s.io"],"resources":["clusterroles","clusterrolebindings","roles","rolebindings"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","create","update","patch","delete"],"apiGroups":[""],"resources":["serviceaccounts"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["list","create","watch","delete"],"apiGroups":["apiextensions.k8s.io"],"resources":["customresourcedefinitions"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["coordination.k8s.io"],"resources":["leases"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":[""],"resources":["nodes"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch"],"apiGroups":[""],"resources":["secrets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","create","patch","delete","update"],"apiGroups":[""],"resources":["namespaces"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","delete","list","get","watch","update","patch"],"apiGroups":[""],"resources":["persistentvolumes"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","update"],"apiGroups":[""],"resources":["persistentvolumeclaims"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["patch","update"],"apiGroups":[""],"resources":["persistentvolumeclaims/status"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["apps"],"resources":["deployments","daemonsets","replicasets","statefulsets"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","update","delete","create","patch"],"apiGroups":["storage.k8s.io"],"resources":["volumeattachments"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["update","patch"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshotcontents/status"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","get","list","watch","update","delete"],"apiGroups":["storage.k8s.io"],"resources":["storageclasses","csinodes"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","patch","create","list","watch","update","delete"],"apiGroups":["*"],"resources":["events"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","create","update","delete"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshotclasses"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","get","list","watch","update","delete"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshotcontents"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch","update"],"apiGroups":["snapshot.storage.k8s.io"],"resources":["volumesnapshots"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["create","get","list","watch","update","delete"],"apiGroups":["storage.k8s.io"],"resources":["csidrivers"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["csi.openshift.io"],"resources":["*"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["*"],"apiGroups":["cloudcredential.openshift.io"],"resources":["credentialsrequests"]}
      status: Satisfied
      version: v1
    - group: rbac.authorization.k8s.io
      kind: PolicyRule
      message: cluster rule:{"verbs":["get","list","watch"],"apiGroups":["config.openshift.io"],"resources":["infrastructures"]}
      status: Satisfied
      version: v1
    group: ""
    kind: ServiceAccount
    message: ""
    name: aws-ebs-csi-driver-operator
    status: Present
    version: v1

--

Actual results:
the certain copied csv listed

Expected results:
no certain copied csv listed

Additional info:

Comment 3 Haseeb Tariq 2020-11-09 17:36:11 UTC
After cluster upgrade one of the copied CSVs in another namespace also ends up with the Operator selector label `operators.coreos.com/...` which is why we're seeing the Operator resource display a copied CSV in `status.components`.

I'm still trying to confirm if this issue is deterministic on upgrading to 4.6 and 4.7 clusters.

1. A 4.5.17 to 4.6.3 upgrade shows no issue:

```
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
  creationTimestamp: "2020-11-07T02:16:57Z"
  generation: 1
  managedFields:
...
    operation: Update
    time: "2020-11-07T02:42:05Z"
  name: aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
  resourceVersion: "193220"
  selfLink: /apis/operators.coreos.com/v1/operators/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
  uid: 64260abe-9169-4a21-b44f-19f2301330b2
spec: {}
status:
  components:
    labelSelector:
      matchExpressions:
      - key: operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
        operator: Exists
    refs:
...
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T01:48:47Z"
        lastUpdateTime: "2020-11-07T01:48:47Z"
        status: "True"
        type: Installed
      kind: InstallPlan
      name: install-4prb6
      namespace: openshift-aws-ebs-csi-driver-operator
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T02:16:55Z"
        lastUpdateTime: "2020-11-07T02:16:55Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: "True"
        type: Succeeded
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-aws-ebs-csi-driver-operator
```


2. A 4.5.17 upgrade to a 4.7.0-0.nightly-2020-10-27-051128 cluster did however show the issue:

The Operator status showing the copied CSV from the namespace `openshift-oauth-apiserver`.
```
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
  creationTimestamp: "2020-11-07T22:44:18Z"
  generation: 1
  managedFields:
...
    manager: olm
    operation: Update
    time: "2020-11-08T04:35:24Z"
  name: aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
  resourceVersion: "246246"
  selfLink: /apis/operators.coreos.com/v1/operators/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
  uid: 00566355-2d70-4a15-9e33-c6991a837776
spec: {}
status:
  components:
    labelSelector:
      matchExpressions:
      - key: operators.coreos.com/aws-ebs-csi-driver-operator.openshift-aws-ebs-csi-driver-operat
        operator: Exists
    refs:
...
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T23:15:38Z"
        lastUpdateTime: "2020-11-07T23:15:38Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: "True"
        type: Succeeded
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-aws-ebs-csi-driver-operator
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T23:15:38Z"
        lastUpdateTime: "2020-11-08T04:35:24Z"
        message: The operator is running in openshift-aws-ebs-csi-driver-operator
          but is managing this namespace
        reason: Copied
        status: "True"
        type: Succeeded
      kind: ClusterServiceVersion
      name: aws-ebs-csi-driver-operator.v4.5.0
      namespace: openshift-oauth-apiserver
```

Same for other operators e.g CertManager:

```
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
  creationTimestamp: "2020-11-07T22:44:18Z"
  generation: 1
...
    manager: olm
    operation: Update
    time: "2020-11-08T04:38:07Z"
  name: cert-manager-operator.openshift-operators
  resourceVersion: "247156"
  selfLink: /apis/operators.coreos.com/v1/operators/cert-manager-operator.openshift-operators
  uid: 0adbf03c-d49d-412d-8134-9e3f4c967c02
spec: {}
status:
  components:
    labelSelector:
      matchExpressions:
      - key: operators.coreos.com/cert-manager-operator.openshift-operators
        operator: Exists
    refs:
...
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T23:15:37Z"
        lastUpdateTime: "2020-11-08T04:38:07Z"
        message: The operator is running in openshift-operators but is managing this
          namespace
        reason: Copied
        status: "True"
        type: Succeeded
      kind: ClusterServiceVersion
      name: cert-manager-operator.v0.15.2
      namespace: openshift-oauth-apiserver
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T23:15:37Z"
        lastUpdateTime: "2020-11-07T23:15:37Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: "True"
        type: Succeeded
      kind: ClusterServiceVersion
      name: cert-manager-operator.v0.15.2
      namespace: openshift-operators
```

3. A 4.6.1 to 4.7.0-0.nightly-2020-10-27-051128 upgrade did not show the issue:

```
apiVersion: operators.coreos.com/v1
kind: Operator
metadata:
  creationTimestamp: "2020-11-07T22:16:13Z"
  generation: 1
  ...
    manager: olm
    operation: Update
    time: "2020-11-07T23:08:01Z"
  name: cert-manager-operator.openshift-operators
  resourceVersion: "101270"
  selfLink: /apis/operators.coreos.com/v1/operators/cert-manager-operator.openshift-operators
  uid: c9893a64-66c3-409e-96d8-0934db58e195
spec: {}
status:
  components:
    labelSelector:
      matchExpressions:
      - key: operators.coreos.com/cert-manager-operator.openshift-operators
        operator: Exists
    refs:
...
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T22:17:01Z"
        lastUpdateTime: "2020-11-07T22:17:01Z"
        status: "True"
        type: Installed
      kind: InstallPlan
      name: install-vt6fc
      namespace: openshift-operators
    - apiVersion: operators.coreos.com/v1alpha1
      conditions:
      - lastTransitionTime: "2020-11-07T23:08:01Z"
        lastUpdateTime: "2020-11-07T23:08:01Z"
        message: install strategy completed with no errors
        reason: InstallSucceeded
        status: "True"
        type: Succeeded
      kind: ClusterServiceVersion
      name: cert-manager-operator.v0.15.2
      namespace: openshift-operators

```

Comment 5 Ben Luddy 2021-05-20 17:43:28 UTC
It looks like this was fixed via a duplicate issue. The fix should also remove copied CSVs that have already been adopted before the fix is applied. Please re-open if I have misunderstood.

*** This bug has been marked as a duplicate of bug 1947916 ***


Note You need to log in before you can comment on or make changes to this bug.