summaryrefslogtreecommitdiffstats
path: root/prototypes
diff options
context:
space:
mode:
authorBrady Johnson <brady.allen.johnson@ericsson.com>2016-02-19 16:45:37 +0100
committerBrady Johnson <brady.allen.johnson@ericsson.com>2016-02-19 18:15:25 +0100
commit2b5a8776687cb5954cbd46ddf567cdc6ecba7e17 (patch)
treebe8eefde6f593b745e343ec1f6cafffbf12071bf /prototypes
parent0d1f9a3e33ded6a44b4b72d18ee29bb26ec065bd (diff)
Minor fix to SFC Tacker post-install script
- Dont try to install crudini via apt-get. It will be installed via wget and dpkg. - patch set 2 : removed extra single quote - patch set 3 : fixing ssh/scp permission errors by using sshpass Change-Id: I3bfd59c44c4c1a5da6473b5f620b71e7c8e3680c Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
Diffstat (limited to 'prototypes')
-rwxr-xr-xprototypes/sfc_tacker/poc.tacker-up.sh18
1 files changed, 8 insertions, 10 deletions
diff --git a/prototypes/sfc_tacker/poc.tacker-up.sh b/prototypes/sfc_tacker/poc.tacker-up.sh
index 5f642f13c..8377b8055 100755
--- a/prototypes/sfc_tacker/poc.tacker-up.sh
+++ b/prototypes/sfc_tacker/poc.tacker-up.sh
@@ -58,7 +58,7 @@ ____EOF
# Function setting up the build/deploy environment
function envSetup () {
apt-get update
- apt-get install -y git python-pip python-all debhelper crudini
+ apt-get install -y git python-pip python-all debhelper
chkPPkg stdeb
chkCrudini
}
@@ -242,15 +242,14 @@ function populate_client() {
dpkg -i deb &&\
rm deb
- sshpass -p "r00tme" scp ${SSH_OPTIONS[@]} root@10.20.0.2:.ssh/id_rsa ${HOME}/.ssh/id_rsa
- clusternodes=$(ssh ${SSH_OPTIONS[@]} root@10.20.0.2 fuel node | cut -d '|' -f 5 | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" )
+ clusternodes=$(sshpass -p "r00tme" ssh ${SSH_OPTIONS[@]} root@10.20.0.2 fuel node | cut -d '|' -f 5 | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" )
myaddr=$(ifconfig br-fw-admin | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p')
for anode in $clusternodes ; do
if [ "$anode" != "$myaddr" ] ; then
echo "installing $CLIENT on $anode"
- scp ${SSH_OPTIONS[@]} $CLIENT $anode:$CLIENT
- ssh ${SSH_OPTIONS[@]} $anode dpkg -i $CLIENT
- ssh ${SSH_OPTIONS[@]} $anode rm $CLIENT
+ sshpass -p "r00tme" scp ${SSH_OPTIONS[@]} $CLIENT $anode:$CLIENT
+ sshpass -p "r00tme" ssh ${SSH_OPTIONS[@]} $anode dpkg -i $CLIENT
+ sshpass -p "r00tme" ssh ${SSH_OPTIONS[@]} $anode rm $CLIENT
fi
done
}
@@ -326,7 +325,7 @@ EOF
export LC_ALL=C
export OS_NO_CACHE='true'
export OS_TENANT_NAME='${service_tenant}'
-export OS_PROJECT_NAME='${service_tenant}''
+export OS_PROJECT_NAME='${service_tenant}'
export OS_USERNAME='tacker'
export OS_PASSWORD='tacker'
export OS_AUTH_URL='${auth_uri}'
@@ -343,13 +342,12 @@ function populate_rc() {
dpkg -i deb &&\
rm deb
- sshpass -p "r00tme" scp ${SSH_OPTIONS[@]} root@10.20.0.2:.ssh/id_rsa ${HOME}/.ssh/id_rsa
- clusternodes=$(ssh ${SSH_OPTIONS[@]} root@10.20.0.2 fuel node | cut -d '|' -f 5 | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" )
+ clusternodes=$(sshpass -p "r00tme" ssh ${SSH_OPTIONS[@]} root@10.20.0.2 fuel node | cut -d '|' -f 5 | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" )
myaddr=$(ifconfig br-fw-admin | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p')
for anode in $clusternodes ; do
if [ "$anode" != "$myaddr" ] ; then
echo "populating seetings to $anode"
- scp ${SSH_OPTIONS[@]} tackerc $anode:tackerc
+ sshpass -p "r00tme" scp ${SSH_OPTIONS[@]} tackerc $anode:tackerc
fi
done
}