Skip to Content
CLI

argoctl site validate

Parse and check a site file, and print a summary of the site or every problem with its location and fix.

Synopsis

argoctl site validate <site-file> [--json]

Runs anywhere

No root, BMC password or network access needed. Run it on your laptop while writing the file, and on mgmt before every other command.

Description

Reads the site file, checks its shape and every rule in the reference, and prints either a summary of the site or every problem at once, each with its file:line:column and the fix.

It never reads the BMC password: the summary says whether the environment variable or file the site file points to is present on this machine.

Arguments and flags

Default
<site-file>Path to the site file.
--jsonPrint the result as JSON on stdout: valid, the summary, or problems (each with path, line, column, message, fix).

Examples

argoctl site validate /etc/argoctl/site.yaml
argoctl site validate site.yaml --json | jq '.problems[] | "\(.line): \(.message)"'

Output

A valid file:

$ argoctl site validate /etc/argoctl/site.yaml
✓ /etc/argoctl/site.yaml is valid: site dc1, 3 nodes (cp1, gpu1, gpu2)
  networks   oob 172.16.0.0/24, provisioning 172.16.1.0/24 (gateway 172.16.1.1), frontend 172.16.2.0/24 (gateway 172.16.2.1)
  mgmt       172.16.1.10 (provisioning), 172.16.0.10 (oob)
  BMC login  admin, password from $ARGOCTL_BMC_PASSWORD (set)
  OS image   ubuntu-24.04-server-cloudimg-amd64.img (sha256:04e8f2461a16...)
  SSH keys   1 extra key, plus mgmt's provisioning key
  Kubernetes control plane cp1, pods 10.244.0.0/16, Services 10.96.0.0/12

  NODE  BMC                   PROVISIONING                    FRONTEND
  cp1   https://172.16.0.11   172.16.1.11 3c:ec:ef:10:00:01   172.16.2.11 3c:ec:ef:20:00:01
  gpu1  https://172.16.0.21   172.16.1.21 3c:ec:ef:10:00:21   172.16.2.21 3c:ec:ef:20:00:21
  gpu2  https://172.16.0.22   172.16.1.22 3c:ec:ef:10:00:22   172.16.2.22 3c:ec:ef:20:00:22

An invalid one:

$ argoctl site validate site.yaml
✗ site.yaml has 3 problems
  site.yaml:11:11  networks.provisioning.cidr: 172.16.1.5/24 has host bits set; write 172.16.1.0/24
  site.yaml:27:5   bmc.password: passwords can't be written in the site file (value not shown)
                   To fix: use password_env: <VARIABLE> or password_file: /absolute/path
  site.yaml:52:44  nodes[1].nics.provisioning.ip: 172.16.1.11 is already used by nodes[0] (cp1)
  Full log: ~/.local/state/argoctl/logs/20261130T094102Z-site-validate.log (not root, so not in /var/log/argoctl)

A typo in a field name:

✗ site.yaml:46:7: unknown field `verfy_tls`, expected one of `address`, `verify_tls`, `system_id`

Exit codes

CodeMeaning
0The file is valid.
1The file has problems, or can't be read.
2Usage error.

Troubleshooting

SymptomLikely cause and fix
unknown field ...A typo or a field in the wrong section. The message lists the fields allowed there.
... has host bits setWrite the network address: 172.16.1.0/24, not 172.16.1.5/24.
... overlaps ...Two networks, or a network and the pod/Service range, share addresses. Change one, or set kubernetes.pod_cidr/service_cidr.
... is already used by ...Each IP may appear once across NICs, BMCs, mgmt and gateways.
bmc.password: passwords can't be written in the site fileMove the password to an environment variable or a root-only file and reference it with password_env or password_file.
Summary says password from $VAR (not set)Not an error for validate, but preflight, analyse and provision will need it: export VAR=..., and run them with sudo --preserve-env=VAR.

On this page