Hello,

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.
Using the sunstone interface, when creating a new image, the copy operation to the image datastore fails with following error:

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
Tue Apr  8 08:36:55 2014 [ImM][E]: Error copying /var/lib/one/tmp/2860146c0ba5dcbde85dcaebc3b9c809 to /vmfs/volumes/112/2860146c0ba5dcbde85dcaebc3b9c809 through SCP
Tue Apr  8 08:36:55 2014 [ImM][I]: ExitCode: 1
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

"/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:

Original block:
if ! is_cdrom; then
    exec_and_log  "ssh_make_path $DST_HOST $DST" \
                  "Cannot create $DST in $DST_HOST"

    exec_and_log "$SCP -r $SRC/* $DST_HOST:$DST" \
                 "Error copying $SRC to $DST through SCP"
else
    exec_and_log "$SCP $SRC $DST_HOST:$DST" \
                 "Error copying $SRC to $DST through SCP"
fi

Diff:
157c157
<     exec_and_log "$SCP -r $SRC/* $DST_HOST:$DST" \
---
>     exec_and_log "$SCP -r $SRC $DST_HOST:$DST" \


Should we keep this change or there's some configuration we are missing. The vmware image datastore template is bellow:

DATASTORE TEMPLATE                                                             
BASE_PATH="/vmfs/volumes"
BRIDGE_LIST="petra 192.168.1.35"
CLONE_TARGET="SYSTEM"
DISK_TYPE="FILE"
DS_MAD="vmfs"
LN_TARGET="NONE"
TM_MAD="vmfs"
TYPE="IMAGE_DS"

Thanks in advance,


--
Nuno Serro
Coordenador
Núcleo de Infraestruturas e Telecomunicações
Departamento de Informática

Alameda da Universidade  -  Cidade Universitária
1649-004 Lisboa    PORTUGAL
T. +351 210 443 566 - Ext. 19816
E. nse...@reitoria.ulisboa.pt
www.ulisboa.pt

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to