X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Ffetch_os_creds.sh;h=b40b75b75b2900117b45f95c6cac34aa9f907597;hb=07139071a8d3e7d0207ccac05b24b84bf11f712a;hp=0873a68324de5590953f2afa597a8f078beebe7d;hpb=4ef7b78012e3665299cb933448f208783adf6031;p=releng.git diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh index 0873a6832..b40b75b75 100755 --- a/utils/fetch_os_creds.sh +++ b/utils/fetch_os_creds.sh @@ -114,7 +114,7 @@ if [ "$installer_type" == "fuel" ]; then ssh ${ssh_options} "${ssh_user}@${controller_ip}" \ "sudo cat /root/keystonercv3" > "${dest_path}" - if [[ "${BUILD_TAG}" =~ "baremetal" ]]; then + if [[ ! "${BUILD_TAG}" =~ 'virtual' ]]; then ssh ${ssh_options} "${ssh_user}@${installer_ip}" \ "cat /etc/ssl/certs/os_cacert" > "${os_cacert}" fi @@ -164,14 +164,16 @@ elif [ "$installer_type" == "apex" ]; then if [ -f /root/.ssh/id_rsa ]; then chmod 600 /root/.ssh/id_rsa fi - sudo scp $ssh_options root@$installer_ip:/home/stack/overcloudrc.v3 $dest_path -elif [ "$installer_type" == "compass" ]; then - if [ "${BRANCH}" == "master" ]; then - sudo docker cp compass-tasks:/opt/openrc $dest_path &> /dev/null - sudo chown $(whoami):$(whoami) $dest_path - sudo docker cp compass-tasks:/opt/os_cacert $os_cacert + if [ "${BRANCH}" == "stable/fraser" ]; then + rc_file=overcloudrc.v3 else + rc_file=overcloudrc + fi + sudo scp $ssh_options root@$installer_ip:/home/stack/${rc_file} $dest_path + +elif [ "$installer_type" == "compass" ]; then + if [ "${BRANCH}" == "stable/danube" ]; then verify_connectivity $installer_ip controller_ip=$(sshpass -p'root' ssh 2>/dev/null $ssh_options root@${installer_ip} \ 'mysql -ucompass -pcompass -Dcompass -e"select * from cluster;"' \ @@ -201,6 +203,10 @@ elif [ "$installer_type" == "compass" ]; then fi info "public_ip: $public_ip" swap_to_public $public_ip + else + sudo docker cp compass-tasks:/opt/openrc $dest_path &> /dev/null + sudo chown $(whoami):$(whoami) $dest_path + sudo docker cp compass-tasks:/opt/os_cacert $os_cacert fi elif [ "$installer_type" == "joid" ]; then