Files
ilker 86d4a648f4 hpcod phase 4 verified end to end, with four silent-failure fixes
A tenant cluster was provisioned from the control plane host and reaches
"normal* up infinite 2 idle t001-node[1-2]": both nodes PXE boot, munge and
slurmd are active, and Slurm schedules on them. Terraform and Ansible both ran
on the web server, not a laptop.

Four bugs, all of which reported success:

Image copying through the control plane is removed. The controller runs
unprivileged, so rsync could not preserve ownership - the whole tree arrived
owned by the service account - and it skipped every file it could not read
(/etc/shadow, /etc/gshadow, /usr/bin/sudo) while exiting zero. The result
booted to systemd and dropped into emergency mode with every kernel filesystem
failing to mount. Both nodes failed identically at 6 GiB and 8 GiB, which is
what ruled memory out and pointed at the image. Copying is still worth doing,
but the transport has to carry ownership independently of who runs it: a tar
stream between two root shells, not rsync driven by an unprivileged middleman.

"The image exists" was used as the guard for "the image is complete". An
interrupted build left a half-populated image - kernel present, OpenHPC never
installed - which every later run then skipped, reporting failed=0 with
skipped=6. Nodes booted without munge.service existing at all. Only the import
is guarded by existence now; population runs every time, since dnf is
idempotent and self-heals a partial build.

YAML's ">" does not fold a line indented further than the first. Wrapping a
long dnf command for readability split it into separate shell statements, so
"iproute" ran as a command of its own and exited 127 after the packages had
installed. The image exec tasks use literal blocks now.

A blind regex rename for an ansible-lint var-naming rule rewrote the sinfo
command itself into verify_sinfo.

Also: the cluster interface's firewalld zone has to be set on the
NetworkManager connection, not only in firewalld. NM re-asserts its own
connection.zone on activation and silently overrides the permanent
configuration, leaving the interface in "public" with port 9873 closed - nodes
PXE boot far enough to ask warewulfd for a kernel and then hang, which looks
like a provisioning fault rather than a firewall.

Memory question settled: node1 at 8 GiB and node2 at 6 GiB both boot, so the
2 GiB rootfs reserve is adequate for this image.
2026-09-01 17:22:05 +02:00

9 lines
251 B
YAML

---
- name: Reload firewalld
ansible.builtin.command: firewall-cmd --reload
changed_when: true
- name: Reactivate the cluster interface
ansible.builtin.command: nmcli connection up "{{ common_cluster_conn.stdout | trim }}"
changed_when: true