Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Easily upgrade hosted OpenShift Virtualization clusters on hosted control planes

July 25, 2024
Nicholas Schuetz
Related topics:
Hybrid CloudVirtualization
Related products:
Red Hat OpenShift

Share:

    One of the greatest benefits to OpenShift hosted control planes (HCP) is that it makes Red Hat OpenShift operational management easier through reduced upgrade complexity and downtime. For example, in a traditional situation you’d be upgrading both the control plane and the workers. With HCP, you’re just upgrading the workers in most cases, thus reducing the risk and turnaround time normally associated with standalone installations. For a visual representation of the difference between a standalone setup and HCP, see Figure 1.

    A diagram comparing the standalone control plane vs. hosted control plane.
    Figure 1: Standalone control plane vs. hosted control plane.

    In this article I’m going to run through upgrading a decoupled worker/node cluster (or NodePool in this case) hosted on HCP and point out some of the current caveats and things to look out for.

    For this demonstration we’ll be starting out with an OpenShift 4.14.24 bare metal “management cluster” or “hosting cluster” and utilizing the OpenShift Virtualization (KubeVirt) cluster (KubeVirt provider in HyperShift speak) that we provisioned as a “hosted cluster”. 

    Just for context, I did the provisioning of the “hosted cluster” via the command line like this: 

    $ hcp create cluster kubevirt \
    --name cluster1 \
    --release-image quay.io/openshift-release-dev/ocp-release:4.14.24-multi \
    --node-pool-replicas 3 \
    --pull-secret  /path/to/pull-secret.txt \
    --memory 8Gi \
    --cores 2

    Let’s begin.

    We’ll be utilizing the OpenShift Advanced Cluster Management UI. Our HCP clusters are displayed here and we’ll see that the current version of our KubeVirt cluster is 4.14.24 and there’s an upgrade available. See Figure 2.

    A screenshot of the KubeVirt hosted cluster web user interface showing that an upgrade is available.
    Figure 2: Current version of KubeVirt hosted cluster in web user interface.

    You can also see the new cluster version from the command line by getting the HostedCluster object in the clusters namespace like so:

    $ oc get hostedcluster cluster1 -n clusters

    Which would result in an output like this:

    NAME       VERSION   KUBECONFIG                  PROGRESS    AVAILABLE   PROGRESSING   MESSAGE
    cluster1   4.14.24    cluster1-admin-kubeconfig   Completed   True        False         The hosted control plane is available

    If you want a more in-depth look at the HostedCluster object you can dump it with a YAML output:

    oc get hostedcluster cluster1 -n clusters -o yaml

    Now going back to the web console UI, if we select the Upgrade available link you’ll see an interface similar to the following (Figure 3).

    Web user interface upgrade versions available screen
    Figure 3: Upgrade versions available.

    From here we can select the version of OpenShift we’d like to upgrade to from the drop down menu. In our case we’ll be upgrading to the latest version of the 4.14 release which at the time of this writing is 4.14.25.

    Before updating the OpenShift hosted cluster to a specific version of OpenShift, always read through the release notes and reference the Multi Cluster Engine (MCE) support matrix. 

    It’s also possible to view the OpenShift versions that the HyperShift Operator installed and running currently supports. For example:

    $ oc describe configmap supported-versions -n hypershift
    Name:         supported-versions
    Namespace:    hypershift
    Labels:       hypershift.openshift.io/supported-versions=true
    Annotations:  <none>
    Data
    ====
    supported-versions:
    ----
    {"versions":["4.14","4.13","4.12"]}
    BinaryData
    ====
    Events:  <none>

    If you do want to upgrade to a higher OpenShift version than the listed supported versions, then an MCE upgrade would be required.

    Alternatively, if you’d prefer to do the upgrade from the command line you can update the cluster spec like so:

    $ oc -n NAMESPACE patch HostedCluster HCNAME --patch '{"spec":{"release":{"image": "EXAMPLE"}}}' --type=merge

    Note that you will have replace the NAMESPACE, HCNAME, and EXAMPLE with the appropriate values in our case here it will look something like this:

    $ oc -n clusters patch HostedCluster cluster1 --patch '{"spec":{"release":{"image": "quay.io/openshift-release-dev/ocp-release:4.14.25-multi"}}}' --type=merge

    Once the update is in progress you will see something like this in the HCP UI (Figure 4).

    Upgrade in progress Hosted Control Plane User Interface screen
    Figure 4: Upgrade in progress.

    What’s happening here is that HCP sent the upgrade request to the hosted cluster and that cluster (cluster1) is now reporting back it’s status to this single pane of glass which is the Advanced Cluster Manager (ACM) console. This is one instance but it could be automated to upgrade and monitor at scale in the right hands all from this single interface.

    You might also be asking yourself, wait, the hosting cluster is at 4.14.24, so how is it possible to run a newer 4.14.25 hosted cluster? It is possible and does work. That is because the “hosting” cluster is completely independent of the “hosted” cluster. That’s a one of the beautiful things about of hosted control planes: the ability to isolate clusters yet maintain them conveniently and effectively.

    When the upgrade is complete you’ll see that your screen is updated and simply presented like so (Figure 5).

    Upgrade completed in web user interface
    Figure 5: Upgrade completed.

    And if you dive into the console of cluster1 itself you’ll see the following (Figure 6).

    Update history in web user interface
    Figure 6: Cluster update history.

    Simple as that. A no hassle update of an OpenShift cluster in minutes all from a centralized location. 

    Thank you HyperShift Operator!

    Helpful resources

    • Support Matrix for MCE

    • Knowing the HyperShift API may be of some use. I would highly recommend looking through it and understanding what API resources are available from a HyperShift perspective.

    OSZAR »
    Last updated: August 13, 2024

    Related Posts

    • Run OpenShift sandboxed containers with hosted control planes

    • Ensure a scalable and performant environment for ROSA with hosted control planes

    • Enable OpenShift Virtualization on Red Hat OpenShift

    • OpenShift Virtualization for vSphere admins: Introduction to network configurations

    • How to switch Red Hat OpenShift Virtualization from hardware virtualization to software emulation

    Recent Posts

    • LLM Compressor: Optimize LLMs for low-latency deployments

    • How to set up NVIDIA NIM on Red Hat OpenShift AI

    • Leveraging Ansible Event-Driven Automation for Automatic CPU Scaling in OpenShift Virtualization

    • Python packaging for RHEL 9 & 10 using pyproject RPM macros

    • Kafka Monthly Digest: April 2025

    What’s up next?

    Explore how the migration toolkit for containers (MTC) paves the way for seamless migration of application workloads from ROSA classic to ROSA HCP clusters, right down to the namespace level in this Learning Path.

    Start the activity
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue

    OSZAR »