Skip to Content
CLI

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

StepWhatOn re-run
Dockerdocker.io and docker-compose-v2 from Ubuntu's archive, if docker / docker compose don't workkept
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 agentironic-python-agent kernel and initramfs, pinned by sha256kept if the checksum matches
OS imageThe site file's os_image.url, checked against os_image.checksumkept 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 -donly changed containers are recreated
HealthThe 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 sizeschecked 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):

ServiceListensRole
ironicmgmt.provisioning_ip:6385API and conductor in one process. Driver redfish, boot redfish-virtual-media, deploy direct, no DHCP, no inspection, no automated cleaning. HTTP basic auth.
httpd*:6180Serves the deploy agent, the OS image and the per-node ISOs Ironic builds.
mariadb127.0.0.1:3306Ironic'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

FlagDefault
<site-file>Path to the site file.
--image-download-source <local|http>installed value, else localSee above.
--jsonPrint the report as JSON on stdout.
--health-timeout <d>10mHow 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 local

Output

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.log

Exit codes

CodeMeaning
0Ironic is installed and healthy.
1A step or a health check failed.
2Usage error.

Troubleshooting

SymptomLikely cause and fix
must run as rootsudo argoctl ironic install <site-file>
... is not an address of this machineNot 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 timeoutsudo docker compose -p argo-ironic logs --tail 100 ironic (database not reachable? see the mariadb logs).
Image health checks failsudo 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 deviceNodes too small for the http download source: sudo argoctl ironic install <site-file> --image-download-source local, then provision again.

On this page