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:
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 openstack/ compute/ server_ migrations. py: api.py: manager. py: resource_ tracker. py: manager. py: tasks/live_ migrate. py: sqlalchemy/ api.py: def sqlalchemy/ migrate_ repo/versions/ 216_havana. py: sqlalchemy/ models. py: migration. py: functional/ api_sample_ tests/test_ server_ migrations. py: unit/api/ openstack/ compute/ test_server_ migrations. py: unit/compute/ test_compute. py: unit/compute/ test_compute_ api.py: unit/compute/ test_compute_ mgr.py: unit/compute/ test_resource_ tracker. py: unit/conductor/ tasks/test_ live_migrate. py: unit/conductor/ test_conductor. py: unit/db/ test_db_ api.py: unit/objects/ test_migration. py: libvirt/ driver. py:
nova/api/
nova/compute/
nova/compute/
nova/compute/
nova/conductor/
nova/conductor/
nova/db/api.py:
nova/db/api.py:def
nova/db/
nova/db/
nova/db/
nova/objects/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/tests/
nova/virt/