<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
We've been trying to deploy vmware virtual machines with opennebula
(4.4.1) and esxi (5.5.0-U1) and we found a problem creating an
image. <br>
Using the sunstone interface, when creating a new image, the copy
operation to the image datastore fails with following error:<br>
<br>
Tue Apr 8 08:36:55 2014 [ImM][E]: cp: Command "scp -r
/var/lib/one/tmp/2860146c0ba5dcbde85dcaebc3b9c809/*
192.168.1.35:/vmfs/volumes/112/2860146c0ba5dcbde85dcaebc3b9c809"
failed: /var/lib/one/tmp/2860146c0ba5dcbde85dcaebc3b9c809/*: Not a
directory<br>
Tue Apr 8 08:36:55 2014 [ImM][E]: Error copying
/var/lib/one/tmp/2860146c0ba5dcbde85dcaebc3b9c809 to
/vmfs/volumes/112/2860146c0ba5dcbde85dcaebc3b9c809 through SCP<br>
Tue Apr 8 08:36:55 2014 [ImM][I]: ExitCode: 1<br>
Tue Apr 8 08:36:55 2014 [ImM][E]: Error copying image in the
datastore: Error copying
/var/lib/one/tmp/2860146c0ba5dcbde85dcaebc3b9c809 to
/vmfs/volumes/112/2860146c0ba5dcbde85dcaebc3b9c809 through SCP<br>
<br>
"/var/lib/one/tmp/2860146c0ba5dcbde85dcaebc3b9c809" is a file and
not a directory, so we corrected the error by changing the file
/var/lib /one/remotes/datastore/vmfs/cp as follows:<br>
<br>
Original block:<br>
if ! is_cdrom; then<br>
exec_and_log "ssh_make_path $DST_HOST $DST" \<br>
"Cannot create $DST in $DST_HOST"<br>
<br>
exec_and_log "$SCP -r $SRC/* $DST_HOST:$DST" \<br>
"Error copying $SRC to $DST through SCP"<br>
else<br>
exec_and_log "$SCP $SRC $DST_HOST:$DST" \<br>
"Error copying $SRC to $DST through SCP"<br>
fi<br>
<br>
Diff:<br>
157c157<br>
< exec_and_log "$SCP -r $SRC/* $DST_HOST:$DST" \<br>
---<br>
> exec_and_log "$SCP -r $SRC $DST_HOST:$DST" \<br>
<br>
<br>
Should we keep this change or there's some configuration we are
missing. The vmware image datastore template is bellow:<br>
<br>
DATASTORE
TEMPLATE
<br>
BASE_PATH="/vmfs/volumes"<br>
BRIDGE_LIST="petra 192.168.1.35"<br>
CLONE_TARGET="SYSTEM"<br>
DISK_TYPE="FILE"<br>
DS_MAD="vmfs"<br>
LN_TARGET="NONE"<br>
TM_MAD="vmfs"<br>
TYPE="IMAGE_DS"<br>
<br>
Thanks in advance,<br>
<br>
<br>
--<br>
<span style="font-family:"Times New
Roman","serif"">Nuno Serro</span><span
style="font-size:9.0pt;font-family:"Times New
Roman","serif""><br>
Coordenador<br>
Núcleo de Infraestruturas e Telecomunicações<br>
Departamento de Informática <br>
<br>
Alameda da Universidade - Cidade Universitária<br>
1649-004 Lisboa PORTUGAL<br>
T. +351 210 443 566 - Ext. 19816<br>
E. <a href="mailto:nserro@reitoria.ulisboa.pt"><span
style="color:windowtext">nserro@reitoria.ulisboa.pt</span></a>
<br>
<a href="http://www.ulisboa.pt/"><span style="color:windowtext">www.ulisboa.pt</span></a>
</span><br>
</body>
</html>