Gracefully Shutdown of a baremetal node configured with machineset in RHCOP 4

Solution Verified - Updated -

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • IPI/Baremetal

Issue

  • On shutting down a node on baremetal it gets powered on automatically by BareMetalHost using iDrac.

Resolution

  • Whenever a reboot or power off is triggered for a node the OpenShift Container Platform logs into the integrated Dell Remote Access Controller (iDrac) and issues a delete of the job queue.
  • To prevent the management of the number of Machine objects that matches the number of available BareMetalHost objects, add baremetalhost.metal3.io/detached annotation to the MachineSet object.
$ oc annotate machineset <machineset> -n openshift-machine-api 'baremetalhost.metal3.io/detached=''
  • If this does not work try to annotate the BareMetalHost.

  • First remove the label for MachineSet.

$ oc annotate machineset <machineset> -n openshift-machine-api baremetalhost.metal3.io/detached-''
  • Annotate the BareMetalHost.
$ oc annotate BareMetalHost <host name> baremetalhost.metal3.io/detached='' 

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.

Comments