<div dir="ltr">There's one current nova code define it as follow: <div><div><a href="https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L4535-L4546">https://github.com/openstack/nova/blob/master/nova/db/sqlalchemy/api.py#L4535-L4546</a><br></div><div><br></div><div>that means: beside [ 'accepted', 'confirmed', 'reverted', 'error', 'failed' ], other status are all in progress. </div><div>Note: here  finished is in progress.<br><div><br></div><div>John Garbutt has raised the same question in the code review.  </div><div><a href="https://review.openstack.org/#/c/258771/29/nova/db/sqlalchemy/api.py">https://review.openstack.org/#/c/258771/29/nova/db/sqlalchemy/api.py</a><br></div><div><br></div><div><br></div><div>There are two problems want to discuss.</div><div><br></div><div>1.  should "finished" be in progress? </div><div>from literal meaning, it should not. </div><div>So we should add it to  non-in-progress list. <br></div><div><br></div><div>And should not return the "finished" migration when users use migration-index to fetch it. </div><div><br></div><div>But is this reasonable?</div><div>A user do a migration, he get nothing information about the  migrations by migration-index after it is finished. </div><div><br></div><div><br></div><div>2. I wonder what's the difference among "done", "completed" and "finished" ?</div><div>I use  this command:</div><div>$ git grep "migration.*status" <br></div><div>I have gotten all migrations status beside non-in-progress as follow. <br></div><div> done, post-migrating, preparing, queued, completed, accepted,  finished, running.<br></div><div><br></div><div><div>The current migration.status define is not good for read so I file a bug. (<a href="https://bugs.launchpad.net/nova/+bug/1549558">https://bugs.launchpad.net/nova/+bug/1549558</a>)<br></div></div><div><br></div><div><br></div><div><br></div></div></div></div>