X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=utils%2Ffetch_os_creds.sh;h=d1b192dcb3d999fe4da6cc1d6d94f3ccb5f3adf4;hb=5915d16f45b31f30359e47ebca1d9155d042edbe;hp=7856e0dd73a6aae184c7e20da6719ec0cb6ad813;hpb=b9bd6de7e6fe877a78bdffdf31288acc1f5f135a;p=releng.git diff --git a/utils/fetch_os_creds.sh b/utils/fetch_os_creds.sh index 7856e0dd7..d1b192dcb 100755 --- a/utils/fetch_os_creds.sh +++ b/utils/fetch_os_creds.sh @@ -106,13 +106,16 @@ elif [ "$installer_type" == "apex" ]; then # The credentials file is located in the Instack VM (192.0.2.1) # NOTE: This might change for bare metal deployments info "Fetching rc file from Instack VM $installer_ip..." + if [ -f /root/.ssh/id_rsa ]; then + chmod 600 /root/.ssh/id_rsa + fi sudo scp $ssh_options root@$installer_ip:/home/stack/overcloudrc $dest_path elif [ "$installer_type" == "compass" ]; 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;"' \ - | awk -F"," '{for(i=1;i