<div dir="ltr">So, your proposal is to have, all messages as in:<div><br></div><div>    [TM][I]: clone: Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1<br>


</div><div><br></div><div>This is pre-pend with the "clone:" string, right? If this is the case, this could be done in the core as:</div><div><br></div><div>   [TM][I]: <<<<<< ERROR IN CLONE >>>>>>>>><br>


</div><div><div>   [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</div><div>    [TM][I]: clone: Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1</div>


<div>...</div></div><div>   [TM][I]: <<<<<< ERROR IN CLONE >>>>>>>>><br></div><div><br></div><div><br></div><div class="gmail_extra">What do you think?</div><div class="gmail_extra">

<br></div><div class="gmail_extra">Ruben</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 9:31 PM, Daniel Dehennin <span dir="ltr"><<a href="mailto:daniel.dehennin@baby-gnu.org" target="_blank">daniel.dehennin@baby-gnu.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I made some search without success, I'm asking here before creating any<br>
redmine issue.<br>
<br>
Using OpenNebula 4.2, I just see that there is no TM log on successful<br>
VMs setup:<br>
<br>
    oneadmin@yggdrasil:~$ cut -d' ' -f6- /var/log/one/16.log<br>
    [DiM][I]: New VM state is ACTIVE.<br>
    [LCM][I]: New VM state is PROLOG.<br>
    [LCM][I]: New VM state is BOOT<br>
    [VMM][I]: Generating deployment file: /var/lib/one/vms/16/deployment.0<br>
    [VMM][I]: ExitCode: 0<br>
    [VMM][I]: Successfully execute network driver operation: pre.<br>
    [VMM][I]: ExitCode: 0<br>
    [VMM][I]: Successfully execute virtualization driver operation: deploy.<br>
    [VMM][I]: post: Executed "sudo /usr/bin/ovs-vsctl set Port vnet0 tag=20".<br>
    [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow baby-gnu in_port=5,dl_src=02:00:0a:02:00:00,priority=40000,actions=normal".<br>
    [VMM][I]: post: Executed "sudo /usr/bin/ovs-ofctl add-flow baby-gnu in_port=5,priority=39000,actions=drop".<br>
    [VMM][I]: ExitCode: 0<br>
    [VMM][I]: Successfully execute network driver operation: post.<br>
    [LCM][I]: New VM state is RUNNING<br>
<br>
I generate an error to see what's comming in the logs:<br>
<br>
    oneadmin@yggdrasil:~$ cut -d' ' -f6- /var/log/one/15.log<br>
    [DiM][I]: New VM state is ACTIVE.<br>
    [LCM][I]: New VM state is PROLOG.<br>
    [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<br>
    [TM][I]: clone: Cloning /var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 in yggdrasil:/var/lib/one//datastores/0/15/disk.1<br>
    [TM][E]: clone: Command "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" failed: qemu-img: Could not open '/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94'<br>



    [TM][E]: Error copying yggdrasil:/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 to yggdrasil:/var/lib/one//datastores/0/15/disk.1<br>
    [TM][I]: ExitCode: 1<br>
    [TM][E]: Error executing image transfer script: Error copying yggdrasil:/var/lib/one/datastores/1/e72972d1dc14203d83520f9ae6395d94 to yggdrasil:/var/lib/one//datastores/0/15/disk.1<br>
    [DiM][I]: New VM state is FAILED<br>
    [DiM][I]: New VM state is DONE.<br>
    [TM][W]: Ignored: TRANSFER SUCCESS 15 -<br>
<br>
My log configuration is:<br>
<br>
    LOG = [<br>
      system      = "file",<br>
      debug_level = 3<br>
    ]<br>
<br>
I think it's a problem, each step should be clearly identified with the<br>
command it runs.<br>
<br>
It can be hard to reproduce an error, specially when the user delete the<br>
VM in “FAILED” state and try 2 or 3 times before asking the ONE admin.<br>
<br>
For the logs above, I don't know why the clone log[1] are not reported.<br>
<br>
Regards.<br>
<br>
Footnotes:<br>
[1]  <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/release-4.2/entry/src/tm_mad/qcow2/clone#L69" target="_blank">http://dev.opennebula.org/projects/opennebula/repository/revisions/release-4.2/entry/src/tm_mad/qcow2/clone#L69</a><br>



<span><font color="#888888"><br>
--<br>
Daniel Dehennin<br>
Récupérer ma clef GPG:<br>
gpg --keyserver <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a> --recv-keys 0x7A6FE2DF<br>
</font></span><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org<br clear="all"><div><br></div>-- <br></a><div dir="ltr"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank"><div>

<div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect</a><div><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">OpenNebula - Flexible Enterprise Cloud Made Simple<br>

</a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>

</blockquote></div></div></div>