Skip to content

Commit

Permalink
Merge pull request #3714 from cliping/fix-ping
Browse files Browse the repository at this point in the history
Fixup VMIPAddressMissingError
  • Loading branch information
chunfuwen authored Aug 16, 2023
2 parents fe0abdc + 580ed13 commit 3ee245e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions virttest/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ def ping_vm(self, vm, params, uri=None, ping_count=10,
func = exceptions.TestFail
uri_backup = vm.connect_uri
vm.connect_uri = uri
vm.cleanup_serial_console()
vm.create_serial_console()
utils_net.update_mac_ip_address(vm, timeout=120)
vm.cleanup_serial_console()
server_session = test_setup.remote_session(params)
# after migration VM would take some time to respond and to
# avoid the race of framework querying IP address before VM
Expand Down

0 comments on commit 3ee245e

Please sign in to comment.