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.
31 lines
928 B
YAML
31 lines
928 B
YAML
---
|
|
# The same checks scripts/A99-verify.sh performs, so a provisioned tenant is
|
|
# proved working rather than assumed working.
|
|
|
|
- name: Head node services
|
|
ansible.builtin.command: systemctl is-active {{ item }}
|
|
loop: [warewulfd, dhcpd, tftp.socket, nfs-server, slurmctld, munge]
|
|
register: verify_svc
|
|
changed_when: false
|
|
failed_when: verify_svc.stdout != "active"
|
|
|
|
- name: Nodes registered with Warewulf
|
|
ansible.builtin.command: wwctl node list
|
|
register: verify_nodes
|
|
changed_when: false
|
|
|
|
- name: Every requested node is registered
|
|
ansible.builtin.assert:
|
|
that: item.name in verify_nodes.stdout
|
|
fail_msg: "{{ item.name }} is not registered with Warewulf"
|
|
loop: "{{ compute_nodes }}"
|
|
|
|
- name: Slurm sees the partition
|
|
ansible.builtin.command: sinfo -h -o "%P %a %D %t"
|
|
register: verify_sinfo
|
|
changed_when: false
|
|
|
|
- name: Report
|
|
ansible.builtin.debug:
|
|
msg: "{{ verify_sinfo.stdout_lines }}"
|