Hi Chris,<div><br></div><div>It is indeed a bug. At first I wasn't able to reproduce the problem, then I realized you were creating VM directly from a template file rather than using onetemplate.</div><div><br></div><div>
We are looking into it [1]. Meanwhile, could you please try to create the VMs with "onetemplate instantiate" [2], and see it the problem disappears?</div><div><br></div><div>Regards,</div><div>Carlos</div><div>
<br>
</div><div>[1] <a href="http://dev.opennebula.org/issues/1237">http://dev.opennebula.org/issues/1237</a></div><div>[2] <a href="http://opennebula.org/documentation:rel3.4:vm_guide">http://opennebula.org/documentation:rel3.4:vm_guide</a><br clear="all">
<br></div><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 11:09 PM, Chris Johnston <span dir="ltr"><<a href="mailto:chjohnston@rim.com">chjohnston@rim.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Has anyone else noticed that HISTORY records are corrupted when there are simultaneous VM actions? And some actions leave VMs, in particular a fail to livemigrate, with a bad history preventing a further live migration? It seems that update_history is failing at least for sqlite.<br>
<br>
# onevm create example.vm<br>
<br>
This results in a good history record...<br>
<br>
VIRTUAL MACHINE HISTORY<br>
SEQ HOSTNAME REASON START TIME PTIME<br>
0 arch02 none 04/16 20:58:58 0d 00:00 0d 00:00<br>
<br>
<HISTORY_RECORDS><br>
<HISTORY><br>
<SEQ>0</SEQ><br>
<HOSTNAME>arch02</HOSTNAME><br>
<HID>3</HID><br>
<STIME>1334609938</STIME><br>
<ETIME>0</ETIME><br>
<VMMMAD>vmm_kvm</VMMMAD><br>
<VNMMAD>ovswitch</VNMMAD><br>
<PSTIME>1334609938</PSTIME><br>
<PETIME>1334609940</PETIME><br>
<RSTIME>1334609940</RSTIME><br>
<RETIME>0</RETIME><br>
<ESTIME>0</ESTIME><br>
<EETIME>0</EETIME><br>
<REASON>0</REASON><br>
</HISTORY><br>
</HISTORY_RECORDS><br>
<br>
# onevm create example.vm ; onevm create example.vm<br>
<br>
This results in none of the timers being set in the history record for either VM.<br>
<br>
VIRTUAL MACHINE HISTORY<br>
SEQ HOSTNAME REASON START TIME PTIME<br>
0 host02 none - 15446d 20:5 0d 00:00<br>
<br>
<HISTORY_RECORDS><br>
<HISTORY><br>
<SEQ>0</SEQ><br>
<HOSTNAME>host02</HOSTNAME><br>
<HID>3</HID><br>
<STIME>0</STIME><br>
<ETIME>0</ETIME><br>
<VMMMAD>vmm_kvm</VMMMAD><br>
<VNMMAD>ovswitch</VNMMAD><br>
<PSTIME>0</PSTIME><br>
<PETIME>0</PETIME><br>
<RSTIME>0</RSTIME><br>
<RETIME>0</RETIME><br>
<ESTIME>0</ESTIME><br>
<EETIME>0</EETIME><br>
<REASON>0</REASON><br>
</HISTORY><br>
</HISTORY_RECORDS><br>
<br>
# onevm livemigrate 62 host2 ; onevm livemigrate 62 host01 (both of these fail on purpose)<br>
# onevm show 62<br>
<snip><br>
STATE : ACTIVE<br>
LCM_STATE : RUNNING<br>
VIRTUAL MACHINE HISTORY<br>
SEQ HOSTNAME REASON START TIME PTIME<br>
0 host02 user 04/16 20:58:58 0d 00:02 0d 00:00<br>
1 host01 user - 15446d 21:0 0d 00:00<br>
2 host02 user - 15446d 21:0 0d 00:00<br>
3 host02 none 04/16 21:03:51 0d 00:00 0d 00:00<br>
4 host02 none - 15446d 21:0 0d 00:00<br>
oneadmin@arch01:~$ onevm livemigrate 62 host02<br>
[VirtualMachineMigrate] Wrong state to perform action<br>
<br>
Chris<br>
<br>
---------------------------------------------------------------------<br>
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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</a><br>
</blockquote></div><br></div>