<div dir="ltr">Hi Samuel, i hadn't thought about deleting the instance file, now you mentioned i'll think about it. What we do is:<br><div><br></div><div>-Suspend the instance</div><div>-Update DB</div><div>-Resume instance</div>
<div><br></div><div>that way the downtime is even smaller than really stopping the instance (we have the instances in a shared storage). I still don't know why this work, but somehow (maybe "magically") the network ovs interfaces are created on the new node, and everything just work.</div>
<div><br></div><div>We use the same "DB update" trick to resize vpcus and memory, i know it's not the best way but i couldn't make it with nova so far. </div><div><br></div><div>Cheers!</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/12/17 Samuel Winchenbach <span dir="ltr"><<a href="mailto:swinchen@gmail.com" target="_blank">swinchen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace">Juan,</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">


Did you need to modify anything else in the database or delete any files other than the instance XML file in  /etc/libvirt/qemu?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Dec 17, 2013 at 12:38 PM, Juan José Pavlik Salles <span dir="ltr"><<a href="mailto:jjpavlik@gmail.com" target="_blank">jjpavlik@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I found the exact same solution, couldn't find any cleaner way for my migration problem. </div><div class="gmail_extra">

<br><br><div class="gmail_quote">2013/12/16 Samuel Winchenbach <span dir="ltr"><<a href="mailto:swinchen@gmail.com" target="_blank">swinchen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace">Hi All,</div>
<div class="gmail_default" style="font-family:'courier new',monospace">
<br></div><div class="gmail_default" style="font-family:'courier new',monospace">
I have tried everything I can think of to migrate a VM to a node running a newer processor.  I have tried setting "libvirt_cpu_mode=none" on both hosts, I have tried creating a custom CPU, etc.  This is what I found worked:  Stop the instance, change "host", "node" and "launched_on" to the new hostname in the instances table in the nova database, then hard reboot the instance.  Something like this:<br>



</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">~# nova stop <UUID></div><div class="gmail_default" style="font-family:'courier new',monospace">



~# mysql -u root -p</div><div class="gmail_default" style="font-family:'courier new',monospace">mysql> use nova;</div><div class="gmail_default" style="font-family:'courier new',monospace">mysql> update instances set host='<NEWHOST>', node='<NEWHOST>', launched_on='<NEWHOST>' where uuid='<UUID>';</div>



<div class="gmail_default" style="font-family:'courier new',monospace">mysql> exit</div><div class="gmail_default" style="font-family:'courier new',monospace">~# nova reboot --hard <UUID></div><div class="gmail_default" style="font-family:'courier new',monospace">



<br></div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">



So I have two questions about doing it this way:</div><div class="gmail_default" style="font-family:'courier new',monospace">1) Is there anything else in the database I need to change?</div><div class="gmail_default" style="font-family:'courier new',monospace">



2) Are there any files I need to delete from the old host other than the instance XML file in  /etc/libvirt/qemu?</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">



<br></div><div class="gmail_default" style="font-family:'courier new',monospace">Thanks!</div><div class="gmail_default" style="font-family:'courier new',monospace">Sam</div></div>
<br></div></div>_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Pavlik Salles Juan José</div>
</div>