<div dir="ltr">In nova/compute/api.py#2289, function resize, there's a parameter named flavor_id, if it is None, it is considered as cold migration. Thus, nova should skip resize verifying. However, it doesn't.<div>
<br></div><div>Like Jay said, we should skip this step during cold migration, does it make sense?</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 8, 2014 at 5:52 PM, Jay Lau <span dir="ltr"><<a href="mailto:jay.lau.513@gmail.com" target="_blank">jay.lau.513@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"><div>Greetings,<br><br></div><div>I have a question related to cold migration.<br><br></div><div>Now in OpenStack nova, we support live migration, cold migration and resize.<br>
<br></div><div>For live migration, we do not need to confirm after live migration finished.<br>
<br></div><div>For resize, we need to confirm, as we want to give end user an opportunity to rollback.<br><br></div><div>The problem is cold migration, because cold migration and resize share same code path, so once I submit a cold migration request and after the cold migration finished, the VM will goes to verify_resize state, and I need to confirm resize. I felt a bit confused by this, why do I need to verify resize for a cold migration operation? Why not reset the VM to original state directly after cold migration?<br>

<br></div><div>Also, I think that probably we need split compute.api.resize() to two apis: one is for resize and the other is for cold migrations. <br><br>1) The VM state can be either ACTIVE and STOPPED for a resize operation<br>

2) The VM state must be STOPPED for a cold migrate operation.<br><br></div><div>Any comments?<br></div><div><br></div><div>Thanks,<br><br></div><div>Jay<br></div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span><font color="#888888">---- <br>Best Regards,<br>David Xie<br>Founder of ScriptFan technology community - <a href="http://scriptfan.com/" target="_blank">http://scriptfan.com</a><br>
Manager of Xi'an GDG (Google Developer Group)<br>
<a href="http://about.me/davidx" target="_blank">http://about.me/davidx</a><br><br>-----------------<br>Everything happens for a reason. Attitude determines everything!</font></span>
</div>