The third part of an OpenNebula backend: setup's fields, steps and checks, and the portal's connect, so an OpenNebula cloud is connected with three answers - endpoint, user, password - as OpenStack is with four. - the management window is reserved (one.vn.reserve): the build address and the window after it, taken into a network of the site's own, since OpenNebula gives a VM a chosen address only from a range; - the cloud image is fetched by the front-end itself (PATH=url); the head image is baked in a build VM on the build address by the same playbook, powered off from inside, saved with disksaveas and marked with HPCOD_REVISION, read back; - Configure writes the installation's sites.yaml entry and ONE_PASSWORD, or a connected site's own entry, secret file, Terraform environment and tofu.env (OPENNEBULA_PASSWORD by reference) - the entry last; - the proposal reads the networks, skips other users' reservations, takes the highest free run of the window and a build address in one range of a network with a gateway, and VXLAN for a cloud of several hosts; - the connect page no longer names OpenStack's fields: a Proposer says what a login lacks and which field is the network. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 KiB
Changelog
Unreleased
Backends other than Proxmox can be added
Proxmox was assumed everywhere past discovery. Now:
- The variables a cluster is built from (
provision.Contract) name no backend:devicesreplaceshostpci, and the Proxmox environment derivesvmid_basefromcluster_iditself. A test holds everyterraform/envs/*to the contract. - Each site has its own Terraform environment, in
/var/lib/hpcod/terraform/template/<site id>/, and a cluster is built from its record's site. Before, every cluster was built from one environment, so one placed on a second site went to the first. Setup moves an existing flat template into its site's directory; a portal updated withmake deploy-portalalone keeps building from the flat one while exactly one site is configured. - Setup's Proxmox parts (steps, form fields, packages, configuration,
checks) are a
setup.Backend. A site names its backend inSITE_KIND, empty meaningproxmox.PVE_SITE_IDandPVE_SITE_NAMEare nowSITE_IDandSITE_NAME; oldsite.envfiles are still read.
A libvirt/KVM backend
SITE_KIND=libvirt builds clusters on one libvirt host, reached over SSH
with the control plane's key and a pinned host key: an isolated network per
cluster, the head as a qcow2 overlay on a head image built by the same
playbook as the Proxmox template, diskless compute nodes booting from it,
PCI devices as managed hostdevs. Discovery, the Terraform environment and
setup are each the backend's own; the cluster's names, MACs and head
configuration now come from one module (terraform/modules/layout) that
both backends use. See DEPLOY.md, "A libvirt host", and
deploy/site.env.libvirt.example.
Run end to end on a nested-KVM test host (Debian 13, libvirt 11.3):
setup installed the control plane and built the head image in about six
minutes; hpcod verify passed; hpcod selftest -compute 2 placed,
built and published a cluster in under four minutes, both compute nodes
came up idle in Slurm, srun -N 2 ran on both, and the release left
nothing behind. PCI passthrough is tested only against device XML: the
test host has no card to pass.
Nothing changes for an existing Proxmox site. Checked offline: the Proxmox environment plans byte-identical resources for the same cluster before and after, and setup writes byte-identical configuration. Not yet run against a real host or Proxmox.
An OpenStack backend
SITE_KIND=openstack builds clusters in a project on an OpenStack cloud,
out of its quota: a Neutron network per cluster with port security off (the
head is its DHCP server), heads from a head image setup builds in the cloud
and keeps in Glance, and compute nodes that boot an iPXE ISO from Glance and
then from the head, since Nova cannot boot an instance from the network.
Each VM gets the smallest flavor that fits; the secret, a password or an
application credential's, stays in the service's environment and in no
file Terraform or the portal writes. Discovery reports the project as one
node, sized by its quota. See docs/25.
Run end to end on DevStack from a control plane installed fresh:
hpcod setup, hpcod verify, and hpcod selftest -compute 2 - built,
both nodes in Slurm, srun across them, destroyed with nothing left.
What the runs found, all fixed:
- A head image whose first-boot unit was empty. Nova's stop pulls the plug after a minute, and XFS left 80 files of the bake empty; systemd takes an empty unit as masked, so heads never configured themselves. The build flushes, checks, and shuts down from inside - and every backend's bake now ends with a flush, since each falls back to a hard stop.
- No DNS on a management subnet without DNS servers: NetworkManager
overwrote cloud-init's
resolv_conf. The site's servers are now its global DNS. - The bake started before cloud-init finished. It waits for it now.
- An overlay fabric's MTU (Geneve, 1442) would have left compute nodes
at 1500, losing every large packet between them. The layout carries a
fabric_mtuto Warewulf, which the role reads back after setting. - A refused snapshot showed as a bare 404 - Glance's per-project limit, 2000 MiB on DevStack, had let the first image in and refused the next. The error now says so.
Also: the contract test passed for a Terraform environment with no
variables.tf, which its glob skipped; it now requires one in every
environment.
An OpenNebula backend
SITE_KIND=opennebula builds clusters as one user of an OpenNebula cloud,
and an OpenNebula cloud can be connected from the portal (Sites → Connect a
site → opennebula) with three answers: the front-end's XML-RPC endpoint,
the user and the password.
- Discovery reads the cloud through its XML-RPC API: a site is the
user's share - their VM quota and their group's, whichever leaves less,
-1taken as the default quota and-2as none - capped by what the monitored hosts have free, where the user may read them. - Addresses. OpenNebula gives a VM a chosen address only from a network's address ranges, so the heads' window is inside one, and it is reserved: the build address and the window are taken into a network of the site's own, which no other VM is given an address from. The proposal picks the highest free run in a range of a network with a gateway, the most room first, and skips other users' reservations.
- Clusters (
terraform/envs/opennebula, provider 1.5.0): a virtual network per cluster - a Linux bridge on a cloud of one host, VXLAN across hosts - with two address ranges that give the layout's addresses and MACs together; the head from the head image, its first boot inUSER_DATAand its addresses from OpenNebula's context; compute nodes with no disk, booting from their NIC, made only once the head can answer them, since OpenNebula makes no VM powered off. - The head image is built in the cloud: the front-end downloads the
cloud image itself, a build VM on the build address is baked by the
same playbook, powered off from inside, and its disk saved as an image
carrying
HPCOD_REVISION.
Not yet tried against a real front-end: the lab's (miniONE on VM 8210) is waiting to be installed. The API's units and layout are from OpenNebula's own Go client and its 7.0 documentation.
OpenStack: placement charges a VM its flavor, and the cloud's free room
A cluster on hpc.mynodes.xyz's DevStack site - a head of 1 core and 16 GiB, two computes of 1 core and 10 GiB - was placed as 3 cores in a project of 20, and failed half built: each VM is the smallest flavor that holds it, m1.xlarge, 8 cores and 16 GiB, so the cluster was 24 cores; and the cloud itself had 8 vCPUs and 32 GiB, whatever the quota said. Now:
- discovery reads the project's flavors, and placement rounds every VM up to the one the Terraform module will pick, charging all of it. The plan shows the flavor beside the host, and a refusal names it - or the largest there is, for a VM bigger than every flavor;
- where Placement can be read (admin), the site offers no more than the cloud has free, whatever the quota, and the "sized by" line says so;
- a flavor larger than every compute node of the cloud is not offered; the site's "flavors" line says how many are and which is largest.
A site without fixed sizes (Proxmox, libvirt, bare metal) is placed as before.
Connecting from a Proxmox installation
Connecting an OpenStack project to an installation whose own site is
Proxmox built the head image, then failed: the portal could not put the
OpenStack module beside setup's. Setup now deploys the modules of every
kind a site can be connected as. A connect run again reuses the head image
the project already has at the roles' revision. And the packages step no
longer installs the postgresql metapackage beside a versioned server
already there, which on a PGDG host brought a second, newer PostgreSQL.
Connect an OpenStack project from the portal
Sites → Connect a site (administrators) joins another OpenStack project
-
another cloud, region or project - to an installation, without a shell or a restart. Nothing is installed in the cloud but the images clusters boot from. The form asks for four things - the Keystone URL, the user, the project and the password (or an application credential) - and Continue logs in and proposes the rest from the cloud and the installation: the region, the network the heads go on (a provider network first), its gateway and name servers, a run of free addresses on it - an installed site's window on the same subnet shared, otherwise the highest free run, outside Neutron's allocation pools where there is room and said when not - the address the heads will see this host from, and the site's id and name. Every proposed setting can be changed under More; choosing another network proposes its addresses again. The proposal is checked at once; Connect does the work in the portal, as the service, with its log on the page:
-
the head image is copied from another OpenStack site whose image is of the roles here - downloaded once into
/var/lib/hpcod/images, checked against Glance's SHA-512 both ways - or built in the project when none is current; -
the site's files are the portal's, under
/var/lib/hpcod: its entry insites.d/, read beside/etc/hpcod/sites.yaml(which is not written), its secret insecrets/(0600, byfile:reference), its record and its environment. The entry is written last.
What made it possible:
- Per-site management windows. A head's address was always
-mgmt-firstplus its cluster id, for every site. A site may now name its own window (mgmt_first,mgmt_countin its settings); windows are checked against each other - shared exactly, or apart, never overlapping. tofu.envin a site's environment names where Terraform's provider variables come from (OS_PASSWORD=file:...), so a second OpenStack site is not the service'sOS_PASSWORD.- The site list reloads: the portal re-reads the catalogue and
sites.dwhen either changes, and keeps the old list when the catalogue stops parsing mid-edit. A connected site that does not parse costs only itself. hpcod selftest -site IDbuilds on a given site.- Glance image lookups are the project's own: an admin's token lists every project's private images.
Run on the DevStack control plane, through the portal's own pages: the
demo project connected with its head image built there by the portal,
then a third project connected with its image copied from demo's (6.5 GB,
two minutes), and hpcod selftest -site devstack-hpc3 -compute 2 passed
on the copy. Its head volume took 4m31s, past Nova's 185-second wait, which
the volume-as-a-resource change exists for.
OpenStack: heads boot from a Cinder volume
A cloud's flavors seldom have the head's 120 GB of root disk; on DevStack
only the largest does, so a head of 2 vCPUs and 4 GiB was given 8 and 16.
With OS_HEAD_VOLUME (auto, the default, where the catalog lists Cinder;
yes; no) the head's disk is a 120 GB volume made from the head image,
and the head takes the smallest flavor with its vCPUs and memory.
OS_VOLUME_TYPE picks the type. Setup and verify check Cinder, the type
and room in the volume quota; the portal marks the site with a problem
when the quota cannot take another head (head_volume: "true" in its
settings - setup writes it into a new sites.yaml and warns when an
existing one lacks it). model.HeadDiskGB is the one place the 120 is.
Run on DevStack rebuilt with Cinder on LVM: the head took m1.medium, booted from its volume and saw 119 GB; selftest passed and the destroy removed the volume. The first try had Nova make the volume itself: it waited 185 seconds for a copy that took 4m21s, failed the head, and left the volume in the project, outside Terraform's state. The volume is now a resource of the cluster's own, which Terraform waits for and deletes.
Lab: virtualbmc pinned to 3.3.0
virtualbmc 3.4.0 runs a libvirt event loop only while a serial-over-LAN
session is open, so a closed libvirt connection is never finished: each
IPMI request leaked a socket and an eventfd (10 requests, 20 descriptors),
and bm03's BMC failed everything once it reached 1024. baremetal-sim
installs 3.3.0, which has neither (50 requests, no change), and replaces
another version it finds.
Bare metal: run on a real switch OS, and what it found
The sonic driver had been tested only against a fake. It has now been run
on SONiC 202505 (the VS image), with the simulated rack cabled behind it: a
cluster built through it (both machines network booted through the switch
and the trunk, srun -N 2 answered from both), two machines cleaned at once
in its cleaning VLAN, and released. That run found four bugs, all fixed:
- Ports were changed in a race. Terraform makes a cluster's ports in
parallel, each by its own
hpcodprocess, and a VLAN's first member is read-then-write: both machines of the first cluster found its VLAN missing, both added it, and the second failed the build. A release deleting a VLAN as empty could race an assign the same way. The driver now holds a lock on the switch around every change. - A cleaning cut off left a dirty machine looking free. Moving a port from the cluster's VLAN to the cleaning one is two switch changes; a cleaning killed between them left the port in no VLAN, which is what a free machine looks like - with the last tenant's data on its disks. A cleaning now records its start before it touches anything, and a machine is free only if its last cleaning finished and passed. The portal shows such a machine as "cleaning interrupted", with Retry; a retry takes a port in no VLAN as well as one in the cleaning VLAN. One cleaning of a machine runs at a time, under a lock, which is also how a running cleaning is told from one whose process died.
- The portal declared another process's destroy dead. At startup the
portal marks every build or destroy in flight as failed, on the grounds
that its process is gone - but
hpcod selftestruns its own. A portal restarted while a selftest destroyed a cluster marked it failed; the selftest took that as the end, exited, and its destroy, two cleanings included, was killed with it. Builds and destroys now hold a lock in the cluster's directory, and the portal leaves a cluster alone whose lock another process holds. - Setup left the trunk empty. It wrote the uplink into
hpcod-switch's configuration and did not apply it, so the trunk carried no VLAN - the cleaning one included - until the first port change. Setup now applies it, and checks the uplink carries the cleaning VLAN.
Also: hpcod selftest -boot-timeout (default 15m), for fabrics slower than
the image is big - the VS switch forwards in software at about 0.45 MB/s per
machine; sonic.sh prepare ADDRESS makes the VS image an L2 switch (it
boots as a router, every port addressed) and gives hpcod's key its login;
and sonic.sh no longer writes fixed names in /tmp, where an old file of
another user's stopped it.
Bare metal: the machines file from NetBox
hpcod netbox -url URL -site S -role R writes a bare-metal site's
machines.yaml from NetBox: each machine's fabric MAC, the switch and
port its cable goes to, and its BMC (the hpcod_bmc custom field, else
its out-of-band IP), with size and login from optional custom fields. It
only reads; a read-only token is enough. Without -write it shows what it
would write and what changed.
It does not guess. The fabric switches are the ones the file names, or
-switch; a machine with no NIC, or several, cabled to one is an error,
as is one with no MAC or no BMC - and any error means nothing is written.
What NetBox does not hold (the switches section, sizes and logins without
a custom field) is kept from the file. A machine NetBox no longer lists is
kept and reported unless -prune. The file is checked before it replaces
the old one, which is kept as .prev, and is read back after.
Run against a real NetBox 4.7.5 holding the simulated rack: it reproduced
the hand-written file exactly, and corrected a drifted copy. That run
found one bug, fixed: a device NetBox lists but which could not be
imported was also reported as gone from NetBox, and with -prune as
removed.
Portal: bare-metal machines, their cleanings, and a retry
The sites page lists a bare-metal site's machines with their state - free, in use (and by which VLAN), cleaning, cleaning failed, unreachable and why - and each one's last cleaning: when, at whose request, and each disk's method and level. An administrator can retry a cleaning that failed, and nothing else: the portal refuses a machine whose last cleaning passed (a release may be cleaning it), one already being retried, and the provider refuses, against the switch, one that is not waiting in the cleaning VLAN. The retry runs in the background, attributed to whoever pressed it.
Every cleaning now leaves a record, as NIST SP 800-88 asks: one JSON line
per cleaning in /var/lib/hpcod/cleaning/<site>/<machine>.jsonl, written
before the machine is freed - a cleaning whose record cannot be written
fails, and the machine stays held. A cleaning run by root by hand first
left the records directory root's, and the portal, which runs as the
service, showed every machine as never cleaned without saying why; setup
now makes the directory the service's, each cleaning sets every level it
creates, and the page says when a record cannot be read.
Bare metal: several switches, delegated drivers, per-machine logins
The machines file can name the fabric switches (switches:), and each
machine its switch and port; one port cannot be given to two machines.
Besides linux-bridge and sonic, a switch can be driven by the site's own
automation: exec runs a program (assign|clear|list SWITCH [PORT [VLAN]],
no shell between), http calls the same contract over REST with a bearer
token. A machine can have its own BMC login, its password an env: or
file: reference - a literal password in the file is refused. Setup pins
SSH-driven switches' host keys. Files without switches: read as before.
Checked on the simulated rack, with its machines moved to an exec switch
(deploy/baremetal-sim/netauto-example) and bm02 given its own login:
hpcod selftest -compute 2 passed, both machines were cleaned through it,
and their disks read back as zero; a wrong password in bm02's file failed
bm02 alone, with 401, in hpcod verify. A program that reports success
without changing anything is caught by the read-back.
Bare metal: machines are wiped before they are given again
Releasing a bare-metal cluster no longer frees its machines at once. Each
is powered off, moved to a cleaning VLAN (BM_VLAN_BASE+255) served only
by hpcod-clean on the KVM host, and network booted into a wipe image
built from that host's kernel. Every non-removable disk is purged with the
device's own command (NVMe sanitize or format with secure erase, ATA
sanitize or enhanced secure erase, SCSI sanitize), after removing an ATA
host protected area; a disk with none is overwritten whole and read back
whole, reported as clear rather than purge. Every disk is checked by
markers written with a one-time token at random places before the wipe,
none of which may be readable after. Only a complete report of that
cleaning, with every disk verified, frees the machine's port; anything
else leaves it powered off and held in the cleaning VLAN, and the
cluster's release fails. hpcod baremetal clean retries one.
The first version discarded each disk and zeroed its first and last
64 MiB. That freed a disk without discard - any HDD - with 128 MiB of it
wiped, and trusted discard, which a drive may not honour, for the rest; it
is gone, and clean_mode: metadata in an existing site entry is moved to
purge by setup. Testing the replacement found that its whole-disk
read-back used busybox cmp -n, whose count is 32-bit: every disk of
2 GiB or more failed the check (the machine was held, not freed). And the
image first loaded every driver it carries, which brought up scsi_debug
and wiped its fake disk; drivers are now loaded by modalias.
Checked on the simulated rack, with tenant data written at the start and
middle of each disk and checked from the host by qemu-io exit codes: a
machine with an NVMe disk (purged by format with secure erase), a SATA
disk and a virtio disk (both cleared by overwrite) was cleaned in 58 s,
the data gone from all three and their first GiB zero, and freed; with the
cleaning service stopped, clean gave up at its deadline and left the
machine off and held; a retry freed it; a report with another cleaning's
token is refused. An earlier check of selftest releases counted
qemu-io's "read" lines, which it prints whether or not the pattern
matched, so it proved nothing; rechecked by exit code, the two machines
those releases cleaned read as zero over all 2 GiB.
A bare-metal backend
SITE_KIND=baremetal builds clusters whose compute nodes are physical
machines: servers with Redfish BMCs on one fabric, and a libvirt host
beside them for the heads. A compute node gets a whole machine, held in the
database (cluster_machine, migration 010) from the moment the cluster is
recorded, so two requests planned together cannot both be given it. Each
cluster has a VLAN; its head's and its machines' switch ports are put in it,
the machines are powered on through Redfish to network boot once from the
head when it is ready, and powered off before their ports are cleared when
it is released. Discovery reads the BMCs and the switch, and takes the
switch as the authority: a machine whose port is in a VLAN is held, and one
powered on in none is not offered. The head is built by the libvirt
module, with its fabric NIC on the host's VLAN-aware bridge.
Setup installs the switch driver (hpcod-switch, and a libvirt hook that
keeps a guest's port in its VLAN across restarts) on the KVM host, writes
the machines file from the BMCs when there is none, and keeps the BMC
password in /etc/hpcod/env rather than the world-readable site.env.
deploy/baremetal-sim/setup.sh makes a simulated rack on a libvirt host:
diskless guests, sushy-emulator as their BMCs, and a bridge as their
switch. See DEPLOY.md, "A rack of bare-metal machines".
Run end to end on that simulation (four machines, one too small for the
request): setup enrolled the machines from Redfish and installed the
switch driver; hpcod verify passed; hpcod selftest -compute 2 placed
the head on the KVM host and one machine per node, powered them on through
Redfish, both came up idle in Slurm and srun -N 2 ran on both, all
within about five minutes, and the release powered them off and cleared
every port. With two clusters up at once, a machine's traffic reached its
own head and not the other (tcpdump on both heads' ports while it network
booted), and a machine powered on behind hpcod's back, in no VLAN, reached
neither head; hpcod baremetal power refused to boot it, and discovery
reported it as not free. Only the linux-bridge switch driver exists, so a
physical switch is not yet supported; see Known limits.
The libvirt module gained the two options this needs (fabric_bridge,
compute_vms); for a libvirt site it plans the same resources as before,
checked with tofu plan against the host, apart from the fabric network's
address becoming fabric[0] - moved in state by a moved block - and the
head output's new fabric_mac.
v0.2.2 — 2026-11-16
Clusters across the nodes of a Proxmox cluster
A Proxmox VE that is one node of a Proxmox cluster no longer means one
node. Setup lists the cluster's nodes and asks which ones clusters may use
(PVE_NODES); the rest are never touched. Compute nodes are spread over
the chosen nodes. Heads stay on PVE_NODE, where the template is, so no
shared storage is needed. With more than one node the SDN zone becomes
vxlan, with every node a peer and an MTU of 1450 that guests are given
through virtio; setup remakes a simple zone only while no cluster uses
it, and hpcod verify checks the nodes and the zone. Before this, discovery
already saw every node and placement could pick any of them, while the
template, the snippets and a simple zone only worked on one: a cluster
could land where it could not be built.
Run on the simulated Proxmox with the zone forced to vxlan: a two-node test cluster built and ran a job, both compute NICs came up at 1450, and a full 1450-byte frame passed between them while 1451 did not. Traffic between two real Proxmox nodes has not been tested; the lab has one.
Also
- Setup's step list keeps to its columns on narrow terminals, and the check says "1 warning", not "1 warnings".
- The documented install works on a fresh host: it now downloads the
release, checks
SHA256SUMS, sets the execute bit and runssudo ./hpcod setup. Before, it saidsudo hpcod setup, which is not found until setup has installed itself. - The documentation was brought in line with what is built: section 02 installs hpcod from scratch, and the hand-built lab moved to section 10.
v0.2.1 — 2026-11-16
A rebuild of v0.2.0 with Go 1.27.4, for GO-2026-6859: a race in net/http's MaxBytesReader that can crash an HTTP/1 server, which the portal is. The v0.2.0 binaries were built with 1.27.3. Nothing else changes for anyone running hpcod; x/crypto moves to v0.59.0 (GO-2026-5932, which hpcod does not call), and CI takes the latest Go patch instead of a cached one.
v0.2.0 — 2026-11-16
One binary installs the control plane
Until now an installation was this one. The deploy scripts and the Ansible defaults carried one installation's domain, hypervisor address, proxy host and login account. The Proxmox side, the database and the Terraform variables had been set up by hand. Deploying meant copying shell scripts and a tree of roles beside the binary, and keeping all of them in step.
Now the binary is the whole of it:
hpcod setupis the installer, for administrators only: root, in a terminal on the control plane host. It is a full-screen TUI with the stages of an install down the side. It asks first where clusters are built, then signs in to Proxmox before asking anything else, with root's password (used once, never stored) or tokens you made yourself. Nodes and datastores are picked from what Proxmox has. Every field is checked as it is typed, including against the others. Then it installs, showing each step's output live, checks the result, and offers a test cluster.hpcod setup -yesruns the same steps unattended, from a site file.make deploycopies the binary anddeploy/site.envto the host and runs it there. Nothing else is sent.- The binary carries the tree. The Ansible roles, the Terraform module,
the schema and the application catalogue are embedded (
embed.go). A host always runs the roles and schema of the binary it runs. A test checks that nothing local leaks into the embedded tree. hpcod verifychecks each fact by using it: the tokens against the API, the template by asking Proxmox, the database as the portal connects, HTTPS against the installation's CA, DNS as a user's resolver would ask. It reports READY, or which step fixes what failed.hpcod selftestbuilds the smallest real cluster by the portal's own path (placement, allocation, the portal's builder). It waits for Slurm, runssrunacross the nodes, checks the portal is published, and takes the cluster down. A failed test leaves the cluster up and prints how to remove it.
Closed networks
For an installation with no public domain, DNS or certificate:
- Its own CA.
SERVE_MODE=directmakes hpcod serve HTTPS itself on 443, with a CA setup creates once. The CA is name-constrained to the installation's domains, so trusting it trusts nothing else. The portal issues its own server certificate from it in memory and renews it before it expires. Users fetch the CA athttp://<portal>/ca.crt. - Its own DNS.
SERVE_DNS=trueanswers for the portal and every cluster's name, and forwards everything else. With no forwarders it refuses, so it is never an open resolver.
A simulated Proxmox, to try it
PVE_MODE=sim runs Proxmox VE in QEMU/KVM on the control plane host itself,
on a private bridge with NAT. Setup installs Proxmox VE into a Debian 13
cloud image and fills in every Proxmox and network value. Clusters run
inside it, so the host needs nested virtualization. It is for trying hpcod,
not for tenants.
What was proven, and what was not
- End to end, on a simulated Proxmox (a control plane VM on a real
Proxmox host, with Proxmox VE 9 inside it):
- the install, from the single binary;
- the Proxmox step by the root-password path: SSH key, both tokens, the SDN zone, the content types, the cloud image;
- the head template (47 tasks, none failed);
hpcod verifyREADY, with HTTPS from its own CA and its own DNS;hpcod selftest:c001built in about ten minutes, its compute node idle in Slurm,srun hostnameanswered from it, then destroyed and released.
- On a clean Debian 13 host: the install twice in a row, with nothing changed the second time. The generated password signs in, and the TUI was driven through a terminal.
- Not yet run:
- setup against a bare-metal Proxmox host;
- the token path, which was tested only against a fake Proxmox API;
- a fresh simulated Proxmox with the last two fixes to it (resolv.conf, and a clean power-down). Both were verified on the running simulation only.
Changes an existing installation should know about
- The Proxmox token moves from
site.auto.tfvarstosecrets.auto.tfvars. Setup moves it the first time and keeps a backup. ci_userand the portal's-ssh-userno longer default to a personal account. Setup writes both fromCI_USER.ansible/group_vars/all.ymlis nowgroup_vars/all/main.yml. The site's values are in a generatedsite.ymlbeside it, and the playbooks refuse to run without it. The head template only picks them up when it is rebuilt (-rebuild-template). Until then, setup and verify say it is stale.- The catalogue now comes from inside the binary. Publishing an application
means rebuilding and deploying the binary. A site that keeps its own
catalogue creates
/etc/hpcod/apps.local. - Removed:
scripts/B10,B20andC20. Their work is the setup steps./var/lib/hpcod/scriptson an existing host is no longer used.
v0.1.0 — 2026-09-21
First tagged release. The repository holds two things: the Warewulf HPC lab
documented in sections 01–09, and HPC-on-Demand (hpcod/), a control
plane that provisions clusters of that kind on demand. This release is about
the second.
The chain that works end to end
Someone signs up on the public site, an administrator approves them, and from
there the portal takes a request for a cluster through to a running desktop
with a job on it. Every step below was exercised on hv01, not inferred:
- Sign up, and wait. New accounts land in
pending; nobody gets in until an administrator approves them. Disabling an account takes effect on the next request, not when the session happens to expire. - Ask for hardware, not for a flavour. A request names capabilities — GPU, InfiniBand, RoCE, NVMe, cores, memory — or just names the software it wants and lets the application catalogue imply the hardware.
- Placement picks a site and a node. Devices already handed to another cluster are not offered again, and neither are devices reserved for a cluster that has been allocated but not yet built. Oversubscription is a policy an operator sets from the portal, with separate CPU and memory ratios; turning it off does not lose them.
- Allocation is atomic. Cluster ids, management addresses and PCI devices come from PostgreSQL under an advisory lock, so two requests racing for the last GPU produce one cluster and one clear refusal.
- Terraform builds it. An SDN vnet for the cluster fabric, a head node and compute VMs, with the placement carried straight through from the record. Teardown removes them in an order that actually works.
- Ansible finishes it. Warewulf 4.7, OpenHPC 3, Slurm 25.11, MUNGE,
Apptainer, shared
/opt/apps, and Open OnDemand on the head node. - The cluster publishes itself. It appears at
c<NNN>.<domain>, behind the control plane, with the portal's certificate pinned at the moment it was published. - One sign-in, not two. The cluster portal trusts the control plane over mTLS, so a session that may use a cluster reaches it without another password. A session that may not gets nothing, and a hostname for a cluster that does not exist says so instead of showing the front page.
- A desktop, a terminal, and a job. XFCE over TurboVNC in a container, a
shell on the head node, and
srunfrom inside either.
Measured
- Cold provision of a tenant cluster: ~134 s.
- Node image build: ~12 min, done once and shared, not per tenant.
Known limits
These are absent by decision or by circumstance, not by oversight:
- Leases are recorded but not enforced.
store.Expiredreturns what has run out; nothing acts on it yet. No reaper. - One Proxmox node. Placement discriminates between sites and between
hosts, and the Terraform module takes a per-VM host — but
hv01is a single node, so multi-site placement is tested against fixtures rather than metal. - No central Slurm accounting. There is no
slurmdbd, so jobs carry no cluster name andsaccthistory is per-cluster. - Whole-device GPU passthrough only. MIG and vGPU are out of scope.
/homeonly. No scratch, no parallel filesystem.- Nothing bills. The allocation record is the raw material for it and is written; no code reads it for that purpose.
- The API in §20.9 is partly implemented. The portal and CLI cover what is built; the REST surface does not yet.
Operating notes
hpcod versionnow reports the release tag alongside the revision, e.g.v0.1.0 (f6ea30dc1234). A binary built outside the Makefile prints the revision alone rather than guessing.- The control plane needs
$HPCOD_DB_DSNor-db; the CLI and the service resolve it the same way. make deploy-portalbuilds for Linux and installs it on the Caddy host.