X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/461fdaa1b96142b8065c131ae0334046fc71ea56..4d9a9766999dda4657bce039a1d56a5591201e95:/tools/salt-install/installer.sh diff --git a/tools/salt-install/installer.sh b/tools/salt-install/installer.sh index 439293c296..36e87cca91 100755 --- a/tools/salt-install/installer.sh +++ b/tools/salt-install/installer.sh @@ -449,14 +449,38 @@ diagnostics) arvados-client diagnostics $LOCATION ;; +diagnostics-internal) + loadconfig + set -u + + if [ -z "${ROLE2NODES['shell']:-}" ]; then + echo "No node with 'shell' role was found, cannot run diagnostics-internal" + exit 1 + fi + + # Pick the first shell node for test running + declare TESTNODE=$(echo ${ROLE2NODES['shell']} | cut -d\, -f1) + declare SSH=$(ssh_cmd "$TESTNODE") + + # Run diagnostics + echo "Running diagnostics in $TESTNODE..." + $SSH $DEPLOY_USER@$TESTNODE bash <