Bugfix: Permission denied when fetching Apex id_rsa file 93/38493/1
authorxudan <xudan16@huawei.com>
Tue, 1 Aug 2017 02:13:31 +0000 (22:13 -0400)
committerxudan <xudan16@huawei.com>
Tue, 1 Aug 2017 02:13:31 +0000 (22:13 -0400)
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 <xudan16@huawei.com>
jjb/dovetail/dovetail-run.sh

index 418d66f..f75cdde 100755 (executable)
@@ -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