summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Chapman <michapma@redhat.com>2017-02-08 14:57:29 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-08 14:57:29 +0000
commit3f3658db935f00413faf1390654ac56ed98fbf85 (patch)
tree5e5aba1ef4ae7266ccef50cfb73dc8fe6b2d41eb /lib
parent85d8c83b1d1c153f3e80e9175c6ac94e1aafa1ae (diff)
parentb5687496eacdb4e48a3134b0c338244343c95a01 (diff)
Merge "Adding yardstick installation using docker container"
Diffstat (limited to 'lib')
-rwxr-xr-xlib/post-install-functions.sh10
-rw-r--r--lib/python/apex/deploy_settings.py2
2 files changed, 11 insertions, 1 deletions
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" <<EOI
+sudo yum install docker -y
+sudo systemctl start docker
+sudo systemctl enable docker
+sudo docker pull opnfv/yardstick
+EOI
+ fi
+
# Collect deployment logs
ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI
mkdir -p ~/deploy_logs
diff --git a/lib/python/apex/deploy_settings.py b/lib/python/apex/deploy_settings.py
index 3133d7f8..24287b83 100644
--- a/lib/python/apex/deploy_settings.py
+++ b/lib/python/apex/deploy_settings.py
@@ -24,7 +24,7 @@ REQ_DEPLOY_SETTINGS = ['sdn_controller',
'vpp',
'ceph']
-OPT_DEPLOY_SETTINGS = ['performance', 'vsperf', 'ceph_device']
+OPT_DEPLOY_SETTINGS = ['performance', 'vsperf', 'ceph_device', 'yardstick']
VALID_ROLES = ['Controller', 'Compute', 'ObjectStorage']
VALID_PERF_OPTS = ['kernel', 'nova', 'vpp']