From e90f227bb1f8747414e79aed258257532bbf76c3 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 17 Aug 2023 09:44:54 +0100 Subject: [PATCH] Added more debugging for k8s --- image/k8s-slurmd-create | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/image/k8s-slurmd-create b/image/k8s-slurmd-create index a32de97..b45adfc 100644 --- a/image/k8s-slurmd-create +++ b/image/k8s-slurmd-create @@ -3,8 +3,13 @@ set -euo pipefail echo "$(date) Resume invoked $0 $*" >> /var/log/slurm/power_save.log +echo "Arguments: $* $0 $1" + hosts=$(scontrol show hostnames $1) # this is purely a textual expansion, doens't depend on defined nodes +echo "Powering up hosts: $hosts" for host in $hosts do + echo "Creating $host" sed s/SLURMD_NODENAME/$host/ /etc/slurm/slurmd-pod-template.yml | kubectl create -f - + echo "done" done