diff options
author | dongwenjuan <dong.wenjuan@zte.com.cn> | 2018-03-14 16:10:15 +0800 |
---|---|---|
committer | dongwenjuan <dong.wenjuan@zte.com.cn> | 2018-03-29 09:49:26 +0800 |
commit | 5f3ff20c66449604aaf89a1e7e441d67277a4840 (patch) | |
tree | 7e438c6f4c6be98658b39876dbc5a82e89005954 | |
parent | 7862b47133a7ec4f85cb8b3a1b8ea7452fe41bc1 (diff) |
bugfix: missing mcp ssh_key mapping
For doctor test, we need the ssh_key to access to installer, controller
and compute nodes in functest container.
Change-Id: I821b7413e2e18064576c2ddbdb611eda5f3fd19b
Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
-rwxr-xr-x | jjb/functest/functest-env-presetup.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jjb/functest/functest-env-presetup.sh b/jjb/functest/functest-env-presetup.sh index b7d33e760..4738121de 100755 --- a/jjb/functest/functest-env-presetup.sh +++ b/jjb/functest/functest-env-presetup.sh @@ -45,5 +45,11 @@ elif [[ ${INSTALLER_TYPE} == 'daisy' ]]; then echo "No available installer VM exists...exiting" exit 1 fi + +elif [[ ${INSTALLER_TYPE} == 'fuel' ]]; then + if [[ ! "${BRANCH}" =~ "danube" ]]; then + echo "Map mcp ssh_key" + export sshkey_vol="-v ${SSH_KEY}:/root/.ssh/id_rsa" + fi fi |