Runbook
Operation stuck
Symptoms
Section titled “Symptoms”- HostOperation
Running, and the step count does not change.- Metric
pk_metal_operation_running_secondsshows the step and how long it runs.- Alert
PkMetalOperationStuck: one step runs for more than two hours.
Impact
Section titled “Impact”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.
Diagnose
Section titled “Diagnose”-
Read the step and its message.
Terminal window kubectl -n pk-metal describe hostoperation reboot-w-1-x7k2p -
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.
-
Abort the operation and give the reason.
Terminal window pk-metal abort --reason "drain hangs on w-1" pk-metal/reboot-w-1-x7k2p -
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
Verify
Section titled “Verify”The operation is Aborted. The Host shows no BLOCKED value from it.
If this does not work
Section titled “If this does not work”To run the change again, see Operation failed. Follow Collect diagnostics.