Comment 1 for bug 1549558

Revision history for this message
lvmxh (shaohef) wrote :

we need to clean up these migration status.

an ideal solution

we define a new file such as status.py

def class MigeationStatus(Object):
       ERROR='error'
       RUNNING="running"
.......

This is just a simple.

Then clean up all files using migration.status hard code.

$ git grep "mig.*status" | grep .py |awk '{print $1}' |sort | uniq
nova/api/openstack/compute/server_migrations.py:
nova/compute/api.py:
nova/compute/manager.py:
nova/compute/resource_tracker.py:
nova/conductor/manager.py:
nova/conductor/tasks/live_migrate.py:
nova/db/api.py:
nova/db/api.py:def
nova/db/sqlalchemy/api.py:def
nova/db/sqlalchemy/migrate_repo/versions/216_havana.py:
nova/db/sqlalchemy/models.py:
nova/objects/migration.py:
nova/tests/functional/api_sample_tests/test_server_migrations.py:
nova/tests/unit/api/openstack/compute/test_server_migrations.py:
nova/tests/unit/compute/test_compute.py:
nova/tests/unit/compute/test_compute_api.py:
nova/tests/unit/compute/test_compute_mgr.py:
nova/tests/unit/compute/test_resource_tracker.py:
nova/tests/unit/conductor/tasks/test_live_migrate.py:
nova/tests/unit/conductor/test_conductor.py:
nova/tests/unit/db/test_db_api.py:
nova/tests/unit/objects/test_migration.py:
nova/virt/libvirt/driver.py: