Troubleshooting OpenShift Container Platform 4.x: Machine Scaling

Solution Verified - Updated

Environment

  • Red Hat OpenShift Container Platform
    • 4.x

Issue

  • How do I debug a machine scaling issue within my OpenShift 4.x cluster?

Diagnostic Steps

Check the logs for an issue related to Machine scaling, they are in the machine-controller container of the machine-api-controllers on the openshift-machine-api project. For instance:

$ oc get pod -n openshift-machine-api
NAME                                              READY     STATUS    RESTARTS   AGE
cluster-autoscaler-operator-7f74bdf7f9-kbdbt      1/1       Running   0          3h
machine-api-controllers-5d7f7b954c-4rktq   7/7       Running   0          3h
machine-api-operator-7677d99bc-fsxmn              1/1       Running   0          3h
$ oc logs machine-api-controllers-5d7f7b954c-4rktq -c machine-controller -n openshift-machine-api

Other useful commands can be:

oc get machineset -n openshift-machine-api
oc describe machineset $clusterid-worker-eu-west-2a -n openshift-machine-api
oc get machine -n openshift-machine-api
oc describe machine $clusterid-worker-eu-west-2a-6fg9q -n openshift-machine-api
SBR
Components
Category

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.