Verify Cluster¶
Verify the provisioned Slurm cluster and the Kubernetes service cluster after their nodes boot.
Overview¶
After booting the nodes, verify the following:
- Orchestrator reports a successful provisioning and, when used, PXE phase.
- Required Slurm services are active and every expected node is available to the scheduler.
- GPU-enabled Slurm nodes have a working driver, CUDA toolkit, and Slurm GRES configuration.
- The Slurm PAM feature permits an LDAP user to access a compute node only while that user has a running job on the node.
- The Kubernetes API is healthy, all expected nodes are
Ready, and pods areRunningor have completed successfully.
Prerequisites¶
- The applicable Orchestrator provisioning flow completed. Physical nodes were also PXE booted and completed cloud-init.
- Slurm and/or Kubernetes were deployed. See Setup Slurm or Setup Service K8S.
- You have root access to the cluster nodes. Run Kubernetes commands on a control-plane node.
- For GPU verification, GPU-enabled Slurm nodes are configured. See Slurm With GPU.
- For PAM verification, the selected catalog enables OpenLDAP, the OIM-hosted
omnia_authservice is running, and a test LDAP user exists. See Deploy OpenLDAP.
Procedure¶
Verify the Orchestrator result¶
-
On the OIM, inspect the current project's provisioning and aggregate status:
Run on: OIMsource /etc/profile.d/omnia-env.sh orchestrator_path="${OMNIA_DATA_PATH}/orchestrator" output_dir="$orchestrator_path/output/$OMNIA_PROJECT_NAME" cat "$output_dir/provisioning_report.yml" cat "$output_dir/orchestrator_status.yml"Confirm that the reports belong to the active inventory, all expected nodes are registered, and the completed provisioning phase reports
success.If the PXE flow ran, also inspect its per-node result:
Run on: OIMcat "$output_dir/pxeboot_status.yml"Confirm that every intended node reports a successful PXE and node-registration result. When registration verification is enabled, Orchestrator requires a fresh boot and
cloud-init status --longto reportdone.
Verify the Slurm cluster¶
-
On the Slurm controller, verify the controller services:
Run on: Slurm control nodesystemctl status munge mariadb slurmdbd slurmctldConfirm that each service is active and running.
-
On each Slurm compute node, verify the compute services:
Run on: Slurm compute nodesystemctl status munge slurmd -
Verify that Slurm reports every expected node and inspect the detailed state:
Run on: Slurm control nodesinfo -N -l scontrol show node <compute_hostname>When no jobs are running, healthy compute nodes normally report
idle. Nodes running jobs can reportallocormix. Investigate expected nodes that are absent or in states such asdown,drain, orfail.
Verify Slurm with GPUs¶
-
On every GPU-enabled compute node, verify cloud-init, the NVIDIA driver, and the shared CUDA toolkit:
Run on: GPU compute nodecloud-init status --long nvidia-smi /usr/local/cuda/bin/nvcc --version mountpoint /hpc_tools/cuda mountpoint /usr/local/cuda systemctl is-active slurmdThen confirm that Slurm reports the expected GPU resources and can run a GPU workload:
Run on: Slurm control nodescontrol show node <gpu_compute_hostname> | grep -i gres srun --nodes=1 --gres=gpu:1 nvidia-smiIf driver installation is still running or failed, inspect
/var/log/nvidia_install.logand/var/log/cloud-init-output.logon the GPU node. Orchestrator publishes the CUDA toolkit below the selected Slurm storage atslurm/hpc_tools/cuda; GPU-enabled Slurm nodes expose it at/hpc_tools/cudaand bind it at/usr/local/cuda.
Verify the Slurm PAM feature¶
Slurm PAM restricts compute-node SSH access for non-root users. An LDAP user is admitted only while that user has a running job on the target node. The configured Slurm epilog terminates the user's remaining processes and SSH session after the job ends.
-
From a login node, verify that the LDAP user cannot access a compute node before a job is running:
Run on: login nodessh <ldap_user>@<compute_hostname>The connection must be denied.
-
As the same LDAP user, submit a job, wait until it is running, and identify its assigned compute node:
Run on: login node as LDAP userjob_id=$(sbatch --parsable --wrap='sleep 300') squeue --jobs="$job_id" --format='%.18i %.2t %.20N'When the job state is
R, connect to the node shown bysqueue:Run on: login node as LDAP userssh <compute_hostname>The connection must succeed while the job is running. After the job ends, confirm that the active session is closed and a new connection is denied.
Verify Kubernetes on the service cluster¶
-
As root on a Kubernetes control-plane node, select the administrator kubeconfig and verify the API, nodes, and pods:
Run on: K8s control-plane node as roottest -r /root/.kube/config || export KUBECONFIG=/etc/kubernetes/admin.conf kubectl get --raw='/readyz?verbose' kubectl get nodes -o wide kubectl get pods -A -o wideOrchestrator creates
/root/.kube/configon each control-plane node, so root normally does not need to exportKUBECONFIG. When that default root kubeconfig is unavailable, use/etc/kubernetes/admin.conffrom a privileged shell.Confirm that the API readiness checks return
ok, every expected node isReady, and workload pods areRunning. Pods created by completed jobs can reportCompleted(Succeeded). InvestigatePending,Failed,Unknown,CrashLoopBackOff, and prolongedContainerCreatingstates. -
On every Kubernetes control-plane and worker node, verify the initialization marker and cloud-init status:
Run on: each K8s control-plane and worker node as roottest -f /etc/kubernetes/.cluster_initialized && echo "Initialization marker present" cloud-init status --longOrchestrator creates
/etc/kubernetes/.cluster_initializedon control-plane and worker nodes after their initial Kubernetes setup. The marker prevents one-time initialization or join steps from running again after a reboot. It records historical initialization only; it does not prove that the API, kubelet, node, or workloads are currently healthy. Use the checks in step 8 for current cluster health.
Verification¶
| Check | Command | Expected Result |
|---|---|---|
| Orchestrator provisioning | cat "$output_dir/orchestrator_status.yml" |
Completed provisioning phase reports success for the active inventory |
| Slurm controller services | systemctl status munge mariadb slurmdbd slurmctld |
All services are active (running) |
| Slurm compute services | systemctl status munge slurmd |
Both services are active (running) |
| Slurm nodes | sinfo -N -l |
All expected nodes are present; unused nodes are idle and active nodes can be alloc or mix |
| GPU runtime | nvidia-smi and srun --gres=gpu:1 nvidia-smi |
Driver responds locally and through a Slurm allocation |
| PAM access | SSH before, during, and after an LDAP user's job | Denied before and after the job; permitted on the assigned node while the job runs |
| Kubernetes API | kubectl get --raw='/readyz?verbose' |
Readiness checks return ok |
| Kubernetes nodes | kubectl get nodes -o wide |
All expected nodes are Ready |
| Kubernetes pods | kubectl get pods -A -o wide |
Workloads are Running; completed jobs can be Completed |
| Kubernetes initialization history | Marker and cloud-init commands in step 9 | Marker exists and cloud-init reports done on every Kubernetes node |
Troubleshooting¶
- Orchestrator reports a failed or incomplete node: Review
provisioning_report.yml,orchestrator_status.yml, and, when PXE ran,pxeboot_status.ymlbefore troubleshooting services on the node. - Slurm services are not running: Check the controller log at
/var/log/slurm/slurmctld.log, the database andslurmdbdservices, and verify that munge keys are synchronized across all nodes. - A Slurm node is
downordrain: Inspectslurmd, the node reason inscontrol show node <node>, and node reachability. After correcting the reported cause, runscontrol update NodeName=<node> State=RESUME. - A GPU check fails: Inspect
/var/log/nvidia_install.logand/var/log/cloud-init-output.log, verify the CUDA mounts, and follow Slurm With GPU. - A Kubernetes node is not ready: Inspect
systemctl status kubelet,journalctl -u kubelet, the CRI-O service, CNI pods, and the corresponding Orchestrator result. - A Kubernetes pod is in an unexpected state: Run
kubectl describe pod <pod_name> -n <namespace>andkubectl logs <pod_name> -n <namespace> --all-containersfrom the privileged Kubernetes shell used in step 8. - The initialization marker exists but Kubernetes is unhealthy: Do not treat the marker as a health result or delete it as a first recovery step. Diagnose the API, kubelet, runtime, network, and pod state with step 8.
Next Steps¶
- Slurm With GPU -- Configure and validate GPU support for Slurm.
- Deploy OpenLDAP -- Deploy and validate the OIM-hosted authentication service used by Slurm nodes.