Merge "Completed migrations are not "in progress""
This commit is contained in:
@@ -4857,7 +4857,7 @@ def migration_get_in_progress_by_host_and_node(context, host, node):
|
||||
models.Migration.dest_node == node))).\
|
||||
filter(~models.Migration.status.in_(['accepted', 'confirmed',
|
||||
'reverted', 'error',
|
||||
'failed'])).\
|
||||
'failed', 'completed'])).\
|
||||
options(joinedload_all('instance.system_metadata')).\
|
||||
all()
|
||||
|
||||
|
||||
@@ -1334,6 +1334,7 @@ class MigrationTestCase(test.TestCase):
|
||||
self._create(status='error')
|
||||
self._create(status='failed')
|
||||
self._create(status='accepted')
|
||||
self._create(status='completed')
|
||||
self._create(source_compute='host2', source_node='b',
|
||||
dest_compute='host1', dest_node='a')
|
||||
self._create(source_compute='host2', dest_compute='host3')
|
||||
|
||||
Reference in New Issue
Block a user