Lab · reference
Lab troubleshooting
Start with mise run lab:status. The column BLOCKED shows what each Host, operation and endpoint waits for.
Then collect the logs with mise run lab:collect.
At a glance
Section titled “At a glance”- First command
- mise run lab:status
- Live view
- mise run lab:top
- Logs in one directory
- mise run lab:collect, into
.lab/diagnostics/ - Console of a machine
.lab/state/<machine>/console.log- Fleet log
.lab/fleet.log- Network
lab/net.sh status- Start again
- mise run lab:down, then mise run lab:reset
Symptoms
Section titled “Symptoms”| Symptom | Section |
|---|---|
lab:up stops with MISS lines |
The doctor stops lab:up |
| kind does not start | The kind cluster does not start |
| A ManagementEndpoint stays unreachable | Endpoints stay unreachable |
An operation fails at insertMedia |
The operation fails at this action |
An operation fails with gave up waiting for TalosNode |
A machine boots but does not check in |
| The console log has no text | A machine stays in its firmware |
lab:up refuses a new size |
The lab refuses a new size |
lab:up says that the operator moved |
The lab refuses to start after a pivot |
The doctor stops lab:up
Section titled “The doctor stops lab:up”Each check that fails prints MISS and a line fix:.
- Do what the
fix:line says. - Run
mise run lab:upagain. It continues where it stopped.
The checks are in what the doctor checks.
The kind cluster does not start
Section titled “The kind cluster does not start”- cgroup v1
- Kubernetes 1.35 and later need cgroup v2. Boot the workstation with
systemd.unified_cgroup_hierarchy=1. As an alternative, copylab/kind.yaml, setimage: kindest/node:v1.34.0in the copy, and setPK_LAB_KIND_CONFIGto the copy. cannot assign requested addresslab/kind.yamlpublishes the media port on10.77.0.1. This address exists only while the lab network is up. Runmise run lab:up, or runlab/net.sh upbeforelab/lab.sh cluster.- The node container does not run
- After a reboot of the workstation,
lab:upstarts the node container again. If Docker cannot start it, run mise run lab:down, then mise run lab:up.
Endpoints stay unreachable
Section titled “Endpoints stay unreachable”The operator in kind must get to 10.77.0.1:8441 and up on the workstation.
-
Show the network and its rules.
Terminal window lab/net.sh statusA line with
MISSINGshows the part that is not there. -
Find your firewall in this table, and do the fix.
Firewall Fix firewalldA firewall-cmd --reloadremoves the runtime setting. Runmise run lab:upagain, or runsudo firewall-cmd --zone=trusted --add-interface=pkbr0.Your own nftablesrulesetlab/net.sh upprints thenftcommands that accept the lab traffic. The script does not find reject rules at the end of a chain: readsudo nft list ruleset.ufwRun sudo ufw allow in on pkbr0. -
Make sure that the BMC answers.
Terminal window curl -sk https://10.77.0.1:8441/redfish/v1 | jq .RedfishVersion
If the BMC of a real machine does not answer, use BMC unreachable.
An operation fails at insertMedia
Section titled “An operation fails at insertMedia”The simulated BMC downloads two images from the operator: the installer and the node configuration.
The operator downloads the installer from factory.talos.dev before it proposes the install.
| Cause | Fix |
|---|---|
| The workstation cannot get to the media port. | Do the steps below. |
The operator cannot get to the factory. The install is not proposed, and the factory BootAsset is not Ready. |
Do the steps below. |
-
Make sure that the workstation can get to
https://factory.talos.dev. -
Make sure that the media port answers. The answer
404is correct.Terminal window curl -k https://10.77.0.1:30443/ -
If a proxy is set, make sure that
NO_PROXYcontains10.77.0.0/24. See Behind a proxy. -
Try the operation again with pk-metal retry.
See also Operation failed.
A machine boots but does not check in
Section titled “A machine boots but does not check in”The operation fails with gave up waiting for TalosNode ... to check in. See AwaitCheckIn.
-
Read the console of the machine.
Terminal window tail -f .lab/state/node-2/console.log -
If the machine is in maintenance mode, the configuration medium did not get to it. Examine its addresses.
Terminal window talosctl -n 10.77.0.12 --insecure get addresses -
Make sure that the machines can get to the outside. Without NAT or DNS, Talos cannot pull its installer or set its clock.
A machine stays in its firmware
Section titled “A machine stays in its firmware”The console log contains only control sequences and no text. The firmware-hang guard power cycles such a machine after 90 seconds, up to three times for each power-on.
-
Look for the guard in the fleet log.
Terminal window grep 'FIRMWARE HANG' .lab/fleet.log -
If the machine stopped a fourth time, the guard does not act again. Examine the machine in mise run lab:top.
-
Try the failed operation again with pk-metal retry.
The lab refuses a new size
Section titled “The lab refuses a new size”The fleet reads its file one time, when it starts. You cannot change the size of a lab that runs.
mise run lab:down && mise run lab:resetPK_LAB_NODES=3cp+2w mise run lab:upThe lab refuses to start after a pivot
Section titled “The lab refuses to start after a pivot”After mise run lab:pivot, the operator runs on the first Talos cluster and kind is gone.
The disk of node-1 holds the moved operator. A new kind cluster with an operator would put two operators on the same machines.
- Run mise run lab:down.
- Run mise run lab:reset. It wipes the disks and removes the mark file
.lab/pivoted. - Start the lab again.
Examine a machine
Section titled “Examine a machine”Talos has no shell and no SSH. Use talosctl. mise run lab:kubeconfig writes the talosconfig.
export TALOSCONFIG=$PWD/.lab/talosconfig| Command | Shows |
|---|---|
talosctl -n 10.77.0.12 dashboard |
Load, the kernel log and the state of the services |
talosctl -n 10.77.0.12 dmesg |
The kernel log |
talosctl -n 10.77.0.12 services |
The services and their state |
talosctl -n 10.77.0.12 logs kubelet |
The log of one service |
talosctl -n 10.77.0.12 get addresses |
The addresses. Also: get links, get routes, get disks |
talosctl -n 10.77.0.12 --insecure get disks |
The disks of a machine in maintenance mode |
To examine the management cluster, use the kubeconfig of the lab:
export KUBECONFIG=$PWD/.lab/kubeconfigkubectl get metalkubectl describe host pklab0002The state of each simulated BMC is at the state endpoint.
Diagnostics
Section titled “Diagnostics”mise run lab:collect writes these files to .lab/diagnostics/.
The directory contains no Secret values, no kubeconfig and no disks. You can attach it to a bug report.
| File | Contents |
|---|---|
network.txt |
The output of lab/net.sh status |
fleet.log |
The log of the simulated fleet |
machines/<machine>/console.log |
The serial console of each machine |
status.txt |
The output of pk-metal status |
get.txt |
All objects of the operator, as a list |
objects.yaml |
All objects of the operator, as YAML |
events.txt |
The events of all namespaces |
operator-describe.txt |
The Deployment, the pods and the other objects in the namespace pk-metal |
secrets-list.txt |
The names and types of the Secrets. No values. |
operator.log, operator-previous.log |
The log of the manager, and the log before its last restart |
imager.log |
The log of the installer builds for one-slot BMCs. It does not contain the machine config. |
workload.txt |
The nodes and pods of the Talos cluster |
For a real site, see Collect diagnostics.
Start again
Section titled “Start again”-
Stop the lab and delete the disks.
Terminal window mise run lab:down && mise run lab:reset -
Start the lab.
Terminal window mise run lab:up