summaryrefslogtreecommitdiffstats
path: root/components/congress/install/bash/install_congress_1.sh
diff options
context:
space:
mode:
authorblsaws <bryan.sullivan@att.com>2016-05-25 10:53:51 -0700
committerblsaws <bryan.sullivan@att.com>2016-05-25 10:53:51 -0700
commitbcfefca88df9ec95f8d56f145c0d267c2c83305b (patch)
treef85031faa2a26f4e0fca735eba04b2e5b09c693d /components/congress/install/bash/install_congress_1.sh
parent018b27181aeeac8ffeeabd25eaf521ed7de7e5f8 (diff)
root-based install with no virtualenv
JIRA: COPPER-2 Change-Id: I116791376b793ba838f230d23e7ec33cfbe5da62 Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'components/congress/install/bash/install_congress_1.sh')
-rw-r--r--components/congress/install/bash/install_congress_1.sh28
1 files changed, 13 insertions, 15 deletions
diff --git a/components/congress/install/bash/install_congress_1.sh b/components/congress/install/bash/install_congress_1.sh
index 28e1102..791d411 100644
--- a/components/congress/install/bash/install_congress_1.sh
+++ b/components/congress/install/bash/install_congress_1.sh
@@ -31,6 +31,8 @@
set -x
+sudo -i
+
if [ $# -eq 1 ]; then osbranch=$1; fi
if [ -d ~/congress ]; then rm -rf ~/congress; fi
@@ -65,13 +67,14 @@ EOF
echo "Update package repos"
sudo apt-get update
echo "install pip"
- sudo apt-get install python-pip -y
+ 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
- sudo pip install --upgrade pip virtualenv setuptools pbr tox
+ apt-get install apg git gcc python-dev libxml2 libxslt1-dev libzip-dev -y
+ pip install --upgrade pip virtualenv setuptools pbr tox
sed -i -- 's/echo/#echo/g' ~/admin-openrc.sh
sed -i -- 's/read -sr OS_PASSWORD_INPUT/#read -sr OS_PASSWORD_INPUT/g' ~/admin-openrc.sh
sed -i -- 's/$OS_PASSWORD_INPUT/openstack/g' ~/admin-openrc.sh
+ cp ~/admin-openrc.sh ~/congress
else
# Centos
echo "Centos-based install"
@@ -92,11 +95,11 @@ EOF
source ~/congress/env.sh
CTLUSER="heat-admin"
ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $CTLUSER@$CONTROLLER_HOST1 "mkdir ~/congress; exit"
- scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ~/congress/env.sh $CTLUSER@$CONTROLLER_HOST1:/home/$CTLUSER/congress/
+ scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ~/congress/env.sh $CTLUSER@$CONTROLLER_HOST1:/home/$CTLUSER/congress
echo "Setup env for overcloud API access and copy to congress server"
source ~/overcloudrc
- cp ~/overcloudrc ~/admin-openrc.sh
export OS_REGION_NAME=$(openstack endpoint list | awk "/ nova / { print \$4 }")
+ cp ~/overcloudrc ~/congress/admin-openrc.sh
# sed command below is a workaound for a bug - region shows up twice for some reason
cat <<EOF | sed '$d' >>~/admin-openrc.sh
export OS_REGION_NAME=$OS_REGION_NAME
@@ -107,18 +110,13 @@ EOF
ssh -x -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $CTLUSER@$CONTROLLER_HOST1 "source ~/congress/install_congress_2.sh; exit"
echo "Install jumphost dependencies"
echo "install pip"
- sudo yum install python-pip -y
+ yum install python-pip -y
echo "install other dependencies"
- sudo yum install apg git gcc libxml2 python-devel libzip-devel libxslt-devel -y
- sudo pip install --upgrade pip virtualenv setuptools pbr tox
+ yum install apg git gcc libxml2 python-devel libzip-devel libxslt-devel -y
+ pip install --upgrade pip virtualenv setuptools pbr tox
source ~/admin-openrc.sh
fi
-echo "Create virtualenv"
-virtualenv ~/congress/venv
-cd ~/congress/venv
-source bin/activate
-
echo "Clone congress"
cd ~/congress
git clone https://github.com/openstack/congress.git
@@ -233,9 +231,9 @@ openstack congress datasource create keystone "keystone" \
echo "Install tox test dependencies"
if [ "$dist" == "Ubuntu" ]; then
- sudo apt-get install -y libffi-dev libssl-dev
+ apt-get install -y libffi-dev libssl-dev
else
- sudo yum install -y libffi-devel openssl-devel
+ yum install -y libffi-devel openssl-devel
fi
echo "Run Congress tox Tests"