Day 2
Release a host
Free one machine so that another claim can use it.
Before you start
Section titled “Before you start”- You know the claim name and namespace.
- The node of the machine is not needed. See Remove a node for the effect on the cluster.
What happens
Section titled “What happens”| The machine | The release |
|---|---|
| Was never installed by this claim | Powered off without a question. |
| Runs a node that answers | One operation: drain, etcd leave, reset, delete the Kubernetes node, power off. It waits for approval. |
| Ran a node that does not answer | etcd member removed by ID, Kubernetes node deleted, power off. The operator marks the Host as not wiped. |
-
Delete the claim.
Terminal window kubectl -n default delete hostclaim w-2The Host goes to
Releasing. -
Approve the release operation.
Terminal window pk-metal approve -
Monitor the Host.
Terminal window kubectl get host simhw2288v5000398 -wThe phase goes from
ReleasingtoAvailable.
Verify
Section titled “Verify”The Host is Available and has no claim.
If it fails
Section titled “If it fails”| What you see | Go to |
|---|---|
Claim blocked on ReleaseFailed |
Operation failed. Retry the release. |
Host DiskWiped=False |
Disk not wiped |
Related
Section titled “Related”- Release and reuse, HostClaim
- mise run lab:release runs a release in the lab.