How to Upgrade OpenShift 4 between different minor versions via "oc" cli

Updated 2020-05-20T22:20:43+00:00

Issue

  • Upgrade from one minor version to another via oc cli tool using fast-4.x/y (or other) channels.

    NOTE: For fully supported releases (GA), you must use only fast or stable channels, more info here.


Using upgrade channels for 4.4 release
Upgrades from the latest OpenShift Container Platform 4.3.z release to 4.4 will be available at GA for clusters that have switched to the fast-4.4 channel. Telemetry data from early adopters in the fast-4.4 channel will be monitored to inform when the upgrade is promoted into the stable-4.4 channel. This monitoring is above and beyond our extensive enterprise-grade testing and may take several weeks.

Environment

  • OpenShift Container Platform
    • 4.1 -> 4.2
    • 4.2 -> 4.3
    • 4.3 -> 4.4

NOTE: This solution uses 4.x and 4.y versions as examples, please change them accordingly. For example, if upgrading from 4.1 to 4.2, then x=1 and y=2.

IMPORTANT: If for some reason you don't see the proper upgrade path, double check the channel modification step and/or raise a case asking support, never use oc adm upgrade --force to upgrade production environments unless it was recommended by Red Hat due to some specific workaround, it could leave the cluster completely unusable/broken.

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.