<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>