mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #1661: Fix for clone operation with VMFS datastores using ssh connections
(cherry picked from commit 7a69e55e76)
This commit is contained in:
1 parent
600e43ad01
commit
d831fca9f0
1 file changed
+2
-1
@@ -80,7 +80,8 @@ vmfs_set_up
|
||||
log "Copying local image $SRC to the image repository"
|
||||
|
||||
if [ "$USE_SSH" == "yes" ]; then
|
||||
ssh_exec_and_log "$VMKFSTOOLS $VI_PARAMS $SRC $DST" "Error copying $SRC to $DST"
|
||||
ssh_make_path $DST_HOST /vmfs/volumes/$DS_ID/$DST_FOLDER
|
||||
ssh_exec_and_log $DST_HOST "$VMKFSTOOLS $VI_PARAMS -i /vmfs/volumes/$DS_ID/$SRC_FOLDER/disk.vmdk /vmfs/volumes/$DS_ID/$DST_FOLDER/disk.vmdk" "Error copying /vmfs/volumes/$DS_ID/$SRC_FOLDER/disk.vmdk to /vmfs/volumes/$DS_ID/$DST_FOLDER/disk.vmdk"
|
||||
else
|
||||
exec_and_log "vifs $VI_PARAMS --copy [$DS_ID]$SRC_FOLDER [$DS_ID]$DST_FOLDER" \
|
||||
"Error copying $SRC to $DST"
|
||||
|
||||
Reference in new issue
Block a user