argoctl ironic install
Install or repair Ironic on the management server in Docker Compose, download the deploy agent and OS image, and check it's healthy.
Synopsis
sudo argoctl ironic install <site-file> [flags]Description
Sets up Ironic, the service that enrols the nodes and installs their OS, on mgmt. Ironic runs standalone in Docker Compose with host networking. The command installs Docker and Docker Compose first if they're missing.
It is idempotent: every step checks first and says whether it changed anything, so re-running it on a healthy mgmt changes nothing and takes a few seconds. Run it again to repair a broken install, or after changing the site file's os_image or mgmt addresses.
What it installs
| Step | What | On re-run |
|---|---|---|
| Docker | docker.io and docker-compose-v2 from Ubuntu's archive, if docker / docker compose don't work | kept |
| Secrets | /etc/argoctl/ironic/ (0700): the Ironic API password for user argoctl and its bcrypt htpasswd, the MariaDB password. Random, generated once, never printed. | kept |
| SSH key | /var/lib/argoctl/ssh/id_ed25519: mgmt's provisioning key. provision puts its public half on every node. | kept |
| Deploy agent | ironic-python-agent kernel and initramfs, pinned by sha256 | kept if the checksum matches |
| OS image | The site file's os_image.url, checked against os_image.checksum | kept if the checksum matches |
| Compose | /etc/argoctl/ironic/compose.yaml, generated from the site file and the image pins in the binary, then docker compose up -d | only changed containers are recreated |
| Health | The API answers; a conductor is alive with the redfish driver; httpd serves the agent on the BMC-facing URL and the OS image on the provisioning URL, with the right sizes | checked every run |
Everything Ironic stores is under /var/lib/argoctl/ironic/ (shared/: images, built ISOs, deploy logs; mariadb/: the database).
The containers
Project argo-ironic, host networking (Ironic hands out URLs on mgmt's own addresses):
| Service | Listens | Role |
|---|---|---|
ironic | mgmt.provisioning_ip:6385 | API and conductor in one process. Driver redfish, boot redfish-virtual-media, deploy direct, no DHCP, no inspection, no automated cleaning. HTTP basic auth. |
httpd | *:6180 | Serves the deploy agent, the OS image and the per-node ISOs Ironic builds. |
mariadb | 127.0.0.1:3306 | Ironic's database. |
Images are pinned by digest. Who fetches what: BMCs download each node's virtual-media ISO from http://<mgmt.oob_ip>:6180/redfish/… (the provisioning IP if the site has no mgmt.oob_ip). The deploy agent, on the provisioning network, calls Ironic at http://<mgmt.provisioning_ip>:6385 and downloads the OS image from http://<mgmt.provisioning_ip>:6180/images/…. Nodes need no internet access to be installed.
Image download source
How each node gets the OS image onto its disk:
local(default): Ironic on mgmt downloads the image once, converts it to raw and serves it; the deploy agent streams it straight to disk. Node RAM doesn't limit it. mgmt keeps the raw copy (a few GiB) under/var/lib/argoctl/ironic/shared.http: the deploy agent downloads the image into the node's RAM and converts it there. The agent's RAM disk is half the node's memory, so the ~600 MB Ubuntu cloud image needs nodes with about 4 GiB of RAM or more.
Without --image-download-source, the command asks when it runs in a terminal (Enter keeps the value shown: what's installed, or local on a first install):
Image download source (local, http) [local]:With no terminal (a script, or ssh mgmt 'sudo argoctl ...' without -t) it doesn't ask: it keeps what's installed, or uses local. Changing it recreates the Ironic container (the database and nodes are kept) and applies to the next deploy.
Flags
| Flag | Default | |
|---|---|---|
<site-file> | Path to the site file. | |
--image-download-source <local|http> | installed value, else local | See above. |
--json | Print the report as JSON on stdout. | |
--health-timeout <d> | 10m | How long to wait for Ironic to become healthy. |
Examples
sudo argoctl ironic install /etc/argoctl/site.yaml
sudo argoctl ironic install /etc/argoctl/site.yaml --image-download-source localOutput
On a bare mgmt the first run takes a few minutes, mostly downloads (about 1.5 GB of container images, the ~320 MB agent and the ~600 MB Ubuntu image). Running it again:
$ sudo argoctl ironic install /etc/argoctl/site.yaml
==> ironic install /etc/argoctl/site.yaml: site dc1; Ironic API on http://172.16.1.10:6385, images served on http://172.16.1.10:6180 (BMCs: http://172.16.0.10:6180)
ironic ok: Docker 29.1.3, Compose 2.40.3
ironic ok: Ironic API login (argoctl) and database password in /etc/argoctl/ironic
ironic ok: provisioning SSH key /var/lib/argoctl/ssh/id_ed25519
ironic ok: deploy agent (sha256 matches)
ironic ok: OS image os-sha256-04e8f2461a16-ubuntu-24.04-server-cloudimg-amd64.img (checksum matches)
ironic ok: image download source local
ironic ok: containers httpd (running), ironic (running), mariadb (running)
✓ Ironic is installed and healthy: nothing to change (2s)
ok API http://172.16.1.10:6385 answers (API up to 1.115)
ok conductor alive: 172.16.1.10
ok redfish driver enabled (idrac, ipmi, manual-management, redfish)
ok deploy agent kernel (BMC network) http://172.16.0.10:6180/images/ironic-python-agent.kernel (15 MB)
ok deploy agent ramdisk http://172.16.1.10:6180/images/ironic-python-agent.initramfs (324 MB)
ok OS image http://172.16.1.10:6180/images/os-sha256-04e8f2461a16-ubuntu-24.04-server-cloudimg-amd64.img (593 MB)
Full log: /var/log/argoctl/20261130T103010Z-ironic-install.logExit codes
| Code | Meaning |
|---|---|
0 | Ironic is installed and healthy. |
1 | A step or a health check failed. |
2 | Usage error. |
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
must run as root | sudo argoctl ironic install <site-file> |
... is not an address of this machine | Not on mgmt, or the site file's mgmt addresses are wrong: ip -br addr. |
install Docker: ... | mgmt can't reach Ubuntu's archive: sudo apt-get update. |
download ...: ... expected sha256:... | The image at os_image.url doesn't match os_image.checksum: check the checksum against the image's SHA256SUMS. |
docker compose up: ... pull ... | mgmt can't reach quay.io or Docker Hub (or is rate limited): curl -sI https://quay.io/v2/. |
conductor: no conductor is alive yet after the timeout | sudo docker compose -p argo-ironic logs --tail 100 ironic (database not reachable? see the mariadb logs). |
| Image health checks fail | sudo docker compose -p argo-ironic logs httpd; is port 6180 taken? sudo ss -ltnp 'sport = :6180'. |
... password is lost | /etc/argoctl/ironic/auth/mariadb/password was deleted but the database exists: sudo argoctl ironic uninstall --purge, then install again (provision then needs --reimage for nodes already installed). |
Deploys fail with No space left on device | Nodes too small for the http download source: sudo argoctl ironic install <site-file> --image-download-source local, then provision again. |
Related
argoctl ironic status,argoctl ironic uninstallargoctl provision: the next step.