Hi all,

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.

# onevm create example.vm

This results in a good history record...

VIRTUAL MACHINE HISTORY                                                         
 SEQ        HOSTNAME REASON           START        TIME       PTIME
   0          arch02   none  04/16 20:58:58    0d 00:00    0d 00:00

  <HISTORY_RECORDS>
    <HISTORY>
      <SEQ>0</SEQ>
      <HOSTNAME>arch02</HOSTNAME>
      <HID>3</HID>
      <STIME>1334609938</STIME>
      <ETIME>0</ETIME>
      <VMMMAD>vmm_kvm</VMMMAD>
      <VNMMAD>ovswitch</VNMMAD>
      <PSTIME>1334609938</PSTIME>
      <PETIME>1334609940</PETIME>
      <RSTIME>1334609940</RSTIME>
      <RETIME>0</RETIME>
      <ESTIME>0</ESTIME>
      <EETIME>0</EETIME>
      <REASON>0</REASON>
    </HISTORY>
  </HISTORY_RECORDS>

# onevm create example.vm ; onevm create example.vm

This results in none of the timers being set in the history record for either 
VM.

VIRTUAL MACHINE HISTORY                                                         
 SEQ        HOSTNAME REASON           START        TIME       PTIME
   0          host02   none               - 15446d 20:5    0d 00:00

  <HISTORY_RECORDS>
    <HISTORY>
      <SEQ>0</SEQ>
      <HOSTNAME>host02</HOSTNAME>
      <HID>3</HID>
      <STIME>0</STIME>
      <ETIME>0</ETIME>
      <VMMMAD>vmm_kvm</VMMMAD>
      <VNMMAD>ovswitch</VNMMAD>
      <PSTIME>0</PSTIME>
      <PETIME>0</PETIME>
      <RSTIME>0</RSTIME>
      <RETIME>0</RETIME>
      <ESTIME>0</ESTIME>
      <EETIME>0</EETIME>
      <REASON>0</REASON>
    </HISTORY>
  </HISTORY_RECORDS>

# onevm livemigrate 62 host2 ; onevm livemigrate 62 host01 (both of these fail 
on purpose)
# onevm show 62
<snip>
STATE               : ACTIVE              
LCM_STATE           : RUNNING             
VIRTUAL MACHINE HISTORY                                                         
 SEQ        HOSTNAME REASON           START        TIME       PTIME
   0          host02   user  04/16 20:58:58    0d 00:02    0d 00:00
   1          host01   user               - 15446d 21:0    0d 00:00
   2          host02   user               - 15446d 21:0    0d 00:00
   3          host02   none  04/16 21:03:51    0d 00:00    0d 00:00
   4          host02   none               - 15446d 21:0    0d 00:00
oneadmin@arch01:~$ onevm livemigrate 62 host02 
[VirtualMachineMigrate] Wrong state to perform action

Chris

---------------------------------------------------------------------
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.
_______________________________________________
Users mailing list
[email protected]
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

Reply via email to