diff options
author | 2016-08-31 18:19:35 -0700 | |
---|---|---|
committer | 2016-08-31 18:19:35 -0700 | |
commit | e437bd1fd296590707df199dfe915252452cbcdb (patch) | |
tree | feddf778712028699683b31c37db8c2982140e58 | |
parent | b8fa06444772f33fcc6e5fdd2543b576c72f1dfa (diff) |
Further tweaks on Tacker and Cloudify tests.
JIRA: MODELS-23
Change-Id: I38410b626cbc29097ea1d69711916d54b416e7c4
Signed-off-by: blsaws <bryan.sullivan@att.com>
-rw-r--r-- | tests/utils/tacker-setup.sh | 7 | ||||
-rw-r--r-- | tests/vHello.sh | 23 |
2 files changed, 17 insertions, 13 deletions
diff --git a/tests/utils/tacker-setup.sh b/tests/utils/tacker-setup.sh index 2fd04f4..3037131 100644 --- a/tests/utils/tacker-setup.sh +++ b/tests/utils/tacker-setup.sh @@ -165,7 +165,7 @@ echo "$0: Upgrage pip again - needs to be the latest version due to errors found pip install --upgrade echo "$0: install python-openstackclient python-glanceclient" -pip install --upgrade python-openstackclient python-glanceclient python-neutronclient +pip install --upgrade python-openstackclient python-glanceclient python-neutronclient keystonemiddleware echo "$0: Create virtualenv" virtualenv /tmp/tacker/venv @@ -223,9 +223,10 @@ sed -i -- "s~auth_uri = http://<KEYSTONE_IP>:5000~auth_uri = http://$KEYSTONE_HO sed -i -- "s~# connection = mysql://root:pass@127.0.0.1:3306/tacker~connection = mysql://root:$MYSQL_PASSWORD@$ip:3306/tacker?charset=utf8~" /usr/local/etc/tacker/tacker.conf sed -i -- ":a;N;$!ba;s~password = service-password\nusername = nova\nauth_url = http://127.0.0.1:35357~password = $OS_PASSWORD\nauth_url = http://$NOVA_HOST:35357~g" /usr/local/etc/tacker/tacker.conf sed -i -- "s~heat_uri = http://localhost:8004/v1~heat_uri = http://$HEAT_HOST:8004/v1~" /usr/local/etc/tacker/tacker.conf +sed -i -- "s~# api_paste_config = api-paste.ini~api_paste_config = /tmp/tacker/tacker/etc/tacker/api-paste.ini~" /usr/local/etc/tacker/tacker.conf echo "$0: Populate Tacker database" -/usr/local/bin/tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head +/tmp/tacker/venv/bin/tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head echo "$0: Install Tacker Client" cd /tmp/tacker @@ -246,6 +247,6 @@ python setup.py install #service apache2 restart echo "$0: Start the Tacker Server" -python /usr/local/bin/tacker-server --config-file /usr/local/etc/tacker/tacker.conf --log-file /var/log/tacker/tacker.log +python /tmp/tacker/venv/bin/tacker-server --config-file /usr/local/etc/tacker/tacker.conf --log-file /var/log/tacker/tacker.log # Registering default VIM: deferrred diff --git a/tests/vHello.sh b/tests/vHello.sh index 317cd1e..adb5c8e 100644 --- a/tests/vHello.sh +++ b/tests/vHello.sh @@ -69,9 +69,15 @@ start() { cd /tmp/cloudify/blueprints echo "$0: clone cloudify-hello-world-example" - git clone https://github.com/cloudify-cosmo/cloudify-hello-world-example.git - cd cloudify-hello-world-example - git checkout 3.4.1-build + if [[ "$1" == "cloudify-manager" ]]; then + git clone https://github.com/cloudify-cosmo/cloudify-hello-world-example.git + cd cloudify-hello-world-example + git checkout 3.4.1-build + else + git clone https://github.com/blsaws/cloudify-cli-hello-world-example.git + cd cloudify-cli-hello-world-example + git checkout 3.4.1-build + fi echo "$0: setup OpenStack CLI environment" source /tmp/cloudify/admin-openrc.sh @@ -114,6 +120,9 @@ flavor: m1.small external_network_name: $floating_network_name webserver_port: 8080 key_name: vHello +ssh_key_filename: ~/.ssh/vHello.pem +ssh_user: ubuntu +ssh_port: 22 EOF fi @@ -143,14 +152,8 @@ EOF SERVER_URL=$(cfy deployments outputs -d vHello | awk "/ Value: / { print \$2 }") else echo "$0: install local blueprint" - cfy local install --install-plugins -i vHello-inputs.yaml -p cloudify-hello-world-example/blueprint.yaml --allow-custom-parameters --parameters="floating_network_name=$floating_network_name" --task-retries=10 --task-retry-interval=30 + cfy local install --install-plugins -i vHello-inputs.yaml -p cloudify-cli-hello-world-example/blueprint.yaml --allow-custom-parameters --parameters="floating_network_name=$floating_network_name" --task-retries=10 --task-retry-interval=30 if [ $? -eq 1 ]; then fail; fi -# cfy local install replaces the following, per http://getcloudify.org/2016/04/07/cloudify-update-from-developers-features-improvements-open-source-python-devops.html -# cfy local init --install-plugins -i vHello-inputs.yaml -p cloudify-hello-world-example/blueprint.yaml -# cfy local execute -w install -# Not sure if needed -# cfy local create-requirements -p cloudify-hello-world-example/blueprint.yaml -# if [ $? -eq 1 ]; then fail; fi echo "$0: get vHello server address" SERVER_URL=$(cfy local outputs | awk "/http_endpoint/ { print \$2 }" | sed -- 's/"//g') |