Skip to content

Commit 3872647

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add missing condition" into stable/xena
2 parents 730b9b0 + 7c40596 commit 3872647

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

nova/objects/migrate_data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ def obj_make_compatible(self, primitive, target_version):
279279
if (target_version < (1, 10) and
280280
'src_supports_numa_live_migration' in primitive):
281281
del primitive['src_supports_numa_live_migration']
282+
if (target_version < (1, 10) and
283+
'dst_supports_numa_live_migration' in primitive):
284+
del primitive['dst_supports_numa_live_migration']
282285
if target_version < (1, 10) and 'dst_numa_info' in primitive:
283286
del primitive['dst_numa_info']
284287
if target_version < (1, 9) and 'vifs' in primitive:

nova/tests/unit/objects/test_migrate_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def test_obj_make_compatible(self):
9494
target_connect_addr='127.0.0.1',
9595
dst_wants_file_backed_memory=False,
9696
file_backed_memory_discard=False,
97-
src_supports_numa_live_migraton=True,
98-
dst_supports_numa_live_migraton=True,
97+
src_supports_numa_live_migration=True,
98+
dst_supports_numa_live_migration=True,
9999
dst_numa_info=migrate_data.LibvirtLiveMigrateNUMAInfo())
100100
manifest = ovo_base.obj_tree_get_versions(obj.obj_name())
101101

0 commit comments

Comments
 (0)