Bug 2213451
| Summary: | Set maxOpenShiftVersion to block OpenShift that didn't upgrade ODF version | |||
|---|---|---|---|---|
| Product: | [Red Hat Storage] Red Hat OpenShift Data Foundation | Reporter: | Eran Tamir <etamir> | |
| Component: | odf-operator | Assignee: | Nitin Goyal <nigoyal> | |
| Status: | CLOSED ERRATA | QA Contact: | Vijay Avuthu <vavuthu> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.11 | CC: | bkunal, ebenahar, kramdoss, muagarwa, nigoyal, ocs-bugs, odf-bz-bot, vavuthu | |
| Target Milestone: | --- | |||
| Target Release: | ODF 4.11.9 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 4.11.9-2 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | 2213450 | |||
| : | 2213452 (view as bug list) | Environment: | ||
| Last Closed: | 2023-07-20 16:12:43 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | 2213452 | |||
| Bug Blocks: | 2213450 | |||
|
Description
Eran Tamir
2023-06-08 07:59:18 UTC
PR is merged. Update: ========= 1. Installed OCP 4.11 ( 4.11.44 ) + ODF 4.11 ( ocs-registry:4.11.9-2 ) ( job: https://url.corp.redhat.com/24fc7d1 ) 2. chnaged channel to stable-4.12 and upgraded to latest images in channel $ oc adm upgrade --to-latest Requesting update to 4.12.23 $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.12.23 True False 8s Cluster version is 4.12.23 3. set channel to candidate-4.13 and upgraded to latest image available $ oc adm upgrade Cluster version is 4.12.23 Upgradeable=False Reason: IncompatibleOperatorsInstalled Message: Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 ReleaseAccepted=False Reason: PreconditionChecks Message: Preconditions failed for payload loaded version="4.13.5" image="registry.ci.openshift.org/ocp/release@sha256:af19e94813478382e36ae1fa2ae7bbbff1f903dded6180f4eb0624afe6fc6cd4": Multiple precondition checks failed: * Precondition "ClusterVersionUpgradeable" failed because of "IncompatibleOperatorsInstalled": Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 * Precondition "ClusterVersionRecommendedUpdate" failed because of "UnknownUpdate": RetrievedUpdates=True (), so the update from 4.12.23 to 4.13.5 is probably neither recommended nor supported. Upstream is unset, so the cluster will use an appropriate default. Channel: candidate-4.13 (available channels: candidate-4.12, candidate-4.13, eus-4.12, fast-4.12, stable-4.12) Recommended updates: VERSION IMAGE 4.12.24 quay.io/openshift-release-dev/ocp-release@sha256:b0b11eedf91175459b5d7aefcf3936d0cabf00f01ced756677483f5f26227328 $ oc adm upgrade --to-latest Requesting update to 4.12.24 4. again upgrade to 4.12.25 whch is latest in channel $ oc adm upgrade Cluster version is 4.12.24 Upgradeable=False Reason: IncompatibleOperatorsInstalled Message: Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 Upstream is unset, so the cluster will use an appropriate default. Channel: candidate-4.13 (available channels: candidate-4.12, candidate-4.13, fast-4.12) Recommended updates: VERSION IMAGE 4.12.25 quay.io/openshift-release-dev/ocp-release@sha256:5a4fb052cda1d14d1e306ce87e6b0ded84edddaa76f1cf401bcded99cef2ad84 $ oc adm upgrade --to-latest Requesting update to 4.12.25 $ $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.12.25 True False 13h Cluster version is 4.12.25 5. 4.13.5 is available in channel and tried to upgrade $ oc adm upgrade --to-latest Requesting update to 4.13.5 As expected , upgrade is not started $ oc adm upgrade Cluster version is 4.12.25 Upgradeable=False Reason: IncompatibleOperatorsInstalled Message: Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 ReleaseAccepted=False Reason: PreconditionChecks Message: Preconditions failed for payload loaded version="4.13.5" image="quay.io/openshift-release-dev/ocp-release@sha256:af19e94813478382e36ae1fa2ae7bbbff1f903dded6180f4eb0624afe6fc6cd4": Precondition "ClusterVersionUpgradeable" failed because of "IncompatibleOperatorsInstalled": Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 Upstream is unset, so the cluster will use an appropriate default. Channel: candidate-4.13 (available channels: candidate-4.12, candidate-4.13) Recommended updates: VERSION IMAGE 4.13.5 quay.io/openshift-release-dev/ocp-release@sha256:af19e94813478382e36ae1fa2ae7bbbff1f903dded6180f4eb0624afe6fc6cd4 > tried upgrading using digest as well and upgrade is not triggered as expected $ oc adm upgrade --to-image=registry.ci.openshift.org/ocp/release@sha256:af19e94813478382e36ae1fa2ae7bbbff1f903dded6180f4eb0624afe6fc6cd4 --allow-explicit-upgrade Requesting update to 4.13.5 $ $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.12.25 True False 13h Cluster version is 4.12.25 $ oc adm upgrade Cluster version is 4.12.25 Upgradeable=False Reason: IncompatibleOperatorsInstalled Message: Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 ReleaseAccepted=False Reason: PreconditionChecks Message: Preconditions failed for payload loaded version="4.13.5" image="quay.io/openshift-release-dev/ocp-release@sha256:af19e94813478382e36ae1fa2ae7bbbff1f903dded6180f4eb0624afe6fc6cd4": Precondition "ClusterVersionUpgradeable" failed because of "IncompatibleOperatorsInstalled": Cluster operator operator-lifecycle-manager should not be upgraded between minor versions: ClusterServiceVersions blocking cluster upgrade: openshift-storage/odf-operator.v4.11.9 is incompatible with OpenShift minor versions greater than 4.12 Upstream is unset, so the cluster will use an appropriate default. Channel: candidate-4.13 (available channels: candidate-4.12, candidate-4.13) Recommended updates: VERSION IMAGE 4.13.5 quay.io/openshift-release-dev/ocp-release@sha256:af19e94813478382e36ae1fa2ae7bbbff1f903dded6180f4eb0624afe6fc6cd4 $ > checked olm.properties and maxOpenShiftVersion version is set properly $ oc get csv odf-operator.v4.11.9 -o json | jq '.metadata | .annotations | ."olm.properties"' "[{\"type\": \"olm.maxOpenShiftVersion\", \"value\": \"4.12\"}]" $ 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 (Moderate: Red Hat OpenShift Data Foundation 4.11.9 security and bug fix 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-2023:4238 |