Skip to content

Runbook

Operation stuck

HostOperation
Running, and the step count does not change.
Metric
pk_metal_operation_running_seconds shows the step and how long it runs.
Alert
PkMetalOperationStuck: one step runs for more than two hours.

The machine can be in the middle of a change: media mounted, a boot override set, the node cordoned. No other operation starts on the Host.

  1. Read the step and its message.

    Terminal window
    kubectl -n pk-metal describe hostoperation reboot-w-1-x7k2p
  2. Examine the machine through the BMC or the node console. Find if the step can still finish.

If the step can finish, correct the cause and wait. Each step has its own deadline and fails at the end of it.

If the step cannot finish, stop the operation.

  1. Abort the operation and give the reason.

    Terminal window
    pk-metal abort --reason "drain hangs on w-1" pk-metal/reboot-w-1-x7k2p
  2. Wait for the phase Aborted. The last step lists what the abort undid: media, boot override, cordon.

    Terminal window
    kubectl -n pk-metal get hostoperation reboot-w-1-x7k2p

The operation is Aborted. The Host shows no BLOCKED value from it.

To run the change again, see Operation failed. Follow Collect diagnostics.