Pavlin Radoslavov

Revert "Allocate pseudo tty for ssh"

Reason: extra error messages when running "onos-test"
Pseudo-terminal will not be allocated because stdin is not a terminal.


This reverts commit 6ac0d554.

Change-Id: I509b9e9dc941e1e7d281457693b1b74a5eb621e3
......@@ -18,7 +18,7 @@ echo " { \"id\": \"$OC1\", \"ip\": \"$OC1\", \"tcpPort\": 9876 }" >> $CDEF_FILE
echo "]}" >> $CDEF_FILE
scp -q $CDEF_FILE $remote:$ONOS_INSTALL_DIR/config/cluster.json
ssh -t $remote "
ssh $remote "
sudo perl -pi.bak -e \"s/ <interface>.*</ <interface>${ONOS_NIC:-192.168.56.*}</g\" \
$ONOS_INSTALL_DIR/$KARAF_DIST/etc/hazelcast.xml
sudo perl -pi -e \"s/ <name>onos</ <name>${ONOS_CELL:-onos}</g\" \
......
......@@ -23,7 +23,7 @@ remote=$ONOS_USER@$node
scp -q $ONOS_TAR $remote:/tmp
ssh -t $remote "
ssh $remote "
[ -d $ONOS_INSTALL_DIR/bin ] && echo \"ONOS is already installed\" && exit 1
# Prepare a landing zone and unroll the bits
......@@ -45,7 +45,6 @@ ssh -t $remote "
# Remove any previous ON.Lab bits from ~/.m2 repo and re-stage it.
rm -fr ~/.m2/repository/org/onlab
mkdir -p ~/.m2/repository/org/onlab
cp -r $ONOS_INSTALL_DIR/$KARAF_DIST/system/org/onlab ~/.m2/repository/org/onlab
# Drop log level for the console
......
......@@ -40,5 +40,5 @@ fi
# Execute the remote commands
for node in $nodes; do
ssh -t $ONOS_USER@${node} "sudo service onos ${2:-status}"
ssh $ONOS_USER@${node} "sudo service onos ${2:-status}"
done
......
......@@ -8,7 +8,7 @@
remote=$ONOS_USER@${1:-$OCI}
ssh -t $remote "
ssh $remote "
sudo service onos stop 1>/dev/null 2>/dev/null
sudo rm -fr $ONOS_INSTALL_DIR
"
......