CLI
argoctl node-config
Print the per-node network configuration and config drive argoctl generates from the site file.
Synopsis
argoctl node-config <site-file> [--node <name>]... [--json] [--ssh-key <path>]Description
Nodes are installed over virtual media and sites can't be counted on for DHCP, so a static network configuration is the only way a node gets an IP: for the deploy agent while it writes the disk, and for the installed OS. argoctl builds both from the site file, and this command shows them:
- Deploy agent network config: an OpenStack
network_data.jsonwith the node's provisioning NIC (matched by MAC), its static IP and netmask, the provisioning gateway and DNS. Ironic writes it into the node's virtual-media ISO, and the agent applies it at boot, so it reaches Ironic atmgmt.provisioning_ipwithout DHCP. - Config drive for the installed OS:
meta_data(hostname = node name, public keys = the site file'sssh_authorized_keysplus mgmt's provisioning key),user_data(cloud-config: hostname, SSH keys only, root login off) andnetwork_data(every NIC from the site file, static, with at most one default route; see routing). The agent writes it to a small partition at the end of the disk; cloud-init applies it on first boot.
Each node's settings are checked against the site file (every NIC with its MAC, IP and netmask; gateways inside their networks; at most one default route; hostname; SSH keys) before they're used or printed.
It needs no root, BMC password or Ironic. Run as root on mgmt, the output includes mgmt's provisioning key.
Flags
| Flag | Default | |
|---|---|---|
<site-file> | Path to the site file. | |
--node <name> | all | Only these nodes (repeat the flag). |
--json | Print the settings as JSON on stdout. | |
--ssh-key <path> | mgmt's key | Off mgmt, add this public key in place of mgmt's provisioning key. |
Examples
argoctl node-config /etc/argoctl/site.yaml
argoctl node-config site.yaml --node gpu1 --json
argoctl node-config site.yaml --ssh-key ~/.ssh/id_ed25519.pub # on a laptopOutput
$ sudo argoctl node-config /etc/argoctl/site.yaml --node gpu1
✓ node settings for site dc1: 1 node, checked against the site file
gpu1
deploy agent NIC 3c:ec:ef:10:00:21 172.16.1.21/24 gateway 172.16.1.1 DNS 172.16.1.53
installed OS hostname gpu1
NIC 3c:ec:ef:10:00:21 172.16.1.21/24 (provisioning)
NIC 3c:ec:ef:20:00:21 172.16.2.21/24 (frontend) default route via 172.16.2.1
DNS 172.16.1.53
SSH keys for ubuntu: argoctl@mgmt (mgmt's provisioning key), ops@example
Full log: /var/log/argoctl/20261130T104801Z-node-config.logExit codes
| Code | Meaning |
|---|---|
0 | Settings generated and checked for every selected node. |
1 | The site file is invalid, or a check failed. |
2 | Usage error. |
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
no SSH key: not root on mgmt | Run it as root on mgmt, or pass --ssh-key <public key file>. |
| A node boots but has no network | Compare its MACs here with the BMC's (argoctl provision lists them on a mismatch). |