Hi Laine,<div>Thanks for the response. Please find my comments inline.</div><div>regards</div><div>Kiran<br><br><div class="gmail_quote">On Thu, Jul 26, 2012 at 9:39 PM, Laine Stump <span dir="ltr"><<a href="mailto:laine@laine.org" target="_blank">laine@laine.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 07/26/2012 09:40 PM, kiran Chunduri wrote:<br>
> Hi,<br>
> I was experimenting 'live migration' with libvirt (using virsh) and<br>
> observed that post migration the Interface stats in 'OVSDB:Interface'<br>
> table are not transferred.<br>
<br>
</div>I'm assuming that the "OVS" part of this is openvswitch?<br></blockquote><div>Thats correct. Sorry, next time I will try to be more specific. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im"><br>
> Only the values in 'external_ids'  column seem to be synced up. The<br>
> libvirt version I'm using is 0.9.11.3. The virsh command used for<br>
> migration is: 'virsh migrate --live fc17-vm<br>
</div>> qemu+ssh://<a href="http://10.23.167.219/system" target="_blank">10.23.167.219/system</a> <<a href="http://10.23.167.219/system" target="_blank">http://10.23.167.219/system</a>>'<br>
<div class="im">><br>
> Is this the right behavior (or) Have I missed out on some option?<br>
<br>
</div>I don't know if it's "right", but moving state that's outside of the<br>
guest itself is outside the scope of migration, at least for now.<br></blockquote><div> </div><div>Well, you are right in that the run time state of the virtual port is outside of the guest. But in case of Live-Migration, I think it will be good to have a mechanism, within libvirt, to carry the Virtual Port stats and any opaque run-time state along with the VM. Other than libvirt, I can't see who else can address this requirement.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
><br>
> Can some one please guide on the approach and the source files to look<br>
> at If i need to add this support?<br>
><br>
<br>
</div>I don't really have a good idea about that. Could the information<br>
related to a given guest interface be easily represented in XML within<br>
the <interface> section of the guest's domain XML (which is the only<br>
thing aside from an image of the guest's memory, and state of the<br>
guest's emulated devices, that is transferred during a migration)? If<br>
that's the case, maybe the openvswitch support in libvirt could be<br>
extended to, for example, recognize some extra stuff inside of the<br>
<virtualport type='openvswitch'> element when resuming a paused (due to<br>
migration or save) guest, and use that data to populate the db.<br>
<br></blockquote><div>Here, I'm not sure if XML file is the right location to store the run time state (for eg:stats) of virtual port. Even if it is possible to store in XML data form, it would mean the guest domains XML file need to modified before Migration (or) frequently whenever there is a change to this data. Ideally I would prefer, if 'libvirt' expose a opaque data framework, that OpenVswitch (or any other Virtual Switch) driver can fill in before migration and replay at the destination host.</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
libvir-list mailing list<br>
<a href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
</blockquote></div><br></div>