Skip to content

Commit

Permalink
add print before waiting for gpu node
Browse files Browse the repository at this point in the history
  • Loading branch information
bdattoma committed Oct 1, 2024
1 parent 69bb566 commit dcf8575
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ods_ci/tasks/Resources/Provisioning/GPU/provision-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ oc apply --kustomize $PROVIDER_OVERLAY_DIR
# Add GPU label to the new machine-set
oc patch machinesets -n openshift-machine-api "$NEW_MACHINESET_NAME" -p '{"metadata":{"labels":{"gpu-machineset":"true"}}}' --type=merge
# wait for the machine to be Ready
echo "Waiting for GPU Node to be Ready"
oc wait --timeout=$MACHINE_WAIT_TIMEOUT --for jsonpath='{.status.readyReplicas}'=1 machineset $NEW_MACHINESET_NAME -n openshift-machine-api
if [ $? -ne 0 ]; then
echo "Machine Set $NEW_MACHINESET_NAME does not have its Machines in Running status after $MACHINE_WAIT_TIMEOUT timeout"
Expand Down

0 comments on commit dcf8575

Please sign in to comment.