[openstack-dev] [Nova] Migration state machine proposal.
tangchen at cn.fujitsu.com
Thu Oct 15 08:53:41 UTC 2015
The spec is now available here:
Please help to review.
On 10/14/2015 10:05 AM, Tang Chen wrote:
> Hi, all,
> Please help to review this BP.
> Currently, the migration_status field in Migration object is
> indicating the
> status of migration process. But in the current code, it is represented
> by pure string, like 'migrating', 'finished', and so on.
> The strings could be confusing to different developers, e.g. there are 3
> statuses representing the migration process is over successfully:
> 'finished', 'completed' and 'done'.
> And 2 for migration in process: 'running' and 'migrating'.
> So I think we should use constants or enum for these statuses.
> Furthermore, Nikola has proposed to create a state machine for the
> which is part of another abandoned BP. And this is also the work I'd
> like to go
> on with. Please refer to:
> Another proposal is: introduce a new member named "state" into Migration.
> Use a state machine to handle this Migration.state, and leave
> field a descriptive human readable free-form.
> So how do you think ?
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev