[one-users] Two problems with vmfs image datastores

Stephen Levy stephen.levy at telogis.com
Mon Apr 14 15:00:52 PDT 2014


I created a vmware datastore for images as described in vmware quickstart
guide.  I see the following two errors while trying to import images from
the Marketplace.

1.  I tried to import the "CentOS Server 6.2 -VMWware" image, but it had an
error (presumably after it finished downloading):

        Mon Apr 14 16:44:56 2014 [ImM][I]: cp: Downloading
http://marketplace.c12g.com/appliance/4ff2ce348fb81d4406000003/download/0to
the image repository
        Mon Apr 14 16:44:56 2014 [ImM][E]: cp: Command "mv -f
/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/
/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk" failed: mv:
cannot move `/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/' to a

        subdirectory of itself,
`/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk'
        Mon Apr 14 16:44:56 2014 [ImM][E]: Error renaming file
/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/ to
/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk
        Mon Apr 14 16:44:56 2014 [ImM][I]: ExitCode: 1
        Mon Apr 14 16:44:56 2014 [ImM][E]: Error copying image in the
datastore: Error renaming file
/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/ to
/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk

2.  I tried tried to import another image from the marketplace (ttylinux -
VMware), and it looks like it successfully downloaded and moved the file
this time within the tmp directory, however, when it tried to SCP the file
over to the vmfs datastore on my vmware host, I saw the following error:

       Mon Apr 14 16:29:38 2014 [ImM][I]: cp: Downloading
http://marketplace.c12g.com/appliance/4ff2d3aa8fb81d4406000004/download/0to
the image repository
       Mon Apr 14 16:29:38 2014 [ImM][E]: cp: Command "scp -r
/var/lib/one/tmp/68236b9cb3208691244d1eb016153092/*
10.20.82.54:/vmfs/volumes/108/"
failed: scp: /vmfs/volumes/108/68236b9cb3208691244d1eb016153092: No such
       file or directory
       Mon Apr 14 16:29:38 2014 [ImM][E]: Error copying
/var/lib/one/tmp/68236b9cb3208691244d1eb016153092 to
/vmfs/volumes/108/68236b9cb3208691244d1eb016153092 through SCP
       Mon Apr 14 16:29:38 2014 [ImM][I]: ExitCode: 1

This is presumably because SCP won't create subdirectories while copying if
they don't already exist.  /vmfs/volumes/108 exists on the vmware host, but
not the 68236b9cb3208691244d1eb016153092 directory.  It seems like the "*"
in the source path is unnecessary, and is causing the issue.

Any idea how to fix these problems?

-- 

Stephen Levy

Senior Software Engineer

www.telogis.com    +1 512.719.6105 (direct)

One Platform for Location Intelligence

-- 


This email, and any attachments, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information. It is the property of Telogis, Inc. If you are 
not the intended recipient of this email, you are hereby notified that any 
dissemination, distribution or copying of this email, any attachments 
thereto, and use of the information contained, is strictly prohibited. If 
you have received this email in error, please notify the sender and 
permanently delete the original and any copy thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140414/31109413/attachment.htm>


More information about the Users mailing list