Skip to content
Snippets Groups Projects
Commit b30e35c6 authored by Iustin Pop's avatar Iustin Pop
Browse files

Enable batch mode for devel/upload


Since the rsync/ssh calls are done in parallel, they can't read properly a
password or confirmation about keys from stdin. As such, it's better to enable
batch mode so that they fail right away instead of prompting and then timing
out after a long while.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 5bc556dd
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,9 @@ echo ---
# and now put it under $prefix on the target node(s)
for host; do
echo Uploading code to ${host}...
rsync -v -rlDc --exclude="*.py[oc]" --exclude="*.pdf" --exclude="*.html" \
rsync -v -rlDc \
-e "ssh -oBatchMode=yes" \
--exclude="*.py[oc]" --exclude="*.pdf" --exclude="*.html" \
"$TXD/" \
root@${host}:/ &
done
......@@ -109,7 +111,7 @@ wait
if test -z "${NO_RESTART}"; then
for host; do
echo Restarting ganeti-noded on ${host}...
ssh root@${host} /etc/init.d/ganeti restart &
ssh -oBatchMode=yes root@${host} /etc/init.d/ganeti restart &
done
wait
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment