Bug 1870193 - Upgrade from 4.4.0-0.nightly-2020-07-30-212136 to 4.4.16
Summary: Upgrade from 4.4.0-0.nightly-2020-07-30-212136 to 4.4.16
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 4.4
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Over the Air Updates
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On: 1836198 1839933 1854311 1854312
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-19 13:54 UTC by Andreas Karis
Modified: 2023-12-15 18:56 UTC (History)
28 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1836198
Environment:
Last Closed: 2020-08-25 17:30:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5245151 0 None None None 2020-08-24 13:25:33 UTC

Comment 3 W. Trevor King 2020-08-19 17:00:08 UTC
Blindly updating with --force is rarely a good idea, because --force overrides a series of cluster-side guards, and you usually want those guards protecting you [1].  If you want to initiate an update to a release that is not one of your ClusterVersion status.availableUpdates, it is better to use [2]:

  $ oc adm upgrade --allow-explicit-upgrade --to-image $BY_DIGEST_PULLSPEC

If the cluster then complains about a failed in-cluster update guard, you may consider using --force to waive that failed guard, but it will also waive any subsequent guard failures on that update.  So --force is definitely not something you want to use without very carefully reviewing the update in question and taking responsibility for the guards you are waiving.

[1]: https://github.com/openshift/oc/pull/387
[2]: https://docs.openshift.com/container-platform/4.5/updating/updating-restricted-network-cluster.html#update-restricted_updating-restricted-network-cluster

Comment 9 Scott Dodson 2020-08-24 14:00:37 UTC
You can only use versions (aka: --to 4.4.17) when you're somewhere on the graph and 4.4.17 is a valid upgrade path. Since they're running a nightly that's not on the upgrade graph they'll need to specify --allow-explicit-upgrade and --to-image options along with the image pullspec with digest. The following is correct command to run in order to upgrade to 4.4.17.

# oc adm upgrade --allow-explicit-upgrade --to-image quay.io/openshift-release-dev/ocp-release@sha256:624e84b5d22cb865ee1be32aa6e3feea99917c6081f7a9c5b1185fc9934d23f3

Comment 10 Andreas Karis 2020-08-24 14:19:45 UTC
Thanks!

Comment 11 W. Trevor King 2020-08-25 17:13:21 UTC
Not entirely clear what's left to do here, but the team email is not an assigned dev, so moving this back to NEW.

Comment 12 Scott Dodson 2020-08-25 17:30:30 UTC
There's no defect described here, just uncertainty regarding a one-off out of process customer engagement. Closing this bug.


Note You need to log in before you can comment on or make changes to this bug.