Skip to content

Commit 0461281

Browse files
committed
Check that certs installed
1 parent 668a924 commit 0461281

File tree

1 file changed

+9
-0
lines changed
  • source/resources/playbooks/roles/exostellar_workload_optimizer/templates/opt/slurm/etc/exostellar

1 file changed

+9
-0
lines changed

source/resources/playbooks/roles/exostellar_workload_optimizer/templates/opt/slurm/etc/exostellar/resume_xspot.sh

+9
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ function resume_xspot()
4848

4949
echo "xspot resuming $host"
5050

51+
if ! [[ -e $CERT_PATH/ExostellarRootCA.crt ]]; then
52+
echo "error: $CERT_PATH/ExostellarRootCA.crt doesn't exist"
53+
return 1
54+
fi
55+
if ! [[ -e $CERT_PATH/ExostellarClient.pem ]]; then
56+
echo "error: $CERT_PATH/ExostellarClient.pem doesn't exist."
57+
return 1
58+
fi
59+
5160
host_fields=($(echo $host | tr '-' ' '))
5261
{% raw %}
5362
host_prefix=${host_fields[0]}

0 commit comments

Comments
 (0)