summaryrefslogtreecommitdiffstats
path: root/jjb/compass4nfv/compass-deploy-bare.sh
diff options
context:
space:
mode:
authormeimei <meimei@huawei.com>2016-01-08 14:50:09 +0800
committermeimei <meimei@huawei.com>2016-01-08 18:23:27 +0800
commit946147ef544271432a6fd02b1c8d99326af7ddd7 (patch)
tree36b4733d83681bc2a0741b1b840a4dc4440d965d /jjb/compass4nfv/compass-deploy-bare.sh
parentac1003f22ee1929d74278a1e3c1434bba02d5428 (diff)
Enable compass Arno scenario for master and stable/brahmaputra
This patch proposes below changes: - Run CI on intel-pod8(master) & huawei-us-deploy-bare-1(brahmaputra) - Configure functest and yardstick against both branches on both PODs Change-Id: Ie46f938f9485a43ff93650ef37f84d7bc211acb8 Signed-off-by: meimei <meimei@huawei.com> Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/compass4nfv/compass-deploy-bare.sh')
-rw-r--r--jjb/compass4nfv/compass-deploy-bare.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/jjb/compass4nfv/compass-deploy-bare.sh b/jjb/compass4nfv/compass-deploy-bare.sh
new file mode 100644
index 000000000..1e5c62bdd
--- /dev/null
+++ b/jjb/compass4nfv/compass-deploy-bare.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+set -x
+
+# log info to console
+echo "Starting the deployment on baremetal environment using $INSTALLER_TYPE. This could take some time..."
+echo "--------------------------------------------------------"
+echo
+
+export CONFDIR=$WORKSPACE/deploy/conf/hardware_environment/huawei_us_lab/pod1
+export ISO_URL=file://$BUILD_DIRECTORY/compass.iso
+export EXTERNAL_NIC=eth0
+export INSTALL_NIC=eth1
+
+cd $WORKSPACE
+
+export OS_VERSION=${{COMPASS_OS_VERSION}}
+export OPENSTACK_VERSION=${{COMPASS_OPENSTACK_VERSION}}
+./deploy.sh --dha $CONFDIR/dha.yml --network $CONFDIR/network.yml
+if [ $? -ne 0 ]; then
+ echo "depolyment failed!"
+ deploy_ret=1
+fi
+
+echo
+echo "--------------------------------------------------------"
+echo "Done!"
+
+ssh_options="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
+sshpass -p root scp 2>/dev/null $ssh_options root@${{INSTALLER_IP}}:/var/ansible/run/openstack_${{COMPASS_OPENSTACK_VERSION}}-opnfv2/ansible.log ./ &> /dev/null
+
+exit $deploy_ret