Files
ilker 683a4ff6ac hpcod: Apptainer instead of SingularityCE, and a working application catalogue
The catalogue could read but not fetch. It resolved a name to an image and
derived the hardware that image needs, and then nothing pulled anything -
which made it a schema, not a system. This closes that, and changes the
container runtime while it is open.

Apptainer, not SingularityCE, and without the suid package. They are the
same project either side of a 2021 split, both read SIF, and apptainer also
provides the `singularity` command, so nothing a user wrote stops working.
The reason is the setuid binary: SingularityCE installs starter-suid
unconditionally, and it was on every compute node. Apptainer splits it out,
so not installing apptainer-suid leaves no setuid-root binary on a machine
running other people's jobs, and user namespaces do the work instead
(measured on a node: max_user_namespaces is 23437, and a container runs).
Governance and 36 MB against 55 MB are the secondary arguments; the image
went 950 MB to 889 MB, and in a tmpfs root every megabyte is paid twice.

singularity-ce was never asked for. It arrived as a weak dependency of
ohpc-base-compute, on the one dnf line in the image build that had no
install_weak_deps=False. A setuid-root binary reached every node because a
flag was missing from one line.

The fetch half: the control plane resolves names against its catalogue and
Terraform carries the resolved image references - names and URIs, nothing
else - through cloud-init to the head, which pulls them into /opt/apps.
/opt is already exported read-only to the nodes, so one pull makes an image
visible everywhere without a second distribution path, and the head needs
no catalogue, no credentials for one, and no opinion about what an
application is. The head gets apptainer too, since it is the machine with
the network and the writable /opt; the role refuses to run if
apptainer-suid is present there either.

A failed pull fails the provision. A cluster that comes up without the
software it was asked for looks healthy and is useless.

Three bugs, all mine, all in the checks rather than the system. The
read-back used `apptainer inspect --type container`, and this version has
no --type, so a valid image failed verification - the check reporting its
own bug as the system's. Bare inspect was then measured to discriminate:
exit 0 on a real SIF, 255 on a file. The suite grepped inspect's output for
the image name, which is build metadata and does not contain it. And its
wait condition was `sinfo | grep -q idle`, which passes when any node is
idle rather than all of them, so a two-node check ran against one node that
had registered and one that had not. That last one was in three scripts,
which means some of today's passes were luck.

Verified from empty, 8 of 8, 145s: busybox.sif pulled into /opt/apps, a
valid container, no setuid binary and no apptainer-suid on the nodes, and
BusyBox v1.38.0 running under hpcuser on both of them.
2026-09-20 22:32:32 +02:00
..