255b3f2f91
If rollback_live_migration failed, the migration status is set to 'error', and there might me some resource not be cleaned up like vpmem since rollback is not completed. So we propose to track those 'error' migrations in resource tracker until they are cleaned up by periodic task '_cleanup_incomplete_migrations'. So if rollback_live_migration succeeds, we need to set the migration status to 'failed' which will not be tracked in resource tracker. The 'failed' status is already used for resize to indicated a migration finishing the cleanup. '_cleanup_incomplete_migrations' will also handle failed rollback_live_migration cleanup except for failed resize/revert-resize. Besides, we introduce a new 'cleanup_lingering_instance_resources' virt driver interface to handle lingering instance resources cleanup including vpmem cleanup and whatever we add in the future. Change-Id: I422a907056543f9bf95acbffdd2658438febf801 Partially-Implements: blueprint vpmem-enhancement |
||
---|---|---|
.. | ||
sqlalchemy | ||
__init__.py | ||
api.py | ||
base.py | ||
constants.py | ||
migration.py |