summaryrefslogtreecommitdiffstats
path: root/components/congress/joid/install_congress_4.sh
diff options
context:
space:
mode:
authorBryan Sullivan <bs3131@att.com>2016-02-10 13:17:37 -0800
committerblsaws <bs3131@att.com>2016-04-01 08:30:07 -0700
commit64e4823ae0eb90010f19a4648dc1814883a002d6 (patch)
tree9c139ae1b778ff266061b5fc25db6c5f13fd463b /components/congress/joid/install_congress_4.sh
parentddd30aace0b76befa6e7938237f9451d1a6a8c7d (diff)
Add "source" to remote commands executed via juju ssh.
JIRA: COPPER-2 Change-Id: I49821d730a6a2840b5bdeadba8856218bcbe521b Signed-off-by: Bryan Sullivan <bs3131@att.com>
Diffstat (limited to 'components/congress/joid/install_congress_4.sh')
-rw-r--r--components/congress/joid/install_congress_4.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/components/congress/joid/install_congress_4.sh b/components/congress/joid/install_congress_4.sh
index bf40685..c5a2714 100644
--- a/components/congress/joid/install_congress_4.sh
+++ b/components/congress/joid/install_congress_4.sh
@@ -42,7 +42,11 @@ sudo apt-get install git gcc python-dev libxml2 libxslt1-dev libzip-dev -y
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password opnfvmysql'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password opnfvmysql'
sudo -E apt-get -q -y install mysql-server python-mysqldb
-sudo pip install virtualenv
+sudo pip install virtualenvsource ~/admin-openrc.sh <<EOF
+openstack
+EOF
+source ~/env.sh
+
# clone congressedit congress.conf.sample as needed
mkdir ~/git
cd ~/git
@@ -146,7 +150,8 @@ sudo bin/congress-server &
# disown the process (so it keeps running if you get disconnected)
disown -h %1
# Create data sources
-# To remove datasources: openstack congress datasource delete <name> Probably good to do these commands in a new terminal tab, as the congress server log from the last command will be flooding your original terminal screen…
+# To remove datasources: openstack congress datasource delete <name>
+# May need to insert a delay here, as nova datasource seems to fail to get setup (server not ready?)
openstack congress datasource create nova "nova" \
--config username=$OS_USERNAME \
--config tenant_name=$OS_TENANT_NAME \
@@ -179,4 +184,4 @@ openstack congress datasource create keystone "keystone" \
--config auth_url=http://$KEYSTONE_HOST:5000/v2.0
# Run Congress Tempest Tests
cd ~/git/congress
-tox -epy27
+# tox -epy27