Day 2
Collect diagnostics
Put all facts about a fault in one directory, before you change anything.
Before you start
Section titled “Before you start”- You have the kubeconfig of the management cluster.
- For node facts: you have the talosconfig of the cluster. The operator publishes it as the Secret
<cluster>-talosconfig. - In the virtual lab, mise run lab:collect does all of this for you.
-
Make a directory.
Terminal window mkdir -p diag && cd diag -
Terminal window pk-metal status -o json > status.json -
Save all pk-metal objects.
Terminal window kubectl get metal -A -o yaml > objects.yaml -
Save the events of the operator namespace.
Terminal window kubectl -n pk-metal get events --sort-by=.lastTimestamp > events.txt -
Save the manager log.
Terminal window kubectl -n pk-metal logs deployment/pk-metal-manager --since=24h > manager.log -
For one node, save its kernel log and its services.
Terminal window talosctl -n 192.0.2.13 dmesg > node-w-1-dmesg.txt -
Read the serial console of the machine through the BMC (serial-over-LAN), if the node does not answer.
Read first
Section titled “Read first”- The
BLOCKEDcolumn and the note lines of pk-metal status. kubectl describeof the blocked object. Each condition has a reason and a message.