Bug 2051267
Summary: | When 'oc adm upgrade --to-image ...' rejects an update as not recommended, it should mention --allow-explicit-upgrade | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | W. Trevor King <wking> |
Component: | oc | Assignee: | Maciej Szulik <maszulik> |
oc sub component: | oc | QA Contact: | Evgeni Vakhonin <evakhoni> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | ehoxha, evakhoni, jiajliu, lmohanty, mfojtik, vlaad, wking, wlewis, yanyang, yunjiang |
Version: | 4.10 | Keywords: | Regression |
Target Milestone: | --- | ||
Target Release: | 4.10.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 2044140 | Environment: | |
Last Closed: | 2022-08-31 12:34:13 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: | 2044140 | ||
Bug Blocks: |
Description
W. Trevor King
2022-02-06 21:58:53 UTC
reproduced in https://bugzilla.redhat.com/show_bug.cgi?id=2044140#c12 pre-merging - verifying: Client Version: 4.10.0-pr1052 Server Version: 4.10.0-rc.6 *case: source version not in the graph: #oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 error: cannot refresh available updates: Reason: VersionNotFound Message: Unable to retrieve available updates: currently reconciling cluster version 4.10.0-rc.6 not found in the "stable-4.10" channel specify --allow-explicit-upgrade to continue with the update. *case: no targets, --allow-not-recommended applied #oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 --allow-not-recommended error: no recommended or conditional updates, specify --allow-explicit-upgrade to continue with the update or wait for new updates to be available. *case: no targets, --allow-not-recommended not applied: #oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 error: no recommended updates, specify --allow-explicit-upgrade to continue with the update or wait for new updates to be available. *case: some targets, requested != targets #oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 error: the update is not one of the possible targets: 4.10.0-0.nightly-2022-02-26-230022. specify --allow-explicit-upgrade to continue with the update. *case: some targets, requested != targets, --allow-not-recommended applied #oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 --allow-not-recommended error: the update is not one of the possible targets: 4.10.0-0.nightly-2022-02-26-230022. specify --allow-explicit-upgrade to continue with the update. so far so good. now lets see no "specify --allow-explicit-upgrade" when it shouldn't be. *case some targets, requested != targets, without --to-image #oc adm upgrade --to 4.9.19 error: the update is not one of the possible targets: 4.10.0-0.nightly-2022-02-26-230022. specify --to-image to continue with the update. *case some targets, requested != targets, with -to-image, --allow-explicit-upgrade #oc adm upgrade --to-image registry.ci.openshift.org/ocp/release@sha256:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 --allow-explicit-upgrade 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:f1b711b1f476d021d0bdc2b88cd28d5b92e4459b49c787db2129c6c1aaf26652 as expected. already verified above in https://bugzilla.redhat.com/show_bug.cgi?id=2051267#c1 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 (Important: OpenShift Container Platform 4.10.30 bug fix and security 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-2022:6133 |