fix live migration in progress hard code

Bug #1549562 reported by lvmxh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
lvmxh

Bug Description

now in code the migration in progress is hard-code.
such as:
           filter(~models.Migration.status.in_(['accepted', 'confirmed',
                                                 'reverted', 'error',
                                                 'failed'])).\

There maybe many place need this list.

They should share.

After we fixed the depended on bus: https://bugs.launchpad.net/nova/+bug/1549558

we can easy to clean up the migration in progress hard-code.

lvmxh (shaohef)
Changed in nova:
assignee: nobody → lvmxh (shaohef)
Revision history for this message
lvmxh (shaohef) wrote :

This is also error prone.

Many place have the same hard-code.

It is easy to missing some , when we need to change every "in progress" list.

Revision history for this message
Sean Dague (sdague) wrote :

This is really a duplicate of the other issue you filed. Please just work off the one bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.