Skip to content

Commit

Permalink
migration: Add libvirt version check
Browse files Browse the repository at this point in the history
Signed-off-by: cliping <[email protected]>
  • Loading branch information
cliping committed Jun 27, 2023
1 parent fd8ef2e commit 8c971b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
libvirtd_debug_level = "1"
libvirtd_debug_filters = "1:*"
libvirtd_debug_file = '/var/log/libvirt/virtqemud.log'
func_supported_since_libvirt_ver = (9, 0, 0)

variants:
- persistent_and_p2p:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from avocado.utils import process

from virttest import ceph
from virttest import libvirt_version
from virttest import remote
from virttest import utils_package
from virttest import virsh
Expand Down Expand Up @@ -268,6 +269,7 @@ def cleanup_ceph():
vm_name = params.get("migrate_main_vm")
shared_storage_type = params.get('shared_storage_type', '')

libvirt_version.is_libvirt_feature_supported(params)
vm = env.get_vm(vm_name)
migration_obj = base_steps.MigrationBase(test, vm, params)
setup_test = eval("setup_%s" % shared_storage_type) if "setup_%s" % shared_storage_type in \
Expand Down

0 comments on commit 8c971b6

Please sign in to comment.