diff options
author | Tim Rozet <trozet@redhat.com> | 2017-02-27 21:38:16 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-27 21:38:16 +0000 |
commit | 6ca14edd7c23af7078be6a78ffb3ea3ecf03e603 (patch) | |
tree | abdacf30b388fc6bff2b8230d0139f22040b243c /lib | |
parent | 6c426c7e7ac0bc4b22a6339be3d31eecaef57f46 (diff) | |
parent | 8823495d428e33335c6012e056278e86b34ea3c7 (diff) |
Merge "Adding dovetail installation using docker container"
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/post-install-functions.sh | 17 | ||||
-rw-r--r-- | lib/python/apex/deploy_settings.py | 6 |
2 files changed, 20 insertions, 3 deletions
diff --git a/lib/post-install-functions.sh b/lib/post-install-functions.sh index c09383d6..abc43952 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" <<EOI sudo yum install docker -y sudo systemctl start docker sudo systemctl enable docker +EOI + fi + + # pull yardstick image + if [ "${deploy_options_array['yardstick']}" == 'True' ]; then + ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI sudo docker pull opnfv/yardstick EOI fi + # pull dovetail image + if [ "${deploy_options_array['dovetail']}" == 'True' ]; then + ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI +sudo docker pull opnfv/dovetail +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 2a9d5a67..0d1939a4 100644 --- a/lib/python/apex/deploy_settings.py +++ b/lib/python/apex/deploy_settings.py @@ -25,7 +25,11 @@ REQ_DEPLOY_SETTINGS = ['sdn_controller', 'ceph', 'gluon'] -OPT_DEPLOY_SETTINGS = ['performance', 'vsperf', 'ceph_device', 'yardstick'] +OPT_DEPLOY_SETTINGS = ['performance', + 'vsperf', + 'ceph_device', + 'yardstick', + 'dovetail'] VALID_ROLES = ['Controller', 'Compute', 'ObjectStorage'] VALID_PERF_OPTS = ['kernel', 'nova', 'vpp'] |