Run logs
Where every argoctl run writes its log, what's in it, and what is always redacted.
Every argoctl command that does something writes one plain-text log per run: site validate, preflight, analyse, ironic install, ironic status, ironic uninstall, node-config, provision, create cluster, verify cluster, deploy inference, get inference and delete inference. (version and --help don't.)
Where
| Run as | Logs go to |
|---|---|
root (sudo argoctl ...) | /var/log/argoctl/ (directory root:root 0700) |
| another user | $XDG_STATE_HOME/argoctl/logs/, else ~/.local/state/argoctl/logs/ |
anyone, with ARGOCTL_LOG_DIR=<dir> | <dir> |
Root falls back to its state directory if /var/log/argoctl can't be written. Files are named after the UTC start time and the command, e.g. 20261130T101500Z-provision.log, so ls sorts them oldest first and the newest is:
sudo ls -t /var/log/argoctl | head -1Two runs started in the same second get ...-provision.log and ...-provision-2.log: runs never share or overwrite a file.
The path is the last line every command prints (on stderr, so --json output stays pure JSON): after a failure, below the error and its To fix steps; after a success, the same line, dimmed. When the log isn't in /var/log/argoctl the line says why:
Full log: ~/.local/state/argoctl/logs/20261130T101900Z-node-config.log (not root, so not in /var/log/argoctl)What's in a log
- the command line, argoctl's version, commit and target, start and end time (UTC), who ran it (user, uid,
sudofrom whom), host and pid; - the site file it read (path, sha256 and contents);
- everything the command printed on stdout and stderr;
- what the terminal doesn't show: every Redfish, Ironic and Kubernetes API request with its body, status, time and response (a poll with an unchanged answer is logged as
same response as last time); every command argoctl runs (docker compose,apt-get,ssh,helm,kubectl, ...) with its exit status, duration and full output; every Ansible task's result per node; SSH checks; downloads (URL, size, checksum); health checks as they change; what the preflight server served; - the result: exit status, duration and, on failure, the error and its To fix steps.
Colour codes are stripped, so less shows it cleanly. An abridged provision log:
argoctl run log (times are UTC)
command: argoctl provision /etc/argoctl/site.yaml --node gpu1
version: argoctl 1.0.0, commit 7c41e9a2d0b3, target x86_64-unknown-linux-musl
started: 2026-11-30T10:15:00Z
user: root (uid 0), via sudo from ubuntu
host: mgmt
pid: 4242
log: /var/log/argoctl/20261130T101500Z-provision.log
10:15:00.004 site /etc/argoctl/site.yaml (2214 bytes, sha256 0f5fdce7791c...):
version: 1
...
bmc:
username: admin
password_env: ARGOCTL_BMC_PASSWORD
10:15:00.310 redfish GET https://172.16.0.21/redfish/v1/Systems -> 200 in 38 ms
received: {"@odata.id":"/redfish/v1/Systems","Members":[{"@odata.id":"/redfish/v1/Systems/1"}],...}
10:15:01.002 ironic POST http://172.16.1.10:6385/v1/nodes -> 201 in 95 ms
sent: {"driver":"redfish","driver_info":{"redfish_address":"https://172.16.0.21","redfish_password":"[redacted]","redfish_username":"admin",...},"name":"gpu1",...}
10:24:35.420 ssh $ ssh -i /var/lib/argoctl/ssh/id_ed25519 -o BatchMode=yes ... ubuntu@172.16.1.21 'hostname; ...'
-> exit status: 0 after 0.3s
stdout:
gpu1
172.16.1.21/24
172.16.2.21/24
10:25:08.002 out ✓ provision of site dc1: 1 deployed (10m08s)
result: succeeded (exit status 0, after 10m08s)
finished: 2026-11-30T10:25:08ZWhat's never in a log
Secrets are replaced by [redacted]:
- By value: the BMC password (as soon as it's read), the keys in the admin kubeconfig, Ironic's API and database passwords, Hugging Face tokens and API keys, and each preflight run's per-node tokens. Wherever such a value shows up (request bodies, command output, error messages) it is redacted.
- By field: JSON keys and
key: value/key=valuetext named like a password, secret, token, private key or authorization, including JSON patches on such a path;Authorization:headers andBasic/Bearercredentials;user:password@in URLs; bcrypt hashes; PEM private keys; kubeconfigclient-key-dataandtoken; kubeadm join tokens wherever they appear; secret-looking flags on the command line. - By Ansible: tasks that handle a join token or the kubeconfig hide their output from argoctl entirely.
- Request headers (and so the HTTP basic auth argoctl sends) are never logged.
The names of where secrets are kept (password_env: ARGOCTL_BMC_PASSWORD, /etc/argoctl/ironic/api-password) are kept: they're what you need to debug.
Logs do contain IPs, MACs, host names and the site file, so files are 0600 and the directories argoctl creates 0700. If a log can't be written (full disk, permissions) the command warns once and carries on: logging never fails a command.
Housekeeping and sharing
Nothing is rotated or deleted. Remove old logs whenever you like, for example those older than 30 days:
sudo find /var/log/argoctl -name '*.log' -mtime +30 -deleteTo copy logs off mgmt, for example to attach to a support request, stream them through sudo tar (plain scp can't read root's 0600 files):
(umask 077; ssh ubuntu@<mgmt> 'sudo tar -C /var/log -czf - argoctl' > argoctl-logs-$(date -u +%Y%m%dT%H%M%SZ).tar.gz)