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

Fixup VMIPAddressMissingError #3714

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Conversation

cliping
Copy link
Contributor

@cliping cliping commented Jul 7, 2023

Sometimes vm failed to get ip because address cache is NULL, so
need to update address cache before getting ip.

Sometimes vm failed to get ip because address cache is NULL, so
 need to update address cache before getting ip.

Signed-off-by: cliping <[email protected]>
@cliping
Copy link
Contributor Author

cliping commented Jul 7, 2023

Before:
(1/1) type_specific.io-github-autotest-libvirt.migration.migrate_graphics.listen_type_socket.p2p: ERROR: No ipv4 DHCP lease for MAC 52:54:00:17:27:3a (174.50 s)

After:
(1/1) type_specific.io-github-autotest-libvirt.migration.migrate_graphics.listen_type_socket.p2p: PASS (241.94 s)

@@ -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()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do line 135 and 136 are necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are necessary. The existing serial console may be connected to the source vm. So when we ping vm on dest, we need to clean the console first. Then we create a new serial console for vm on dest.

@cliping cliping requested a review from chunfuwen July 18, 2023 08:02
Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@chunfuwen chunfuwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chunfuwen chunfuwen merged commit 3ee245e into avocado-framework:master Aug 16, 2023
49 checks passed
bssrikanth pushed a commit to bssrikanth/avocado-vt that referenced this pull request Nov 14, 2023
avocado-framework#3714 fixed in
upstream.

Signed-off-by: Dheeraj Kumar Srivastava <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants