How to know the version of CoreOS in OpenShift 4
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat CoreOS (RHCOS)
- 4
Issue
- How to verify what version of Red Hat CoreOS is running on each worker node.
Resolution
- Check the available nodes:
NAME STATUS ROLES AGE VERSION
master-0 Ready control-plane,master 4h20m v1.29.10+67d3387
master-1 Ready control-plane,master 4h20m v1.29.10+67d3387
master-2 Ready control-plane,master 4h20m v1.29.10+67d3387
worker-0 Ready worker 3h57m v1.29.10+67d3387
worker-1 Ready worker 3h57m v1.29.10+67d3387
worker-2 Ready worker 3h57m v1.29.10+67d3387
- Retrieve the desired information from the node (in this case worker-0):
$ oc debug node/worker-0.shrocp4upi416ovn.lab.upshift.rdu2.redhat.com -- chroot /host bash -c 'cat /etc/redhat-release; grep -E "OPENSHIFT_VERSION=|RHEL_VERSION=|^VERSION=" /etc/os-release; rpm -q kernel' 2>/dev/null
Red Hat Enterprise Linux CoreOS release 4.16
VERSION="416.94.202411201433-0"
OPENSHIFT_VERSION="4.16"
RHEL_VERSION=9.4
kernel-5.14.0-427.44.1.el9_4.x86_64
SBR
Product(s)
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.