Description of problem:
Installation of operator is impacted by non-related bundle.
Version-Release number of selected component (if applicable):
zhaoxia@xzha-mac OCP-68821 % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.15.0-0.nightly-2023-11-25-110147 True False 44m Cluster version is 4.15.0-0.nightly-2023-11-25-110147
How reproducible:
always
Steps to Reproduce:
1. create a bundledeployment with non-exist bundle image
zhaoxia@xzha-mac rukpak % cat bundle-deploy.yaml
apiVersion: core.rukpak.io/v1alpha1
kind: BundleDeployment
metadata:
name: nginx-bundle-deployment
spec:
provisionerClassName: core-rukpak-io-plain
template:
metadata:
labels:
app: nginx-bundle
spec:
source:
type: image
image:
ref: quay.io/olmqe/nginx-bundle-registryv1:v0.0.1
provisionerClassName: core-rukpak-io-registry
zhaoxia@xzha-mac rukpak % oc get bd nginx-bundle-deployment -o=jsonpath-as-json='{.status}'
[
{
"conditions": [
{
"lastTransitionTime": "2023-11-27T06:04:44Z",
"message": "Waiting for the nginx-bundle-deployment-d25c46 Bundle to be unpacked",
"reason": "UnpackPending",
"status": "True",
"type": "HasValidBundle"
}
],
"observedGeneration": 1
}
]
2. create catalogd
zhaoxia@xzha-mac OCP-68821 % cat catalogd.yaml
apiVersion: catalogd.operatorframework.io/v1alpha1
kind: Catalog
metadata:
name: test-catalog-68821
spec:
source:
type: image
image:
ref: quay.io/olmqe/olmtest-operator-index:nginxolm68821
zhaoxia@xzha-mac OCP-68821 % opm alpha list bundles quay.io/olmqe/olmtest-operator-index:nginxolm68821
PACKAGE CHANNEL BUNDLE REPLACES SKIPS SKIP RANGE IMAGE
nginx68821 candidate-v0.0 nginx68821.v0.0.1 quay.io/olmqe/olmtest-operator-bundle:v0.0.1-nginxolm68821
nginx68821 candidate-v0.0 nginx68821.v0.0.2 quay.io/olmqe/olmtest-operator-bundle:v0.0.2-nginxolm68821
nginx68821 candidate-v0.0 nginx68821.v0.0.3 nginx68821.v0.0.1,nginx68821.v0.0.2 quay.io/olmqe/olmtest-operator-bundle:v0.0.3-nginxolm68821
nginx68821 candidate-v1.0 nginx68821.v1.0.1 quay.io/olmqe/olmtest-operator-bundle:v1.0.1-nginxolm68821
nginx68821 candidate-v1.0 nginx68821.v1.0.2 nginx68821.v1.0.1 quay.io/olmqe/olmtest-operator-bundle:v1.0.2-nginxolm68821
nginx68821 candidate-v1.1 nginx68821.v1.1.0 nginx68821.v1.0.2 nginx68821.v1.0.1 quay.io/olmqe/olmtest-operator-bundle:v1.1.0-nginxolm68821
3. create operator
zhaoxia@xzha-mac OCP-68821 % cat operator.yaml.1
apiVersion: operators.operatorframework.io/v1alpha1
kind: Operator
metadata:
name: test-68821
spec:
packageName: nginx68821
channel: candidate-v0.0
version: ">=0.0.1"
zhaoxia@xzha-mac OCP-68821 % oc get operator.operators.operatorframework.io/test-68821 -o=jsonpath-as-json='{.status}'
[
{
"conditions": [
{
"lastTransitionTime": "2023-11-27T06:06:04Z",
"message": "installation has not been attempted as resolution failed",
"observedGeneration": 1,
"reason": "InstallationStatusUnknown",
"status": "Unknown",
"type": "Installed"
},
{
"lastTransitionTime": "2023-11-27T06:06:04Z",
"message": "bundleImage \"quay.io/olmqe/nginx-bundle-registryv1:fake\" not found",
"observedGeneration": 1,
"reason": "ResolutionFailed",
"status": "False",
"type": "Resolved"
}
]
}
]
Actual results:
operator test-68821 retrun False with ResolutionFailed, error message is bundleImage \"quay.io/olmqe/nginx-bundle-registryv1:fake\" not found"
Expected results:
operator test-68821 status is True
Additional info:
If the invalid bundledeployment is deleted, the status of operator is True.
zhaoxia@xzha-mac OCP-68821 % oc delete bd nginx-bundle-deployment
bundledeployment.core.rukpak.io "nginx-bundle-deployment" deleted
zhaoxia@xzha-mac OCP-68821 % oc get bd
NAME ACTIVE BUNDLE INSTALL STATE AGE
test-68821 2s
zhaoxia@xzha-mac OCP-68821 % oc get operator.operators.operatorframework.io/test-68821 -o=jsonpath-as-json='{.status}'
[
{
"conditions": [
{
"lastTransitionTime": "2023-11-27T06:28:14Z",
"message": "installed from \"quay.io/olmqe/olmtest-operator-bundle:v0.0.3-nginxolm68821\"",
"observedGeneration": 1,
"reason": "Success",
"status": "True",
"type": "Installed"
},
{
"lastTransitionTime": "2023-11-27T06:27:55Z",
"message": "resolved to \"quay.io/olmqe/olmtest-operator-bundle:v0.0.3-nginxolm68821\"",
"observedGeneration": 1,
"reason": "Success",
"status": "True",
"type": "Resolved"
}
],
"installedBundleResource": "quay.io/olmqe/olmtest-operator-bundle:v0.0.3-nginxolm68821",
"resolvedBundleResource": "quay.io/olmqe/olmtest-operator-bundle:v0.0.3-nginxolm68821"
}
]
- links to
-
RHBA-2024:1210
OpenShift Container Platform 4.15.z bug fix update