From b5687496eacdb4e48a3134b0c338244343c95a01 Mon Sep 17 00:00:00 2001 From: Manjunath Ranganathaiah Date: Mon, 23 Jan 2017 14:12:12 -0500 Subject: Adding yardstick installation using docker container This patch adds yardstick option to deploy settings, installs docker and yardstick image to undercloud. Change-Id: I3a2a1d6bcdfe5becd11d6d9f22218837c572d5da Signed-off-by: Manjunath Ranganathaiah --- config/deploy/deploy_settings.yaml | 3 +++ lib/post-install-functions.sh | 10 ++++++++++ lib/python/apex/deploy_settings.py | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/deploy/deploy_settings.yaml b/config/deploy/deploy_settings.yaml index ea35ae70..9d028a47 100644 --- a/config/deploy/deploy_settings.yaml +++ b/config/deploy/deploy_settings.yaml @@ -85,3 +85,6 @@ deploy_options: # isolcpus: 0 # hugepage: 2M # intel_iommu: 'on' + + # Set yardstick option to install yardstick + #yardstick: false diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index 55b4fe4d..e2d9327d 100755 --- a/lib/post-install-functions.sh +++ b/lib/post-install-functions.sh @@ -202,6 +202,16 @@ 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 + ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <