-
Bug
-
Resolution: Unresolved
-
Normal
-
4.14
-
Important
-
No
-
OPECO 247
-
1
-
Rejected
-
False
-
-
N/A
-
Release Note Not Required
Description of problem:
the packages are not updated if index image changed
Version-Release number of selected component (if applicable):
zhaoxia@xzha-mac test_upgrade % oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.14.0-0.nightly-2023-07-26-132453 True False 3h7m Cluster version is 4.14.0-0.nightly-2023-07-26-132453 zhaoxia@xzha-mac test_upgrade % oc get co olm NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE MESSAGE olm 4.14.0-0.nightly-2023-07-26-132453 True False False 119m
How reproducible:
always
Steps to Reproduce:
1. two index images zhaoxia@xzha-mac test_upgrade % opm alpha list bundles quay.io/olmqe/nginxolm-operator-index:catalogd-v0.0.1 PACKAGE CHANNEL BUNDLE REPLACES SKIPS SKIP RANGE IMAGE nginx-operator candidate-v0.0 nginx-operator.v0.0.1 quay.io/olmqe/nginxolm-operator-bundle:v0.0.1-multi zhaoxia@xzha-mac test_upgrade % opm alpha list bundles quay.io/olmqe/nginxolm-operator-index:catalogd-v1.0.1 PACKAGE CHANNEL BUNDLE REPLACES SKIPS SKIP RANGE IMAGE nginx-operator candidate-v0.0 nginx-operator.v0.0.1 quay.io/olmqe/nginxolm-operator-bundle:v0.0.1-multi nginx-operator candidate-v1.0 nginx-operator.v1.0.1 quay.io/olmqe/nginxolm-operator-bundle:v1.0.1-multi 2. create catalog with catalogd-v0.0.1 zhaoxia@xzha-mac test_upgrade % cat catalogd-xzha.yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog metadata: name: test-catalog-xzha spec: source: type: image image: ref: quay.io/olmqe/nginxolm-operator-index:catalogd-v0.0.1 zhaoxia@xzha-mac test_upgrade % oc apply -f catalogd-xzha.yaml catalog.catalogd.operatorframework.io/test-catalog-xzha created zhaoxia@xzha-mac test_upgrade % oc get catalog test-catalog-xzha -o yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog ... spec: source: image: ref: quay.io/olmqe/nginxolm-operator-index:catalogd-v0.0.1 type: image status: ... image: ref: quay.io/olmqe/nginxolm-operator-index@sha256:6aef03cf24ac5dac421cd999f93abd8185db63babcc3315dba35f312b472b1bf zhaoxia@xzha-mac test_upgrade % oc get packages test-catalog-xzha-nginx-operator -o yaml ... spec: catalog: name: test-catalog-xzha channels: - entries: - name: nginx-operator.v0.0.1 name: candidate-v0.0 defaultChannel: candidate-v0.0 description: "" packageName: nginx-operator 3. change catalog index image to be quay.io/olmqe/nginxolm-operator-index:catalogd-v1.0.1 zhaoxia@xzha-mac test_upgrade % cat catalogd-xzha.yaml apiVersion: catalogd.operatorframework.io/v1alpha1 kind: Catalog metadata: name: test-catalog-xzha spec: source: type: image image: ref: quay.io/olmqe/nginxolm-operator-index:catalogd-v1.0.1 zhaoxia@xzha-mac test_upgrade % oc apply -f catalogd-xzha.yaml catalog.catalogd.operatorframework.io/test-catalog-xzha configured 4, wait for 30 mins zhaoxia@xzha-mac test_upgrade % oc get catalog test-catalog-xzha -o yaml spec: source: image: ref: quay.io/olmqe/nginxolm-operator-index:catalogd-v1.0.1 type: image status: conditions: - lastTransitionTime: "2023-07-27T01:23:43Z" message: successfully unpacked the catalog image "quay.io/olmqe/nginxolm-operator-index@sha256:6aef03cf24ac5dac421cd999f93abd8185db63babcc3315dba35f312b472b1bf" reason: UnpackSuccessful status: "True" type: Unpacked phase: Unpacked resolvedSource: image: ref: quay.io/olmqe/nginxolm-operator-index@sha256:6aef03cf24ac5dac421cd999f93abd8185db63babcc3315dba35f312b472b1bf type: image zhaoxia@xzha-mac test_upgrade % oc get packages test-catalog-xzha-nginx-operator -o yaml ... spec: catalog: name: test-catalog-xzha channels: - entries: - name: nginx-operator.v0.0.1 name: candidate-v0.0 defaultChannel: candidate-v0.0 description: "" packageName: nginx-operator status: {}
Actual results:
The packages test-catalog-xzha-nginx-operator is not updated automatically
Expected results:
The packages test-catalog-xzha-nginx-operator is updated automatically
Additional info:
I try to delete pod test-catalog-xzha, the package test-catalog-xzha-nginx-operator is updated. zhaoxia@xzha-mac test_upgrade % oc delete pod test-catalog-xzha -n openshift-catalogd pod "test-catalog-xzha" deleted zhaoxia@xzha-mac test_upgrade % oc get catalog test-catalog-xzha -o yaml ... spec: source: image: ref: quay.io/olmqe/nginxolm-operator-index:catalogd-v1.0.1 type: image status: conditions: - lastTransitionTime: "2023-07-27T02:35:41Z" message: successfully unpacked the catalog image "quay.io/olmqe/nginxolm-operator-index@sha256:72a2d609649f411df5f4e57db185462189f0515aa26dbf000e629cb1ac9dbe3b" reason: UnpackSuccessful status: "True" type: Unpacked phase: Unpacked resolvedSource: image: ref: quay.io/olmqe/nginxolm-operator-index@sha256:72a2d609649f411df5f4e57db185462189f0515aa26dbf000e629cb1ac9dbe3b type: image zhaoxia@xzha-mac test_upgrade % oc get packages test-catalog-xzha-nginx-operator -o yaml ... spec: catalog: name: test-catalog-xzha channels: - entries: - name: nginx-operator.v0.0.1 name: candidate-v0.0 - entries: - name: nginx-operator.v1.0.1 name: candidate-v1.0 defaultChannel: candidate-v1.0 description: "" packageName: nginx-operator status: {}
- relates to
-
OPECO-3008 [Catalogd] Polling remote registries for update to images' content
- Closed