Machine API Returns an "unknown instance type" error for a supported AWS instance in a MachineSet

Solution Verified - Updated -

Issue

  • The machine-controller is emitting an unknown instance type, is my instance supported?
  • The machine-controller is emitting an unknown instance type error even though the AWS instance is supported:

    $ oc logs -l k8s-app=controller -n openshift-machine-api -c machine-controller
    [...]
    I0112 14:51:10.117191       1 controller.go:59] controllers/MachineSet "msg"="Reconciling" "machineset"="XXX" "namespace"="openshift-machine-api"
    E0112 14:51:10.117604       1 controller.go:115] Unable to set scale from zero annotations: unknown instance type: %sm6i.xlarge
    E0112 14:51:10.117622       1 controller.go:116] Autoscaling from zero will not work. To fix this, manually populate machine annotations for your instance type: %v[machine.openshift.io/vCPU machine.openshift.io/memoryMb machine.openshift.io/GPU]
    I0112 14:51:10.117792       1 recorder.go:104] controller-runtime/manager/events "msg"="Warning"  "message"="Failed to set autoscaling from zero annotations, instance type unknown" "object"={"kind":"MachineSet","namespace":"openshift-machine-api","name":"XXX","uid":"XXX","apiVersion":"machine.openshift.io/v1beta1","resourceVersion":"121131434"} "reason"="FailedUpdate"
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.x
  • Red Hat OpenShift Services in AWS (ROSA) 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content