Skip to content

Commit

Permalink
Merge "Add missing condition" into stable/xena
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jun 18, 2022
2 parents 730b9b0 + 7c40596 commit 3872647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions nova/objects/migrate_data.py
Expand Up @@ -279,6 +279,9 @@ def obj_make_compatible(self, primitive, target_version):
if (target_version < (1, 10) and
'src_supports_numa_live_migration' in primitive):
del primitive['src_supports_numa_live_migration']
if (target_version < (1, 10) and
'dst_supports_numa_live_migration' in primitive):
del primitive['dst_supports_numa_live_migration']
if target_version < (1, 10) and 'dst_numa_info' in primitive:
del primitive['dst_numa_info']
if target_version < (1, 9) and 'vifs' in primitive:
Expand Down
4 changes: 2 additions & 2 deletions nova/tests/unit/objects/test_migrate_data.py
Expand Up @@ -94,8 +94,8 @@ def test_obj_make_compatible(self):
target_connect_addr='127.0.0.1',
dst_wants_file_backed_memory=False,
file_backed_memory_discard=False,
src_supports_numa_live_migraton=True,
dst_supports_numa_live_migraton=True,
src_supports_numa_live_migration=True,
dst_supports_numa_live_migration=True,
dst_numa_info=migrate_data.LibvirtLiveMigrateNUMAInfo())
manifest = ovo_base.obj_tree_get_versions(obj.obj_name())

Expand Down

0 comments on commit 3872647

Please sign in to comment.