<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>Thanks for the answer. The second solution sounds good, will try this.<br><br>The first one is not possible. This sytem also handle failover and have to react to a failure within a few seconds. For example, if a node crashes, lost vm are immediately respawned on a healthy node. This is why it's running as closer as possible from the hypervisor and can't rely on any external component.<br><br><br>This drivers and the complete cluster stack will be released soon.<br><br>Regards,<br>Nicolas AGIUS<br><br>--- En date de : <b>Mar 4.9.12, Carlos Martín Sánchez <i><cmartin@opennebula.org></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Carlos Martín Sánchez <cmartin@opennebula.org><br>Objet: Re: [one-users] Update hostname after a migration<br>À:
 nicolas.agius@lps-it.fr<br>Cc: users@lists.opennebula.org<br>Date: Mardi 4 septembre 2012, 16h03<br><br><div id="yiv1540795529">Hi,<div><br></div><div>OpenNebula has the objects cached in memory, so you cannot simply inject new data into the DB. Besides, the (live)migration operation is not only a change in the VM hostname, it involves history records, accounting, and Host capacity.</div>

<div><br></div><div>The ideal solution would be to make that load balancer ask opennebula to do the migration.</div><div><br></div><div>If that's not possible, you could perform a dummy migration, with the following flow:</div>

<div>- The load balancer migrates a VM</div><div>- You somehow detect this migration, and execute a 'onevm livemigrate vm_id target_host'</div><div>- OpenNebula will try to migrate the VM, calling the driver script /var/lib/one/remotes/vmm/<vmm_driver>/migrate</div>

<div><br></div><div>This migrate script must be able to detect if the migration was already performed by the load balancer, maybe looking for a VM with the same name in the target host, and return success directly.</div>
<div>
<br></div><div><br></div><div>Do you have any plans to release these new drivers?</div><div><br></div><div>Best regards</div><div><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 rel="nofollow" target="_blank" href="http://www.OpenNebula.org">www.OpenNebula.org</a> | <a rel="nofollow" ymailto="mailto:cmartin@opennebula.org" target="_blank" href="/mc/compose?to=cmartin@opennebula.org">cmartin@opennebula.org</a> | <a rel="nofollow" target="_blank" href="http://twitter.com/opennebula">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial, sans-serif;font-size:13px;"><a rel="nofollow" ymailto="mailto:cmartin@opennebula.org" target="_blank" href="/mc/compose?to=cmartin@opennebula.org" style="color:rgb(42,93,176);"></a></span></div>

<br>
<br><br><div class="yiv1540795529gmail_quote">On Tue, Sep 4, 2012 at 1:57 PM, Nicolas AGIUS <span dir="ltr"><<a rel="nofollow" ymailto="mailto:nicolas.agius@lps-it.fr" target="_blank" href="/mc/compose?to=nicolas.agius@lps-it.fr">nicolas.agius@lps-it.fr</a>></span> wrote:<br><blockquote class="yiv1540795529gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Hi,<br><br>I'm currently writing a new VMM to use openNebula with a clustered xen manager responsible of failover and loadbalancing.<br>

<br>This system, put between xen and opennebula will automatically move vm by its own.<br><br>Is there any way to inform oned that the vm has been migrated ?<br><br>I tried to inject this information in the database, but it did'nt work, the update is'nt taked in account. And there is nothing about a such things in the API.<br>

<br><br>Thanks,<br>Nicolas AGIUS<br></td></tr></tbody></table><br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opennebula.org" target="_blank" href="/mc/compose?to=Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>
</div></blockquote></td></tr></table>