Bug 1826115
Summary: | ClusterVersion status.desired bumped during precondition checks before new version begins reconciling | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | W. Trevor King <wking> |
Component: | Cluster Version Operator | Assignee: | Over the Air Updates <aos-team-ota> |
Status: | CLOSED DUPLICATE | QA Contact: | liujia <jiajliu> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 4.3.z | CC: | aos-bugs, bleanhar, eparis, jiajliu, lmohanty |
Target Milestone: | --- | Keywords: | Upgrades |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-02-24 19:24:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
W. Trevor King
2020-04-20 22:26:22 UTC
Another symptom of this failure mode is that: $ oc adm upgrade --to=4.3.13 --force info: Cluster is already at version 4.3.13 makes it sound like the current version is 4.3.13, even if we're still stuck in preconditions on a 4.3.10 CVO. Haven't had time to get back around to this one. Adding UpcomingSprint *** Bug 1827166 has been marked as a duplicate of this bug. *** Comment 4 is still current. Comment 4 is still current. Comment 4 is still current. Comment 4 is still current. Continue tracking https://bugzilla.redhat.com/show_bug.cgi?id=1827166 here. The original issue in #1827166 seems a little different now(upgrade with upgradeable=false condition from v4.6 to v4.7) , current result is that the upgrade will hang on "downloading update" step instead of start actualy. # ./oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.6.9 True True 13m Unable to apply 4.7.0-0.nightly-2020-12-19-113414: could not download the update But it is still not expected result, which should block the Y-version upgrade directly and return meaningful msg. Following is the previous blocked result when upgrade with --to-image # ./oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.6.9 True True 8s Unable to apply 4.7.0-0.nightly-2020-12-20-055006: it may not be safe to apply this update I'm removing myself as the assignee. Anyone who wants this can take it. The reshuffle for bug 1822752 addressed this. Testing in a 4.11 nightly via cluster-bot (which clears the channel): $ oc get -o json clusterversion version | jq .status.desired { "image": "registry.build01.ci.openshift.org/ci-ln-98zz55b/release@sha256:ba95a556da080b887baa8801e1f020d97c985f52a4de52c1027e1a710738fd97", "version": "4.11.0-0.nightly-2022-02-23-185405" } Updating to an unsigned CI release [1]: $ oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e error: cannot refresh available updates: Reason: NoChannel Message: The update channel has not been configured. specify --allow-explicit-upgrade to continue with the update. $ oc adm upgrade --allow-explicit-upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e warning: The requested upgrade image is not one of the available updates.You have used --allow-explicit-upgrade for the update to proceed anyway Updating to release image registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e Waiting while the CVO mulls it over. Then: $ oc get -o json clusterversion version | jq '.status | {desired, conditionsFiltered: [.conditions[] | select(.type == "ReleaseAccepted")]}' { "desired": { "image": "registry.build01.ci.openshift.org/ci-ln-98zz55b/release@sha256:ba95a556da080b887baa8801e1f020d97c985f52a4de52c1027e1a710738fd97", "version": "4.11.0-0.nightly-2022-02-23-185405" }, "conditionsFiltered": [ { "lastTransitionTime": "2022-02-24T19:13:25Z", "message": "Retrieving payload failed version=\"\" image=\"registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e\" failure=The update cannot be verified: unable to locate a valid signature for one or more sources", "reason": "RetrievePayload", "status": "False", "type": "ReleaseAccepted" } ] } So great, we have status.desired still pointing at the old release (which, since bug 1822752, we're still reconciling), and the CVO complaining that it doesn't like the requested target. Forcing through the CVO's concerns: $ oc adm upgrade --force --allow-explicit-upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e warning: The requested upgrade image is not one of the available updates.You have used --allow-explicit-upgrade for the update to proceed anyway warning: --force overrides cluster verification of your supplied release image and waives any update precondition failures. Updating to release image registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e $ oc get -o json clusterversion version | jq .spec.desiredUpdate { "force": true, "image": "registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e", "version": "" } $ oc get -o json clusterversion version | jq '.status | {desired, conditionsFiltered: [.conditions[] | select(.type == "ReleaseAccepted")]}' { "desired": { "image": "registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e", "version": "4.11.0-0.ci-2022-02-24-025459" }, "conditionsFiltered": [ { "lastTransitionTime": "2022-02-24T19:15:33Z", "message": "Payload loaded version=\"4.11.0-0.ci-2022-02-24-025459\" image=\"registry.ci.openshift.org/ocp/release@sha256:49bae27d97ff71b14ff614de0242c0b229959130e6e0fe587ade92f56e8a035e\"", "reason": "PayloadLoaded", "status": "True", "type": "ReleaseAccepted" } ] } Hooray. [1]: https://amd64.ocp.releases.ci.openshift.org/releasestream/4.11.0-0.ci/release/4.11.0-0.ci-2022-02-24-025459 *** This bug has been marked as a duplicate of bug 1822752 *** |