Skip to content

Day 2

Collect diagnostics

Put all facts about a fault in one directory, before you change anything.

  1. Make a directory.

    Terminal window
    mkdir -p diag && cd diag
  2. Save the status of the fleet.

    Terminal window
    pk-metal status -o json > status.json
  3. Save all pk-metal objects.

    Terminal window
    kubectl get metal -A -o yaml > objects.yaml
  4. Save the events of the operator namespace.

    Terminal window
    kubectl -n pk-metal get events --sort-by=.lastTimestamp > events.txt
  5. Save the manager log.

    Terminal window
    kubectl -n pk-metal logs deployment/pk-metal-manager --since=24h > manager.log
  6. For one node, save its kernel log and its services.

    Terminal window
    talosctl -n 192.0.2.13 dmesg > node-w-1-dmesg.txt
  7. Read the serial console of the machine through the BMC (serial-over-LAN), if the node does not answer.