Bug 2079610
Summary: | Opeatorhub status shows errors after disabling default catalogSources | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Alexander Greene <agreene> |
Component: | OLM | Assignee: | Per da Silva <pegoncal> |
OLM sub component: | OperatorHub | QA Contact: | Jian Zhang <jiazha> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | medium | CC: | pegoncal, tflannag |
Version: | 4.11 | Keywords: | Triaged |
Target Milestone: | --- | ||
Target Release: | 4.11.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-08-10 11:09:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Alexander Greene
2022-04-27 21:24:52 UTC
1, Build a cluster with the fixed PR via the cluster-bot mac:operator-marketplace jianzhang$ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.11.0-0.ci.test-2022-04-28-055639-ci-ln-t6n94b2-latest True False 11m Cluster version is 4.11.0-0.ci.test-2022-04-28-055639-ci-ln-t6n94b2-latest mac:operator-marketplace jianzhang$ oc project openshift-marketplace Now using project "openshift-marketplace" on server "https://api.ci-ln-t6n94b2-72292.origin-ci-int-gce.dev.rhcloud.com:6443". mac:operator-marketplace jianzhang$ oc get catalogsource NAME DISPLAY TYPE PUBLISHER AGE certified-operators Certified Operators grpc Red Hat 28m community-operators Community Operators grpc Red Hat 28m redhat-marketplace Red Hat Marketplace grpc Red Hat 28m redhat-operators Red Hat Operators grpc Red Hat 28m 2, Disable the OperatorHub. mac:operator-marketplace jianzhang$ oc patch operatorhub cluster -p '{"spec": {"disableAllDefaultSources": true}}' --type=merge operatorhub.config.openshift.io/cluster patched mac:operator-marketplace jianzhang$ oc get catalogsource No resources found in openshift-marketplace namespace. 3, Check the OperatorHub status. The status is success, no error message sent. Looks good. mac:operator-marketplace jianzhang$ oc get operatorhub cluster -o yaml apiVersion: config.openshift.io/v1 kind: OperatorHub metadata: annotations: capability.openshift.io/name: marketplace include.release.openshift.io/ibm-cloud-managed: "true" include.release.openshift.io/self-managed-high-availability: "true" include.release.openshift.io/single-node-developer: "true" release.openshift.io/create-only: "true" creationTimestamp: "2022-04-28T06:03:48Z" generation: 2 name: cluster ownerReferences: - apiVersion: config.openshift.io/v1 kind: ClusterVersion name: version uid: 09491974-0f3a-4014-b1d1-0c5a86de6366 resourceVersion: "33235" uid: ed28d246-6492-49be-b895-68ed0f91341d spec: disableAllDefaultSources: true status: sources: - disabled: true name: redhat-marketplace status: Success - disabled: true name: redhat-operators status: Success - disabled: true name: certified-operators status: Success - disabled: true name: community-operators status: Success 4, Check the marketplace-operator logs. No error message found. mac:operator-marketplace jianzhang$ oc get pods NAME READY STATUS RESTARTS AGE marketplace-operator-6d8c66f596-v2b77 1/1 Running 0 34m mac:operator-marketplace jianzhang$ oc logs marketplace-operator-6d8c66f596-v2b77 > marketplace mac:operator-marketplace jianzhang$ cat marketplace | grep "Error processing CatalogSource" mac:operator-marketplace jianzhang$ 5, Enable the OperatorHub, the status is success and the disable is false. mac:operator-marketplace jianzhang$ oc patch operatorhub cluster -p '{"spec": {"disableAllDefaultSources": false}}' --type=merge operatorhub.config.openshift.io/cluster patched mac:operator-marketplace jianzhang$ oc get operatorhub cluster -o yaml apiVersion: config.openshift.io/v1 kind: OperatorHub metadata: annotations: capability.openshift.io/name: marketplace include.release.openshift.io/ibm-cloud-managed: "true" include.release.openshift.io/self-managed-high-availability: "true" include.release.openshift.io/single-node-developer: "true" release.openshift.io/create-only: "true" creationTimestamp: "2022-04-28T06:03:48Z" generation: 3 name: cluster ownerReferences: - apiVersion: config.openshift.io/v1 kind: ClusterVersion name: version uid: 09491974-0f3a-4014-b1d1-0c5a86de6366 resourceVersion: "35343" uid: ed28d246-6492-49be-b895-68ed0f91341d spec: disableAllDefaultSources: false status: sources: - disabled: false name: redhat-operators status: Success - disabled: false name: certified-operators status: Success - disabled: false name: community-operators status: Success - disabled: false name: redhat-marketplace status: Success LGTM, verify it. Hey Eric, thanks for that. Does it look good now? 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 (Important: OpenShift Container Platform 4.11.0 bug fix and security update), 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/RHSA-2022:5069 |