Re: [one-users] Missing log when no error happens
Ruben S. Montero rsmont...@opennebula.org writes: So, your proposal is to have, all messages as in: [TM][I]: clone: Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1 This is pre-pend with the clone: string, right? If this is the case, this could be done in the core as: [TM][I]: ERROR IN CLONE [TM][I]: Command execution fail: /var/lib/one/remotes/tm/qcow2/clone yggdrasil:/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 yggdrasil:/var/lib/one//datastores/0/15/disk.1 15 1 [TM][I]: clone: Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1 ... [TM][I]: ERROR IN CLONE What do you think? I thought about wrapping all executed commands to log: - INFO: the description of the command, like “Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1” - DEBUG: the command to execute, like: “ssh@yggdrasil: COMMAND” This could output something like the following (line wrapped to ease reading): [TM][I]: Command: /var/lib/one/remotes/tm/qcow2/clone yggdrasil:/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 yggdrasil:/var/lib/one//datastores/0/15/disk.1 15 1 [TM][I]: clone: Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1 [TM][D]: clone: ssh@yggdrasil cd /var/lib/one/datastores/0/15; qemu-img create -b /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 -f qcow2 /var/lib/one/datastores/0/15/disk.1 [TM][E]: ERROR IN CLONE [TM][E]: Command execution fail: /var/lib/one/remotes/tm/qcow2/clone yggdrasil:/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 yggdrasil:/var/lib/one//datastores/0/15/disk.1 15 1: qemu-img: Could not open '/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94' [TM][E]: Error copying yggdrasil:/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 to yggdrasil:/var/lib/one//datastores/0/15/disk.1 [TM][I]: ExitCode: 1 [TM][E]: ERROR IN CLONE So, we can follow the execution path until the error: 1. the “qcow2 clone” is called with specified arguments 2. the “clone” script informs what it does 3. in debug mode[1] we see the command that will be executed: an SSH to yggdrasil running “cd” and “qemu-img” 4. an error occurs and we see the command and it's output Actually, the point 4 is already OK for me, but 1 to 3 are missing. The point 2 is already done by the script[2] but is not present in the logs and I don't know why. The point 3 can be done by common wrappers[3]. The point 1 is from core, I think. This could be generalized as: 1. the core log state changes 2. for each step to setup a VM, the core log what need to be done, like “setting up network”, “setting up storage”, etc. 3. the core log which script it will call with its arguments 4. the script log informative messages of what it does 5. before a command is executed, a log of what will be executed and where 6. after the command is executed, log the result Looking at my log files, not everything is logged, mostly the “what ONE wants to/will do”. I hope it will help understand what I would like. Regards. Footnotes: [1] or info I don't know what's the best [2] http://dev.opennebula.org/projects/opennebula/repository/revisions/release-4.2/entry/src/tm_mad/qcow2/clone#L69 [3] http://dev.opennebula.org/projects/opennebula/repository/revisions/release-4.2/entry/src/mad/sh/scripts_common.sh -- Daniel Dehennin Récupérer ma clef GPG: gpg --keyserver pgp.mit.edu --recv-keys 0x7A6FE2DF pgpxzNFDu5fMe.pgp Description: PGP signature ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VMFS datastore marketplace import image
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 ab...@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 cosminc...@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 cosminc...@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+MDwvR1JPVVBfTT48R1JPVVBfQ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 35 Mon Nov 4 07:05:36 2013 [ImM][I]: cp: Downloading http://marketplace.c12g.com/appliance/4ff2ce348fb81d440603/download to the image repository Mon Nov
[one-users] Image Error
There is any way to check if image is ok . I had an overheating problem that cause suden shutdown and u have some fukedup images. I can disable them and reenable but is not working .. any way to reconstruct them ? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Mount point for shared storage glusterfs
Hi all, what's the mount point for shared datastorage with gluster fs? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] VMFS datastore marketplace import image
Hi, Let's try and solve the local error first (the windows VM). From the log I see On Tue, Nov 5, 2013 at 2:57 PM, cosmin cucu cosminc...@yahoo.com wrote: scp -r /home/oneadmin/Windows2k8R2/* 192.168.10.10:/vmfs/volumes/101/bf485f995dac3989c8d4b0bfd8d250b8 failed: /home/oneadmin/Windows2k8R2/Win2k8R2-flat.vmdk: Permission denied There seems to be permissions problem in /home/oneadmin/Windows2k8R or one of the contained files, could you check that? Basically, the following has to work: scp -r /home/oneadmin/Windows2k8R2/* 192.168.10.10:/vmfs/volumes/101/bf485f995dac3989c8d4b0bfd8d250b8 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 ab...@c12g.com and delete the e-mail and attachments and any copy from your system. C12G thanks you for your cooperation. ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] Call for translations: OpenNebula 4.4 (DL 22nd November)
Dear community, As OpenNebula 4.4 comes closer, we would like to launch a call for translations of our web-based user interface: Sunstone. It is very easy: the existing translations can be updated and new translations submitted through our project site at Transifex *https://www.transifex.com/projects/p/one/r/one44/ https://www.transifex.com/projects/p/one/r/one44/* The process is as follows: * Log in to Transifex. You can easily register or login with using your Twitter, LinkedIn, Google or Facebook accounts * Click on the language you want to translate and the resource (Sunstone) * Hit “Translate now” and start translating right away through the Transifex website If the language is not available, you can request the creation of a new language for that resource. If you have a translation file ready outside Transifex for a new language, please upload it there. Transifex offers advanced features for translators. You can check their documentation[1] for more information. Translations reaching a good level of completion will be included in the official final release of OpenNebula. Deadline for translations is Friday, 22nd of November. Thanks for your collaboration! [1] http://help.transifex.com/intro/translating.html#translating -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org