-
Notifications
You must be signed in to change notification settings - Fork 242
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
Conversation
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]>
Before: After: |
@@ -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() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
avocado-framework#3714 fixed in upstream. Signed-off-by: Dheeraj Kumar Srivastava <[email protected]>
Sometimes vm failed to get ip because address cache is NULL, so
need to update address cache before getting ip.