Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wrong configuration for migration test for network data transport tls #6107

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
libvirtd_debug_level = "1"
libvirtd_debug_filters = "1:*"
check_str_local_log = '['"dir":"/etc/pki/qemu","endpoint":"client","verify-peer":true']'
check_str_remote_log = '"dir":"/etc/pki/qemu","endpoint":"server","verify-peer":true'
check_str_remote_log = '['"dir":"/etc/pki/qemu","endpoint":"server","verify-peer":true']'
action_during_mig = '[{"func": "libvirt_network.check_established", "after_event": "iteration: \'1\'", "func_param": "params"}, {"func": "set_migrate_speed_to_high", "func_param": "params"}]'
- tls_destination:
no with_postcopy
Expand Down
11 changes: 7 additions & 4 deletions provider/migration/base_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,13 @@ def check_local_and_remote_log(self, local_str_in_log=True, remote_str_in_log=Tr
:param remote_str_in_log: True if the remote file should include the given string,
otherwise, False
"""
check_str_local_log = eval(self.params.get("check_str_local_log", "[]"))
check_no_str_local_log = eval(self.params.get("check_no_str_local_log", "[]"))
check_str_remote_log = eval(self.params.get("check_str_remote_log", "[]"))
check_no_str_remote_log = eval(self.params.get("check_no_str_remote_log", "[]"))
try:
check_str_local_log = eval(self.params.get("check_str_local_log", "[]"))
check_no_str_local_log = eval(self.params.get("check_no_str_local_log", "[]"))
check_str_remote_log = eval(self.params.get("check_str_remote_log", "[]"))
check_no_str_remote_log = eval(self.params.get("check_no_str_remote_log", "[]"))
except Exception as e:
self.test.error(f"Wrong test configuration. Unable to eval one or more parameter(s): {str(e)}")
log_file = self.params.get("libvirtd_debug_file")
runner_on_target = None

Expand Down