Description of problem: mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-7c69d7cc97-d4fls 0/1 CrashLoopBackOff 106 18h olm-operator-8c4f4dc59-sv7zd 1/1 Running 0 18h packageserver-5f964cc49b-826g9 1/1 Running 0 18h packageserver-5f964cc49b-ct6lv 1/1 Running 0 18h Version-Release number of selected component (if applicable): mac:~ jianzhang$ oc exec olm-operator-8c4f4dc59-sv7zd -- olm --version OLM version: 0.13.0 git commit: 2cfc21d94fae340bfaedddfee8163623f3236df4 How reproducible: Not sure Steps to Reproduce: 1. Create a 4.3.z cluster mac:~ jianzhang$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.3.9 True False 18h Cluster version is 4.3.9 2. Install some operators. mac:~ jianzhang$ oc get sub -A NAMESPACE NAME PACKAGE SOURCE CHANNEL openshift-logging cluster-logging cluster-logging qe-app-registry 4.3 openshift-metering metering-ocp metering-ocp installed-redhat-metering-operators-openshift-metering stable openshift-operators-redhat elasticsearch-operator elasticsearch-operator qe-app-registry 4.3 yapei akka-cluster-operator-certified akka-cluster-operator-certified certified-operators alpha These operators are installed successfully. mac:~ jianzhang$ oc get csv -n openshift-logging NAME DISPLAY VERSION REPLACES PHASE clusterlogging.4.3.9-202003230345 Cluster Logging 4.3.9-202003230345 Succeeded elasticsearch-operator.4.3.9-202003230345 Elasticsearch Operator 4.3.9-202003230345 Succeeded mac:~ jianzhang$ oc get sub -n openshift-logging NAME PACKAGE SOURCE CHANNEL cluster-logging cluster-logging qe-app-registry 4.3 3. After hours, check the OLM status. Actual results: Catalog-operator crashed. mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-7c69d7cc97-d4fls 0/1 CrashLoopBackOff 106 18h olm-operator-8c4f4dc59-sv7zd 1/1 Running 0 18h packageserver-5f964cc49b-826g9 1/1 Running 0 18h packageserver-5f964cc49b-ct6lv 1/1 Running 0 18h Expected results: OLM works well. Additional info: mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-7c69d7cc97-d4fls 0/1 CrashLoopBackOff 105 18h olm-operator-8c4f4dc59-sv7zd 1/1 Running 0 18h packageserver-5f964cc49b-826g9 1/1 Running 0 18h packageserver-5f964cc49b-ct6lv 1/1 Running 0 18h mac:~ jianzhang$ oc logs catalog-operator-7c69d7cc97-d4fls time="2020-03-27T03:52:36Z" level=info msg="log level info" time="2020-03-27T03:52:36Z" level=info msg="TLS keys set, using https for metrics" time="2020-03-27T03:52:36Z" level=info msg="Using in-cluster kube client config" time="2020-03-27T03:52:36Z" level=info msg="Using in-cluster kube client config" time="2020-03-27T03:52:36Z" level=info msg="Using in-cluster kube client config" time="2020-03-27T03:52:36Z" level=info msg="connection established. cluster-version: v1.16.2" time="2020-03-27T03:52:36Z" level=info msg="operator ready" time="2020-03-27T03:52:36Z" level=info msg="starting informers..." time="2020-03-27T03:52:36Z" level=info msg="informers started" time="2020-03-27T03:52:36Z" level=info msg="waiting for caches to sync..." time="2020-03-27T03:52:37Z" level=info msg="starting workers..." time="2020-03-27T03:52:37Z" level=info msg=syncing id=NnlRu ip=install-pgq44 namespace=openshift-logging phase=Complete time="2020-03-27T03:52:37Z" level=info msg=syncing id=ttlVJ ip=install-lt7pf namespace=openshift-operators-redhat phase=Complete time="2020-03-27T03:52:37Z" level=info msg=syncing id=GpUEa ip=install-mzwkb namespace=openshift-operators-redhat phase=Complete time="2020-03-27T03:52:37Z" level=info msg="state.Key.Namespace=openshift-marketplace state.Key.Name=redhat-operators state.State=CONNECTING" time="2020-03-27T03:52:37Z" level=info msg=syncing event=update reconciling="*v1alpha1.Subscription" selflink=/apis/operators.coreos.com/v1alpha1/namespaces/openshift-logging/subscriptions/cluster-logging panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x15a4748] goroutine 203 [running]: github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).healthy(0xc00041b770, 0xc0009495e8, 0xc000949000, 0xc003a12d90, 0x0) /build/pkg/controller/operators/catalog/subscription/reconciler.go:185 +0x48 github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).health(0xc00041b770, 0xc000b59740, 0xc0009495e8, 0xc000b598a0, 0x0, 0x0) /build/pkg/controller/operators/catalog/subscription/reconciler.go:159 +0x39 github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).catalogHealth(0xc00041b770, 0xc0009a4b00, 0x11, 0x1ca2fa0, 0xc001a8e310, 0xc000b59201, 0x0, 0xc003c47060) /build/pkg/controller/operators/catalog/subscription/reconciler.go:137 +0x2ba github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).Reconcile(0xc00041b770, 0x1c729a0, 0xc000049340, 0x7f5e806fe638, 0xc001a8e240, 0x7f5e806fe638, 0xc001a8e240, 0x0, 0x0) /build/pkg/controller/operators/catalog/subscription/reconciler.go:82 +0x21c github.com/operator-framework/operator-lifecycle-manager/pkg/lib/kubestate.ReconcilerChain.Reconcile(0xc000416f00, 0x3, 0x4, 0x1c729a0, 0xc000049340, 0x7f5e806fe060, 0xc001a8e200, 0x0, 0x0, 0x20300000000000, ...) /build/pkg/lib/kubestate/kubestate.go:128 +0xa5 github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*subscriptionSyncer).Sync(0xc0003698f0, 0x1c729a0, 0xc000049340, 0x1c4e620, 0xc000404120, 0xc003a12001, 0x0) /build/pkg/controller/operators/catalog/subscription/syncer.go:75 +0x596 github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*QueueInformer).Sync(...) /build/pkg/lib/queueinformer/queueinformer.go:36 github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).processNextWorkItem(0xc00051ebb0, 0x1c729a0, 0xc000049340, 0xc0007da3c0, 0x414e637668495a00) /build/pkg/lib/queueinformer/queueinformer_operator.go:287 +0x32b github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).worker(0xc00051ebb0, 0x1c729a0, 0xc000049340, 0xc0007da3c0) /build/pkg/lib/queueinformer/queueinformer_operator.go:231 +0x49 created by github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).start /build/pkg/lib/queueinformer/queueinformer_operator.go:221 +0x455 mac:~ jianzhang$ oc delete pods catalog-operator-7c69d7cc97-d4fls pod "catalog-operator-7c69d7cc97-d4fls" deleted mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-7c69d7cc97-bgkmm 0/1 CrashLoopBackOff 1 17s olm-operator-8c4f4dc59-sv7zd 1/1 Running 0 18h packageserver-5f964cc49b-826g9 1/1 Running 0 18h packageserver-5f964cc49b-ct6lv 1/1 Running 0 18h mac:~ jianzhang$ oc get sub -n openshift-logging cluster-logging -o yaml apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: creationTimestamp: "2020-03-26T10:10:53Z" generation: 1 name: cluster-logging namespace: openshift-logging resourceVersion: "24706" selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-logging/subscriptions/cluster-logging uid: be93502d-3286-4548-96c8-83ab61742c53 spec: channel: "4.3" installPlanApproval: Automatic name: cluster-logging source: qe-app-registry sourceNamespace: openshift-marketplace status: catalogHealth: - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: certified-operators namespace: openshift-marketplace resourceVersion: "20276" uid: 5315f590-c95c-419f-aa82-7cddaf011778 healthy: true lastUpdated: "2020-03-26T10:10:55Z" - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: community-operators namespace: openshift-marketplace resourceVersion: "20249" uid: 3556d6d1-524d-4ccf-bedc-b5ad7a7c1228 healthy: true lastUpdated: "2020-03-26T10:10:55Z" - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: qe-app-registry namespace: openshift-marketplace resourceVersion: "21406" uid: 006e2ae6-3146-4996-920c-43d810c721e4 healthy: true lastUpdated: "2020-03-26T10:10:55Z" - catalogSourceRef: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource name: redhat-operators namespace: openshift-marketplace resourceVersion: "24359" uid: cc9b7530-8e7e-47ca-a4a4-06fbaa18c35d healthy: true lastUpdated: "2020-03-26T10:10:55Z" conditions: - lastTransitionTime: "2020-03-26T10:10:55Z" message: all available catalogsources are healthy reason: AllCatalogSourcesHealthy status: "False" type: CatalogSourcesUnhealthy currentCSV: clusterlogging.4.3.9-202003230345 installPlanRef: apiVersion: operators.coreos.com/v1alpha1 kind: InstallPlan name: install-pgq44 namespace: openshift-logging resourceVersion: "24533" uid: a0b99fa9-592a-4c58-8bf8-c64216a5e725 installedCSV: clusterlogging.4.3.9-202003230345 installplan: apiVersion: operators.coreos.com/v1alpha1 kind: InstallPlan name: install-pgq44 uuid: a0b99fa9-592a-4c58-8bf8-c64216a5e725 lastUpdated: "2020-03-26T10:11:14Z" state: AtLatestKnown
CatalogSource: apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: creationTimestamp: "2020-03-26T10:03:27Z" generation: 1 labels: olm-visibility: hidden openshift-marketplace: "true" opsrc-datastore: "true" opsrc-owner-name: qe-app-registry opsrc-owner-namespace: openshift-marketplace name: qe-app-registry namespace: openshift-marketplace resourceVersion: "238817" selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-marketplace/catalogsources/qe-app-registry uid: 006e2ae6-3146-4996-920c-43d810c721e4 spec: address: qe-app-registry.openshift-marketplace.svc:50051 icon: base64data: "" mediatype: "" sourceType: grpc status: connectionState: address: qe-app-registry.openshift-marketplace.svc:50051 lastConnect: "2020-03-26T19:02:31Z" lastObservedState: READY registryService: createdAt: "2020-03-26T10:03:27Z" protocol: grpc
I see a different error in the catalog pod: time="2020-03-27T14:02:04Z" level=info msg=syncing event=update reconciling="*v1alpha1.Subscription" selflink=/apis/operators.coreos.com/v1alpha1/namespaces/local-storage/subscriptions/local-storage-operator panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x15a4748] goroutine 307 [running]: github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).healthy(0xc000585540, 0xc000ffc3f0, 0xc000ffc1f8, 0xc00347a0e0, 0x0) /build/pkg/controller/operators/catalog/subscription/reconciler.go:185 +0x48 github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).health(0xc000585540, 0xc0002fc560, 0xc000ffc3f0, 0xc0002fc780, 0x0, 0x0) /build/pkg/controller/operators/catalog/subscription/reconciler.go:159 +0x39 github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).catalogHealth(0xc000585540, 0xc0000c5e50, 0xd, 0x1ca2fa0, 0xc00094d970, 0x1529800700c701, 0xc0033f70e8, 0xc0033f7060) /build/pkg/controller/operators/catalog/subscription/reconciler.go:137 +0x2ba github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*catalogHealthReconciler).Reconcile(0xc000585540, 0x1c729a0, 0xc00043c140, 0x7f5ee5367630, 0xc00094d950, 0x7f5ee5367630, 0xc00094d950, 0x0, 0x0) /build/pkg/controller/operators/catalog/subscription/reconciler.go:82 +0x21c github.com/operator-framework/operator-lifecycle-manager/pkg/lib/kubestate.ReconcilerChain.Reconcile(0xc00052cfc0, 0x3, 0x4, 0x1c729a0, 0xc00043c140, 0x7f5ee5367250, 0xc00094d910, 0x0, 0x0, 0x70763750545a6742, ...) /build/pkg/lib/kubestate/kubestate.go:128 +0xa5 github.com/operator-framework/operator-lifecycle-manager/pkg/controller/operators/catalog/subscription.(*subscriptionSyncer).Sync(0xc0004518f0, 0x1c729a0, 0xc00043c140, 0x1c4e620, 0xc0004b6ba0, 0xc003811c01, 0x0) /build/pkg/controller/operators/catalog/subscription/syncer.go:75 +0x596 github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*QueueInformer).Sync(...) /build/pkg/lib/queueinformer/queueinformer.go:36 github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).processNextWorkItem(0xc0000d73f0, 0x1c729a0, 0xc00043c140, 0xc00054bf20, 0x45c900) /build/pkg/lib/queueinformer/queueinformer_operator.go:287 +0x32b github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).worker(0xc0000d73f0, 0x1c729a0, 0xc00043c140, 0xc00054bf20) /build/pkg/lib/queueinformer/queueinformer_operator.go:231 +0x49 created by github.com/operator-framework/operator-lifecycle-manager/pkg/lib/queueinformer.(*operator).start /build/pkg/lib/queueinformer/queueinformer_operator.go:221 +0x455
This is hitting an edge case in the catalog operator, triggered by the following catalogsource in the test cluster: ``` apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: annotations: kubectl.kubernetes.io/last-applied-configuration: | {"apiVersion":"operators.coreos.com/v1alpha1","kind":"CatalogSource","metadata":{"annotations":{},"name":"installed-redhat-metering-operators-openshift-metering","namespace":"openshift-marketplace"},"spec":{"packages":"metering-ocp","sourceType":"grpc","targetNamespace":"openshift-metering"}} creationTimestamp: "2020-03-26T19:18:35Z" generation: 1 name: installed-redhat-metering-operators-openshift-metering namespace: openshift-marketplace resourceVersion: "245879" selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-marketplace/catalogsources/installed-redhat-metering-operators-openshift-metering uid: 8d2b53d3-b49e-45d8-99f2-abcb6eab1936 spec: sourceType: grpc status: message: no reconciler for source type grpc reason: RegistryServerError ``` The problematic section is: ``` spec: sourceType: grpc ``` if sourceType is grpc, we expect to also have either an `address` field or an `image` field. There is a bug, in that the catalog operator should never crash. We will address the underlying issue and backport to 4.3 However, it is highly unlikely that a user will run into this. Most users are not creating catalog sources directly (instead they are created via OperatorSource), or via instructions for disconnected that clearly indicate that the `image` field is required.
removing regression based on previous comment.
Hi Evan/Tim, It looks like this PR https://github.com/operator-framework/operator-metering/pull/1143 was the culprit. Should we just revert this PR to unblock this issue?
Thanks Tim for reverting it https://github.com/operator-framework/operator-metering/pull/1155
This payload is available. mac:~ jianzhang$ oc adm release info registry.svc.ci.openshift.org/ocp/release:4.5.0-0.nightly-2020-04-01-045338 --commits |grep lifecycle operator-lifecycle-manager https://github.com/operator-framework/operator-lifecycle-manager ae9f66d08ee9ccc9cb7a7bf2b8d7adc1ef462142 1, Create an OCP 4.5 within the fixed PR. mac:~ jianzhang$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.5.0-0.nightly-2020-04-01-045338 True False 47m Cluster version is 4.5.0-0.nightly-2020-04-01-045338 mac:~ jianzhang$ oc exec catalog-operator-59c94cf4c9-b4kms -- olm --version OLM version: 0.14.2 git commit: ae9f66d08ee9ccc9cb7a7bf2b8d7adc1ef462142 2, Check the default CatalogSource, OLM pods, they worked well. mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-59c94cf4c9-b4kms 1/1 Running 0 73m olm-operator-8769584b8-kgtg8 1/1 Running 0 73m packageserver-5fb8cc9974-9gg7j 1/1 Running 0 68m packageserver-5fb8cc9974-p4hmz 1/1 Running 0 68m mac:~ jianzhang$ oc get pods -n openshift-marketplace NAME READY STATUS RESTARTS AGE certified-operators-8bcf9b7fd-s5krq 1/1 Running 0 64m community-operators-f764b9999-vcq6q 1/1 Running 0 64m marketplace-operator-899fd465f-8598b 1/1 Running 0 65m redhat-marketplace-777b89d698-kzhjc 1/1 Running 0 64m redhat-operators-794cd6b88c-s8z68 1/1 Running 0 64m mac:~ jianzhang$ oc get packagemanifest NAME CATALOG AGE event-streams-topic Community Operators 63m triggermesh Community Operators 63m ... 3, Create a CatalogSource object(grpc) without image and address. mac:~ jianzhang$ cat cs-1817833.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: bug-no-image namespace: openshift-marketplace spec: sourceType: grpc displayName: Jian Operators publisher: jian mac:~ jianzhang$ mac:~ jianzhang$ oc create -f cs-1817833.yaml catalogsource.operators.coreos.com/bug-no-image created mac:~ jianzhang$ oc get pods -n openshift-marketplace NAME READY STATUS RESTARTS AGE certified-operators-8bcf9b7fd-s5krq 1/1 Running 0 67m community-operators-f764b9999-vcq6q 1/1 Running 0 67m marketplace-operator-899fd465f-8598b 1/1 Running 0 68m redhat-marketplace-777b89d698-kzhjc 1/1 Running 0 67m redhat-operators-794cd6b88c-s8z68 1/1 Running 0 67m mac:~ jianzhang$ oc get catalogsource -n openshift-marketplace NAME DISPLAY TYPE PUBLISHER AGE bug-no-image Jian Operators grpc jian 71s certified-operators Certified Operators grpc Red Hat 68m community-operators Community Operators grpc Red Hat 68m redhat-marketplace Red Hat Marketplace grpc Red Hat 68m redhat-operators Red Hat Operators grpc Red Hat 68m mac:~ jianzhang$ oc get catalogsource -n openshift-marketplace bug-no-image -o yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: creationTimestamp: "2020-04-01T09:44:11Z" generation: 1 name: bug-no-image namespace: openshift-marketplace resourceVersion: "37750" selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-marketplace/catalogsources/bug-no-image uid: fda0b201-e806-4ee8-b6a7-e458a6b0e94e spec: displayName: Jian Operators publisher: jian sourceType: grpc status: message: 'image and address unset: at least one must be set for sourcetype: grpc' reason: SpecInvalidError mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-59c94cf4c9-b4kms 1/1 Running 0 81m olm-operator-8769584b8-kgtg8 1/1 Running 0 81m packageserver-5fb8cc9974-9gg7j 1/1 Running 0 76m packageserver-5fb8cc9974-p4hmz 1/1 Running 0 76m The OLM pods work well and the error message reported, looks good. 4, Install an operator, for example, etcd, it works well. mac:~ jianzhang$ oc get sub -n default NAME PACKAGE SOURCE CHANNEL etcd etcd community-operators singlenamespace-alpha mac:~ jianzhang$ oc get csv -n default NAME DISPLAY VERSION REPLACES PHASE etcdoperator.v0.9.4 etcd 0.9.4 Succeeded mac:~ jianzhang$ oc get pods -n default NAME READY STATUS RESTARTS AGE etcd-operator-966558f8-w9pmm 3/3 Running 0 45s mac:~ jianzhang$ oc get pods -n default NAME READY STATUS RESTARTS AGE etcd-operator-966558f8-w9pmm 3/3 Running 0 58s mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-59c94cf4c9-b4kms 1/1 Running 0 99m olm-operator-8769584b8-kgtg8 1/1 Running 0 99m packageserver-5fb8cc9974-9gg7j 1/1 Running 0 94m packageserver-5fb8cc9974-p4hmz 1/1 Running 0 94m 5, Create a CatalogSource object(configmap) without image and address. mac:~ jianzhang$ oc create -f cs-1817833-configmap.yaml catalogsource.operators.coreos.com/bug-no-image-cm created mac:~ jianzhang$ cat cs-1817833-configmap.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: bug-no-image-cm namespace: openshift-marketplace spec: sourceType: configmap displayName: Jian Operators publisher: jian mac:~ jianzhang$ oc get catalogsource -n openshift-marketplace bug-no-image-cm -o yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: creationTimestamp: "2020-04-01T10:07:25Z" generation: 1 name: bug-no-image-cm namespace: openshift-marketplace resourceVersion: "45041" selfLink: /apis/operators.coreos.com/v1alpha1/namespaces/openshift-marketplace/catalogsources/bug-no-image-cm uid: f3a8f51f-b527-4787-9a5e-0429faca4527 spec: displayName: Jian Operators publisher: jian sourceType: configmap status: message: 'configmap name unset: must be set for sourcetype: configmap' reason: SpecInvalidError mac:~ jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE catalog-operator-59c94cf4c9-b4kms 1/1 Running 0 103m olm-operator-8769584b8-kgtg8 1/1 Running 0 103m packageserver-5fb8cc9974-9gg7j 1/1 Running 0 98m packageserver-5fb8cc9974-p4hmz 1/1 Running 0 99m OLM pods work well and the error message reported, looks good. 6, Create a CatalogSource object without image, address, and sourceType. mac:~ jianzhang$ cat cs-1817833-empty.yaml apiVersion: operators.coreos.com/v1alpha1 kind: CatalogSource metadata: name: bug-empty namespace: openshift-marketplace spec: displayName: Jian Operators publisher: jian mac:~ jianzhang$ oc create -f cs-1817833-empty.yaml The CatalogSource "bug-empty" is invalid: spec.sourceType: Required value LGTM, verify it.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.5 image release advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409