From 8823495d428e33335c6012e056278e86b34ea3c7 Mon Sep 17 00:00:00 2001 From: zshi Date: Mon, 27 Feb 2017 10:36:42 +0800 Subject: Adding dovetail installation using docker container This patch adds dovetail option to deploy settings, installs dovetail image to undercloud. Change-Id: If7a763d9f6b27655dbb1f5855f438ab11bd88a82 Signed-off-by: zshi --- config/deploy/deploy_settings.yaml | 3 +++ lib/post-install-functions.sh | 17 +++++++++++++++-- lib/python/apex/deploy_settings.py | 6 +++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/config/deploy/deploy_settings.yaml b/config/deploy/deploy_settings.yaml index 9d028a47..b3d3ac2b 100644 --- a/config/deploy/deploy_settings.yaml +++ b/config/deploy/deploy_settings.yaml @@ -88,3 +88,6 @@ deploy_options: # Set yardstick option to install yardstick #yardstick: false + + # Set dovetail option to install dovetail + #dovetail: false diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index 22d7c20d..ae79ea5e 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -213,16 +213,29 @@ EOI overcloud_connect "compute0" "sudo sh -c 'cd /var/opt/vsperf/systems/ && ./build_base_machine.sh 2>&1 > /var/log/vsperf.log'" fi - # install docker and pull yardstick image - if [[ "${deploy_options_array['yardstick']}" == 'True' ]]; then + # install docker + if [ "${deploy_options_array['yardstick']}" == 'True' ] || [ "${deploy_options_array['dovetail']}" == 'True' ]; then ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <