Description of problem:
Installing
Version-Release number of selected component (if applicable):
4.15.11
How reproducible:
Steps to Reproduce:
1. Create an `openshift-customer-monitoring` namespace and install the Prometheus Operator using the following subscription and operator group below 2. Check the unpack job in the openshift-marketplace ns, it will be called `8dadcd4e49a1312f71c2886fc5b7043a4d1fcca18f7deb8fccda626826e6a06`
--- apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: name: openshift-customer-monitoring namespace: openshift-customer-monitoring spec: targetNamespaces: - openshift-customer-monitoring --- apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: prometheus namespace: openshift-customer-monitoring spec: channel: beta installPlanApproval: Automatic name: prometheus source: community-operators sourceNamespace: openshift-marketplace
Actual results:
If there was no previous job with the same name, everything will be fine, but if there was a previous job with the same name, the catalog-source pod in the `openshift-operator-lifecycle-manager` namespace will report the following error: E0517 07:11:44.513051 1 queueinformer_operator.go:319] sync {"update" "openshift-customer-monitoring"} failed: bundle unpacking failed with an error: jobs.batch "8dadcd4e49a1312f71c2886fc5b7043a4d1fcca18f7deb8fccda626826e6a06" already exists
Expected results:
The installation should always succeed, no matter if there was a previous installation or not.
Additional info:
A follow-up of https://issues.redhat.com/browse/OCPBUGS-31872