Operators was failed to install with failed to unpack bundles errors
Issue
- Even though you installed an operator, not generating InstallPlan and missing installPlanRef in the Subscription of the operator you installed.
// There is no installPlanRef for its Subscription as follows.
$ oc get subscription xxxxx -o yaml
:
status:
catalogHealth:
- catalogSourceRef:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
name: certified-operators
namespace: openshift-marketplace
resourceVersion: "xxxxx"
uid: vvv-vvv-vvv-vvv
healthy: true
lastUpdated: "2024-07-22T19:41:28Z"
- catalogSourceRef:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
name: community-operators
namespace: openshift-marketplace
resourceVersion: "xxxxx"
uid: yyy-yyy-yyy-yyy
healthy: true
lastUpdated: "2024-07-22T19:41:28Z"
- catalogSourceRef:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
name: redhat-marketplace
namespace: openshift-marketplace
resourceVersion: "xxxxx"
uid: zzz-zzz-zzz-zzz
healthy: true
lastUpdated: "2024-07-22T19:41:28Z"
- catalogSourceRef:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
name: redhat-operators
namespace: openshift-marketplace
resourceVersion: "xxxxx"
uid: xxx-xxx-xxx-xxx
healthy: true
lastUpdated: "2024-07-22T19:41:28Z"
conditions:
- lastTransitionTime: "2024-07-22T19:41:28Z"
message: all available catalogsources are healthy
reason: AllCatalogSourcesHealthy
status: "False"
type: CatalogSourcesUnhealthy
lastUpdated: "2024-07-22T19:41:28Z"
- You can see the following error messages in catalog-operator pod logs in openshift-operator-lifecycle-manager, even though all the bundle was unpacked already.
time="2024-07-26T10:11:41Z" level=info msg="failed to unpack bundles: [jobs.batch \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\" already exists, jobs.batch \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\" already exists]"
// However the above jobs has completed to generate the counter part configmaps as follows already.
$ oc get job,configmap -n openshift-marketplace | grep -i aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
job.batch/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 1/1 10s 159d
configmap/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 9 159d
$ oc get job,configmap -n openshift-marketplace | grep -i bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
job.batch/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 1/1 10s 159d
configmap/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb 9 159d
Environment
- Red Hat OpenShift Service on AWS
- OpenShift Container Platform
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.