Skip to content

Day 2

Put a host in maintenance

Stop all new proposals for one machine while you work on its hardware.

  • If the machine runs a node, drain it first or reboot it out with Reboot a node. Maintenance mode does not drain.
  • You know the Host name. It is the serial number in lower case.
  1. Set the annotation. The value is your reason.

    Terminal window
    kubectl annotate host simhw2288v5000398 metal.platform-kit.org/maintenance="replace DIMM B2"
  2. Make sure that the phase is Maintenance.

    Terminal window
    kubectl get host simhw2288v5000398
  3. Do the hardware work.

  4. Remove the annotation.

    Terminal window
    kubectl annotate host simhw2288v5000398 metal.platform-kit.org/maintenance-

An operation that runs continues to its end. The operator starts no new operation for the machine. The claim shows HostInMaintenance in the BLOCKED column.

After step 4, the phase returns to the phase before the maintenance.