diff options
author | 2016-04-06 20:47:25 -0700 | |
---|---|---|
committer | 2016-04-07 06:04:59 -0700 | |
commit | 9f1965c9532c3161ace02866fb93711eb66264ee (patch) | |
tree | 6de672be4470a9d057e52d43ce9ab3b749cbf893 /components/congress/joid/install_congress_1b.sh | |
parent | 845ed8c36fad54b9d256d47541c22eb170686fc6 (diff) |
Further edits for Horizon-LXC install testing. Try 3.
JIRA: COPPER-2
Change-Id: I016a5a495c68c725546855597ac9a4ea483e7107
Signed-off-by: blsaws <bs3131@att.com>
Diffstat (limited to 'components/congress/joid/install_congress_1b.sh')
-rw-r--r-- | components/congress/joid/install_congress_1b.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/components/congress/joid/install_congress_1b.sh b/components/congress/joid/install_congress_1b.sh index 2063dbe..7fae148 100644 --- a/components/congress/joid/install_congress_1b.sh +++ b/components/congress/joid/install_congress_1b.sh @@ -54,7 +54,7 @@ fi echo "Create the environment file and copy to the congress server" cat <<EOF >~/env.sh export CONGRESS_HOST=$CONGRESS_HOST -export HORIZON_HOST=$(juju status --format=short | awk "/openstack-dashboard\/0/ { print \$3 }") +export HORIZON_HOST=$(juju status --format=short | awk "/openstack-dashboard/ { print \$3 }") export KEYSTONE_HOST=$(juju status --format=short | awk "/keystone\/0/ { print \$3 }") export CEILOMETER_HOST=$(juju status --format=short | awk "/ceilometer\/0/ { print \$3 }") export CINDER_HOST=$(juju status --format=short | awk "/cinder\/0/ { print \$3 }") @@ -80,9 +80,7 @@ sudo apt-get install python-pip -y echo "install other dependencies" sudo apt-get install apg git gcc python-dev libxml2 libxslt1-dev libzip-dev -y - -echo "Install virtualenv" -sudo pip install virtualenv +sudo pip install --upgrade pip virtualenv setuptools pbr tox echo "Clone congress" mkdir ~/git @@ -140,10 +138,14 @@ openstack endpoint create $CONGRESS_SERVICE \ --adminurl http://$CONGRESS_HOST:1789/ \ --internalurl http://$CONGRESS_HOST:1789/ +echo "Start the Congress service" +ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ubuntu@$CONGRESS_HOST "nohup ~/git/congress/bin/congress-server; exit" + +echo "Wait 30 seconds for Congress service to startup" +sleep 30 + echo "Create data sources" # To remove datasources: openstack congress datasource delete <name> -# Insert a delay here, as nova datasource seems to fail to get setup (server not ready?) -sleep 10 openstack congress datasource create nova "nova" \ --config username=$OS_USERNAME \ --config tenant_name=$OS_TENANT_NAME \ |