Skip to content

Commit 288ec4f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Add missing condition" into stable/wallaby
2 parents 7074ac0 + 7c56104 commit 288ec4f

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
@@ -261,6 +261,9 @@ def obj_make_compatible(self, primitive, target_version):
261261
if (target_version < (1, 10) and
262262
'src_supports_numa_live_migration' in primitive):
263263
del primitive['src_supports_numa_live_migration']
264+
if (target_version < (1, 10) and
265+
'dst_supports_numa_live_migration' in primitive):
266+
del primitive['dst_supports_numa_live_migration']
264267
if target_version < (1, 10) and 'dst_numa_info' in primitive:
265268
del primitive['dst_numa_info']
266269
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)