[one-users] VMFS datastore marketplace import image

cosmin cucu cosmincucu at yahoo.com
Tue Nov 5 05:57:27 PST 2013


No , it was deleted. I tried to reimport the CentOS image, and the error now is : 

Tue Nov  5 07:41:23 2013 : Error copying image in the datastore: Error 
renaming file /tmp/d0395e950bb37dd9cc184cc909253395/ to 
/tmp/d0395e950bb37dd9cc184cc909253395/disk.vmdk

In /tmp i have the following files/folders : 

oneadmin at OpenNebula:/home/oneadmin$ ls -R /tmp
/tmp:
d0395e950bb37dd9cc184cc909253395  novnc.lock

/tmp/d0395e950bb37dd9cc184cc909253395:
CentOS-6.2-1.1

/tmp/d0395e950bb37dd9cc184cc909253395/CentOS-6.2-1.1:
CentOS-6.2-flat.vmdk  disk.vmdk


Here is the content of /home/oneadmin/Windows2k8R2 : 


oneadmin at OpenNebula:/home/oneadmin$ ls Windows2k8R2
disk.vmdk  Win2k8R2-flat.vmdk


I renamed manually Win2k8R2.vmdk to disk.vmdk , because it threw a permission error when trying to execute mv. I recreated the image to update the oned.log, the error now is : 

Tue Nov  5 08:54:10 2013 : Error copying image in the datastore: Error 
copying /home/oneadmin/Windows2k8R2 to 
/vmfs/volumes/101/bf485f995dac3989c8d4b0bfd8d250b8 through SCP

And in /var/log/one/oned.log i find the following : 

Tue Nov  5 08:54:10 2013 [ImM][I]: Command execution fail: /var/lib/one/remotes/datastore/vmfs/cp
 PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjQ4PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+V2luMms4UjI8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9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disk folder /home/oneadmin/Windows2k8R2 to the image repository
Tue Nov  5 08:54:10 2013 [ImM][E]: cp: Command "scp -r /home/oneadmin/Windows2k8R2/* 192.168.10.10:/vmfs/volumes/101/bf485f995dac3989c8d4b0bfd8d250b8" failed: /home/oneadmin/Windows2k8R2/Win2k8R2-flat.vmdk: Permission denied
Tue Nov  5 08:54:10 2013 [ImM][I]: /home/oneadmin/Windows2k8R2/disk.vmdk: Permission denied
Tue Nov  5 08:54:10 2013 [ImM][E]: Error copying /home/oneadmin/Windows2k8R2 to /vmfs/volumes/101/bf485f995dac3989c8d4b0bfd8d250b8 through SCP
Tue Nov  5 08:54:10 2013 [ImM][I]: ExitCode: 1
Tue Nov  5 08:54:10 2013 [ImM][E]: Error copying image in the datastore: Error copying /home/oneadmin/Windows2k8R2 to /vmfs/volumes/101/bf485f995dac3989c8d4b0bfd8d250b8 through SCP


Thanks,
Cosmin




On Tuesday, November 5, 2013 1:23 PM, Tino Vazquez <cvazquez at c12g.com> wrote:
 
Hi,

I've just tried importing the image and is working for me. Do you
still have the following directory?

/tmp/65d9c81c5059f6f39c1cd8a63ec3f806

if so, what are its contents?

About the second error, does /home/oneadmin/Windows2k8R2 contain vmdk
files? If so, please send more context from oned.log.

Regards,

-Tino
--
OpenNebula - Flexible Enterprise Cloud Made Simple

--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.c12g.com | @C12G | es.linkedin.com/in/tinova

--
Confidentiality Warning: The information contained in this e-mail and
any accompanying documents, unless otherwise expressly indicated, is
confidential and privileged, and is intended solely for the person
and/or entity to whom it is addressed (i.e. those identified in the
"To" and "cc" box). They are the property of C12G Labs S.L..
Unauthorized distribution, review, use, disclosure, or copying of this
communication, or any part
 thereof, is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify us
immediately by e-mail at abuse at c12g.com and delete the e-mail and
attachments and any copy from your system. C12G thanks you for your
cooperation.


On Tue, Nov 5, 2013 at 11:12 AM, cosmin cucu <cosmincucu at yahoo.com> wrote:
> Hello,
>
> Anyone has any idea on why this is happening? I have also tried to create a
> image with a preexisting windows VM , after i copy the files in the open
> Nebula server and i try to import them , i get the following error :
>
> Tue Nov 5 05:10:51 2013 : Error copying image in the datastore: Error
> copying /home/oneadmin/Windows2k8R2 to
> /vmfs/volumes/101/7df572763f72e11713eb9cad9d571f4d through SCP
>
> Thanks,
> Cosmin
>
>
>
> On Monday, November 4, 2013 2:12 PM, cosmin cucu <cosmincucu at yahoo.com>
> wrote:
> Hello,
>
> I have a open nebula 4.2 setup with 3 ESX hosts, and 2 vmfs datastores (
> image and system ) . The issue is that when i try to import a centOS  image
> from the default marketplace i get the following errors :
>
> Mon Nov 4 06:33:53 2013 : Error copying image in the datastore: Error
> renaming file /tmp/65d9c81c5059f6f39c1cd8a63ec3f806/ to
> /tmp/65d9c81c5059f6f39c1cd8a63ec3f806/disk.vmdk
>
> In /var/log/one/oned.log i found the following lines
>
> Mon Nov  4 07:05:36 2013 [ImM][I]: Command execution fail:
> /var/lib/one/remotes/datastore/vmfs/cp
>
 PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjM1PC9JRD48VUlEPjA8L1VJRD48R0lEPjA8L0dJRD48VU5BTUU+b25lYWRtaW48L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+Q2VudE9TIFNlcnZlciA2LjIgLSBWTXdhcmU8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPj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IRVJfTT4wPC9PVEhFUl9NPjxPVEhFUl9BPjA8L09USEVSX0E+PC9QRVJNSVNTSU9OUz48RFNfTUFEPnZtZnM8L0RTX01BRD48VE1fTUFEPnZtZnM8L1RNX01BRD48QkFTRV9QQVRIPi92bWZzL3ZvbHVtZXMvMTAxPC9CQVNFX1BBVEg+PFRZUEU+MDwvVFlQRT48RElTS19UWVBFPjA8L0RJU0tfVFlQRT48Q0xVU1RFUl9JRD4xMDA8L0NMVVNURVJfSUQ+PENMVVNURVI+Y29zbWktY2xvdWQ8L0NMVVNURVI+PFRPVEFMX01CPjIwNDQ2NzI8L1RPVEFMX01CPjxGUkVFX01CPjIwNDM1
O
> DY8L0ZSRUVfTUI+PFVTRURfTUI+ODgzPC9VU0VEX01CPjxJTUFHRVM+PElEPjU8L0lEPjwvSU1BR0VTPjxURU1QTEFURT48QlJJREdFX0xJU1Q+PCFbQ0RBVEFbMTkyLjE2OC4xMC4xMCAxOTIuMTY4LjEwLjMwIDE5Mi4xNjguMTAuNDBdXT48L0JSSURHRV9MSVNUPjxEU19NQUQ+PCFbQ0RBVEFbdm1mc11dPjwvRFNfTUFEPjxEU19UTVBfRElSPjwhW0NEQVRBWy90bXBdXT48L0RTX1RNUF9ESVI+PERTX1VTRV9TU0g+PCFbQ0RBVEFbWUVTXV0+PC9EU19VU0VfU1NIPjxUTV9NQUQ+PCFbQ0RBVEFbdm1mc11dPjwvVE1fTUFEPjxUTV9VU0VfU1NIPjwhW0NEQVRBW1lFU11dPjwvVE1fVVNFX1NTSD48VFlQRT48IVtDREFUQVtJTUFHRV9EU11dPjwvVFlQRT48L1RFTVBMQVRFPjwvREFUQVNUT1JFPjwvRFNfRFJJVkVSX0FDVElPTl9EQVRBPg==
> 35
> Mon Nov  4 07:05:36 2013 [ImM][I]: cp: Downloading
> http://marketplace.c12g.com/appliance/4ff2ce348fb81d4406000003/download to
> the image repository
> Mon
 Nov  4 07:05:36 2013 [ImM][E]: cp: Command "mv -f
> /tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/
> /tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/disk.vmdk" failed: mv: cannot move
> `/tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/' to a subdirectory of itself,
> `/tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/disk.vmdk'
> Mon Nov  4 07:05:36 2013 [ImM][E]: Error renaming file
> /tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/ to
> /tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/disk.vmdk
> Mon Nov  4 07:05:36 2013 [ImM][I]: ExitCode: 1
> Mon Nov  4 07:05:36 2013 [ImM][E]: Error copying image in the datastore:
> Error renaming file /tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/ to
> /tmp/1132bd1ddabaa04ec1a7c1ef6bee389c/disk.vmdk
>
> The weird thing
 is when i try to import the ttyl linux image, the small 100
> MB one, it works.
>
> Any idea why this is happening?
>
> Thanks,
> Cosmin
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131105/f0ec731f/attachment-0002.htm>


More information about the Users mailing list