Skip to content

Commit

Permalink
Sending debug to log files
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Aug 17, 2023
1 parent e90f227 commit f5c1261
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions image/k8s-slurmd-create
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ set -euo pipefail

echo "$(date) Resume invoked $0 $*" >> /var/log/slurm/power_save.log

echo "Arguments: $* $0 $1"
echo "Arguments: $* $0 $1" >> /var/log/slurm/power_save.log

hosts=$(scontrol show hostnames $1) # this is purely a textual expansion, doens't depend on defined nodes
echo "Powering up hosts: $hosts"
echo "Powering up hosts: $hosts" >> /var/log/slurm/power_save.log
for host in $hosts
do
echo "Creating $host"
echo "Creating $host" >> /var/log/slurm/power_save.log
sed s/SLURMD_NODENAME/$host/ /etc/slurm/slurmd-pod-template.yml | kubectl create -f -
echo "done"
echo "done" >> /var/log/slurm/power_save.log
done

0 comments on commit f5c1261

Please sign in to comment.