[one-users] Two problems with vmfs image datastores

Ruben S. Montero rsmontero at opennebula.org
Tue Apr 15 15:45:23 PDT 2014


Could this be a disk space problem? Note that the file is decompressed and
untar in  /var/lib/one/tmp/ (You'll need about 10G for the CentOS 6.2 image)

The error is because of the script cannot find the
file /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/disk.vmdk. However
this file is present in the original appliance from the marketplace.

We've fixed a bug for 4.6 related to the download of marketplace files [1],
you could be also being hit by this one. You may want to try to replace
downloader.sh with the 4.6 version [2]

Cheers

Ruben

[1] http://dev.opennebula.org/issues/2729
[2]
https://raw.githubusercontent.com/OpenNebula/one/master/src/datastore_mad/remotes/downloader.sh


On Tue, Apr 15, 2014 at 9:55 PM, Stephen Levy <stephen.levy at telogis.com>wrote:

> Actually, this took care of the second problem, but I'm still seeing the
> first issue when downloading an image from the marketplace.  The creating
> of an image from the 'ttylinux - VMware' worked fine, but I'm still seeing
> the error for "CentOS Server 6.2 - VMware".  I manually downloaded the file
> from the marketplace and tried to upload it while creating an image, but I
> saw the same error.  I have verified that there is enough space on my disk.
>
> Tue Apr 15 13:44:48 2014 [ImM][I]: Command execution fail:
> /var/lib/one/remotes/datastore/vmfs/cp
> PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjE3PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+Q2VudE9TIFNlcnZlciA2LjIgLSBWTXdhcmVfZmlsZTAtMjwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTkVSX1U+MTwvT1dORVJfVT48T1dORVJfTT4xPC9PV05FUl9NPjxPV05FUl9BPjA8L09XTkVSX0E+PEdST1VQX1U+MDwvR1JPVVBfVT48R1JPVVBfTT4wPC9HUk9VUF9NPjxHUk9VUF9BPjA8L0dST1VQX0E+PE9USEVSX1U+MDwvT1RIRVJfVT48T1RIRVJfT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44:48 2014 [ImM][I]: cp: Downloading
> http://marketplace.c12g.com/appliance/4ff2ce348fb81d4406000003/download/0to the image repository
> Tue Apr 15 13:44:48 2014 [ImM][E]: cp: Command "mv -f
> /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/
> /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/disk.vmdk" failed: mv:
> cannot move `/var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/' to a
> subdirectory of itself,
> `/var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/disk.vmdk'
> Tue Apr 15 13:44:48 2014 [ImM][E]: Error renaming file
> /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/ to
> /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/disk.vmdk
> Tue Apr 15 13:44:48 2014 [ImM][I]: ExitCode: 1
> Tue Apr 15 13:44:48 2014 [ImM][E]: Error copying image in the datastore:
> Error renaming file /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/ to
> /var/lib/one/tmp/c39c17bfc1654cc3d683dd8dab5e5aa0/disk.vmdk
>
>
>
> On Tue, Apr 15, 2014 at 1:25 PM, Stephen Levy <stephen.levy at telogis.com>wrote:
>
>> 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
>>
>
>
>
> --
>
> 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.
>



-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmontero at opennebula.org | @OpenNebula
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140416/26a4bf79/attachment-0002.htm>


More information about the Users mailing list