Skip to content

Commit

Permalink
Merge pull request #2921 from Yingshun/vtpm_mig_issues
Browse files Browse the repository at this point in the history
migration: Fix getting ip failure and secret-set-value issue
  • Loading branch information
dzhengfy authored Jul 23, 2020
2 parents ea91424 + ef8b8e9 commit 21b8463
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions libvirt/tests/src/migration/migrate_options_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -1099,10 +1099,9 @@ def time_diff_between_vm_host(localvm=True):
if not remote_virsh_session:
remote_virsh_session = virsh.VirshPersistent(**remote_virsh_dargs)

remote_virsh_session.secret_set_value(dest_tmp_sec_uuid,
dst_secret_value,
encode=True,
debug=True)
remote_virsh_session.secret_set_value(
dest_tmp_sec_uuid, dst_secret_value, encode=True,
debug=True, ignore_status=True)
remote_virsh_session.close_session()

remote_session = remote.remote_login("ssh", server_ip, "22",
Expand Down Expand Up @@ -1409,10 +1408,15 @@ def time_diff_between_vm_host(localvm=True):

if cmd_in_vm_after_migration:
vm_after_mig = utils_test.RemoteVMManager(cmd_parms)
vm_after_mig.setup_ssh_auth(vm.get_address(),
remote_session = remote.wait_for_login('ssh', server_ip, '22',
server_user, server_pwd,
r"[\#\$]\s*$")
vm_ip = vm.get_address(session=remote_session)
remote_session.close()
vm_after_mig.setup_ssh_auth(vm_ip,
params.get("password"),
timeout=60)
cmd_result = vm_after_mig.run_command(vm.get_address(),
cmd_result = vm_after_mig.run_command(vm_ip,
cmd_in_vm_after_migration)
logging.debug("cmd_result is %s", cmd_result)
if cmd_result.exit_status:
Expand Down

0 comments on commit 21b8463

Please sign in to comment.