summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblsaws <bryan.sullivan@att.com>2016-08-31 20:20:22 -0700
committerblsaws <bryan.sullivan@att.com>2016-08-31 20:20:22 -0700
commit134ed14ddcda97ff8ac7ff2d473d405b6d31f407 (patch)
tree212d73c11a7b4c217e0f9a6cd2a5d07ce0ddd3b9
parente422ced611b6e62c0414af80430f6fb62794dc33 (diff)
Install diamond plugin
JIRA: MODELS-23 Change-Id: Iee95f5b2736536c6cda8ac1ae5643575d1651206 Signed-off-by: blsaws <bryan.sullivan@att.com>
-rw-r--r--tests/utils/cloudify-setup.sh23
-rw-r--r--tests/vHello.sh4
2 files changed, 22 insertions, 5 deletions
diff --git a/tests/utils/cloudify-setup.sh b/tests/utils/cloudify-setup.sh
index 71b0822..e5cb637 100644
--- a/tests/utils/cloudify-setup.sh
+++ b/tests/utils/cloudify-setup.sh
@@ -235,9 +235,10 @@ if [ "$1" == "cloudify-manager" ]; then
cfy ssh -c "sudo yum install -y gcc gcc-c++ python-devel"
else
echo "$0: Prepare the Cloudify CLI prerequisites and data"
+
+ echo "$0: Install Cloudify OpenStack Plugin"
cd /tmp/cloudify
- git clone https://github.com/cloudify-cosmo/cloudify-openstack-plugin.git
- cd cloudify-openstack-plugin
+ git clone https://github.com/cloudify-cosmo/cloudify-openstack-plugin.git
echo "Create management network"
if [ $(neutron net-list | awk "/ cloudify_mgmt / { print \$2 }") ]; then
@@ -258,8 +259,24 @@ else
neutron router-interface-add cloudify_mgmt_router subnet=cloudify_mgmt
echo "$0: Patch plugin.yaml to reference management network"
- sed -i -- "s/management_network_name:\n default: ''/management_network_name:\n default: 'cloudify_mgmt'/" /tmp/cloudify/cloudify-openstack-plugin/plugin.yaml
+ sed -i -- ":a;N;\$!ba;s/management_network_name:\n default: ''/management_network_name:\n default: 'cloudify_mgmt'/" /tmp/cloudify/cloudify-openstack-plugin/plugin.yaml
+ cd cloudify-openstack-plugin
+ python setup.py build
+ python setup.py install
+ cd ..
+
+ echo "$0: Install Cloudify Fabric (SSH) Plugin"
+ git clone https://github.com/cloudify-cosmo/cloudify-fabric-plugin.git
+ cd cloudify-fabric-plugin
+ python setup.py build
+ python setup.py install
+ cd ..
+
+ echo "$0: Install Cloudify Diamond Plugin"
+ git clone https://github.com/cloudify-cosmo/cloudify-diamond-plugin.git
+ cd cloudify-diamond-plugin
python setup.py build
python setup.py install
+ cd ..
fi
diff --git a/tests/vHello.sh b/tests/vHello.sh
index 51c2a67..b315e0c 100644
--- a/tests/vHello.sh
+++ b/tests/vHello.sh
@@ -154,8 +154,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-cli-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 -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
+ # don't use --install-plugins, causes openstack plugin 1.4.1 to be rolled back to 1.4 and then an error
+ cfy local install -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
echo "$0: get vHello server address"