From fc93cf3e2965f430b243eda1e95ce30c4e59a1ab Mon Sep 17 00:00:00 2001 From: James Slagle Date: Tue, 26 Jul 2016 07:41:00 -0400 Subject: Force a tty for sudo in get-occ-config.sh This script will sometimes fail with "you must have a tty to run sudo" depending on how it was executed. Add -tt to the $SSH_OPTIONS to always force a tty. Change-Id: Ic1144b9ba90d4af35db826a78e637da965569841 Closes-Bug: #1606544 --- deployed-server/scripts/get-occ-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deployed-server/scripts/get-occ-config.sh') diff --git a/deployed-server/scripts/get-occ-config.sh b/deployed-server/scripts/get-occ-config.sh index b4cedea2..2c01174e 100755 --- a/deployed-server/scripts/get-occ-config.sh +++ b/deployed-server/scripts/get-occ-config.sh @@ -10,7 +10,7 @@ BLOCKSTORAGE_HOSTS=${BLOCKSTORAGE_HOSTS:-""} OBJECTSTORAGE_HOSTS=${OBJECTSTORAGE_HOSTS:-""} CEPHSTORAGE_HOSTS=${CEPHSTORAGE_HOSTS:-""} SUBNODES_SSH_KEY=${SUBNODES_SSH_KEY:-"~/.ssh/id_rsa"} -SSH_OPTIONS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Verbose -o PasswordAuthentication=no -o ConnectionAttempts=32" +SSH_OPTIONS="-tt -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=Verbose -o PasswordAuthentication=no -o ConnectionAttempts=32" read -a Controller_hosts_a <<< $CONTROLLER_HOSTS read -a Compute_hosts_a <<< $COMPUTE_HOSTS -- cgit 1.2.3-korg