From: xudan Date: Tue, 1 Aug 2017 02:13:31 +0000 (-0400) Subject: Bugfix: Permission denied when fetching Apex id_rsa file X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=054cc9c27668ccd18d970ee0c88138178301478b;p=releng.git Bugfix: Permission denied when fetching Apex id_rsa file JIRA: DOVETAIL-472 It's permission denied When copy id_rsa file from Apex undercloud. Add sudo to the scp operation. Change-Id: I97bd8a74c406269d066dcde36978c17aa3ce6be2 Signed-off-by: xudan --- diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh index 418d66fb1..f75cddefe 100755 --- a/jjb/dovetail/dovetail-run.sh +++ b/jjb/dovetail/dovetail-run.sh @@ -119,7 +119,7 @@ fi if [ "$INSTALLER_TYPE" == "apex" ]; then echo "Fetching id_rsa file from jump_server $INSTALLER_IP..." - scp $ssh_options stack@${INSTALLER_IP}:~/.ssh/id_rsa ${DOVETAIL_CONFIG}/id_rsa + sudo scp $ssh_options stack@${INSTALLER_IP}:~/.ssh/id_rsa ${DOVETAIL_CONFIG}/id_rsa fi # sdnvpn test case needs to download this image first before running