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
committerBryan Sullivan <bs3131@att.com>2016-02-10 13:17:37 -0800
commit0c521e41f66270fa6bfbbea9ae74ab5a8c72d933 (patch)
tree036d0b05e2a6d6ea0e67b7b8290b63a54ede4250 /components/congress/joid/install_congress_4.sh
parent1b263b123304b4e4f02adfb0cebe5f22437584d5 (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