Command · pk-metal
pk-metal hold
changes machinesneeds the cluster
pk-metal hold tells the operator to propose no new operation for one HostClaim.
It changes nothing on the machine.
Synopsis
Section titled “Synopsis”pk-metal hold [-n namespace] [--reason text] <claim> | <namespace>/<claim><claim>- The name of the claim. The default namespace is
default. You can also write<namespace>/<claim>.
| Flag | Default | Description |
|---|---|---|
-n<string> | default | Namespace of the claim. |
--reason<string> | - | Why, for the people who see the hold (stored on the claim). |
This command also accepts the global flags --kubeconfig and --context.
What it does
Section titled “What it does”- The command reads the claim.
- It sets the annotation
metal.platform-kit.org/holdon the claim. The value is the reason. - The operator proposes no new operation for the claim: no install, no reinstall, no BIOS change and no firmware change.
A hold does not change the operations that are there. Approve them, abort them or delete them yourself.
pk-metal status shows the claim with the mark (on hold).
Examples
Section titled “Examples”pk-metal hold --reason "disk swap, ticket 123" default/cp-2
claim default/cp-2 is on hold: the operator proposes no new operation for it.
Existing operations are not changed. Remove the hold with: pk-metal unhold default/cp-2
Objects
Section titled “Objects”| Object | Access | Purpose |
|---|---|---|
| HostClaim | get, list, patch | Sets the annotation metal.platform-kit.org/hold. |
Exit status
Section titled “Exit status”Related
Section titled “Related”- pk-metal unhold removes the hold.
- pk-metal top holds a claim with the key
h. - Approve, hold, retry and abort
- Put a host in maintenance takes a machine out of the hands of the operator for hardware work.
- Approval