[one-users] Two problems with vmfs image datastores

Stephen Levy stephen.levy at telogis.com
Tue Apr 15 11:25:55 PDT 2014


I managed to figure out what's going on.  Originally, my oneadmin user id
and group id were 501, which were the ids that I set for anonuid and
anongid in my /etc/exports file on the frontend, however, when I went to
create the oneadmin user in the vSphere client, it would not let me create
a user with a UID < 1000 for some reason, so I changed the oneadmin uid and
gid on the frontend to 1000, and set that as the id on the vmware server,
however, I neglected to change the ids in the /etc/exports file.  Changing
them to use the new uid and gid fixed the issue.

Thanks for your help.

-Stephen


On Tue, Apr 15, 2014 at 3:53 AM, Ruben S. Montero
<rsmontero at opennebula.org>wrote:

>
> Hi,
>
> It should make all the needed directories. Just to isolate the problem
> let's put the marketplace part aside, could you try to download the image
> and register that path. If fails persists, could you send the log files and
> the image registration template....
>
> Cheers
>
> Ruben
>
>
> On Tue, Apr 15, 2014 at 12:00 AM, Stephen Levy <stephen.levy at telogis.com>wrote:
>
>> 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.
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opennebula.org
>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>
>>
>
>
> --
> --
> Ruben S. Montero, PhD
> Project co-Lead and Chief Architect
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
>



-- 

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/20140415/de730f37/attachment-0002.htm>


More information about the Users mailing list