diff options
author | mei mei <meimei@huawei.com> | 2018-03-19 01:42:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-19 01:42:50 +0000 |
commit | 739c2d9550e34798e31fc4931b9f1afc0a582827 (patch) | |
tree | 4477148d9fa5a2fec4a911a4993243ca0485bfd4 /jjb | |
parent | 2f32671b8a98612a3a595590addf758f6e457d7c (diff) | |
parent | 6df4117270358cd2f420e2fd01e2f3f77b486092 (diff) |
Merge "Add sshkey and user config into functest container"
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/functest/functest-alpine.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/jjb/functest/functest-alpine.sh b/jjb/functest/functest-alpine.sh index 788a4cd96..bdd79c486 100755 --- a/jjb/functest/functest-alpine.sh +++ b/jjb/functest/functest-alpine.sh @@ -161,7 +161,19 @@ if [ "${INSTALLER_TYPE}" == 'fuel' ]; then envs="${envs} -e POD_ARCH=${COMPUTE_ARCH}" fi -volumes="${images_vol} ${results_vol} ${sshkey_vol} ${rc_file_vol} ${cacert_file_vol}" + +if [[ ${INSTALLER_TYPE} == 'compass' && ${DEPLOY_SCENARIO} =~ 'odl.*sfc' ]]; then + ssh_key="/tmp/id_rsa" + user_config="/tmp/openstack_user_config.yml" + docker cp compass-tasks:/root/.ssh/id_rsa $ssh_key + docker cp compass-tasks:/etc/openstack_deploy/openstack_user_config.yml $user_config + sshkey_vol="-v ${ssh_key}:/root/.ssh/id_rsa" + userconfig_vol="-v ${user_config}:${user_config}" + envs="${envs} -e EXTERNAL_NETWORK=${EXTERNAL_NETWORK}" +fi + + +volumes="${images_vol} ${results_vol} ${sshkey_vol} ${userconfig_vol} ${rc_file_vol} ${cacert_file_vol}" set +e |