-
Notifications
You must be signed in to change notification settings - Fork 174
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
Netkvm: Fix session handling issue during netkvm driver installation #4158
Conversation
9655041
to
7622023
Compare
qemu/tests/single_driver_install.py
Outdated
|
||
ext_host = utils_net.get_ip_address_by_interface(ifname="%s" % params.get("netdst")) | ||
test.log.info("ext_host of netkvm adapte is %s" % ext_host) | ||
guest_ip = vm.get_address(1) |
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.
I'm curious how to determine the ip owner? rtl8139 or virtio-net ?
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.
I use get_address function call to get my IP, and its parameter "1" comes from the "single_driver_install.cfg" file, where it is defined as nic_model_nic2.
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.
As our discussion, I changed "Index as 1" to "Name as nic2" now. This also works. Please review it when you are free. Thanks in advance.
4c4b0d8
to
088ff5f
Compare
Test Result: Fully passed on "--category=virtio_win_prewhql_acceptance --guestname=Win2016" |
cfcae03
to
217316a
Compare
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.
ACK.
Hi @leidwang, Could you help review it when you have times? Thanks :) |
217316a
to
468a5a2
Compare
468a5a2
to
4acabcd
Compare
Hi @lkotek Would you please help review this PR, I guess gating test also include this test case,thanks! |
Ack. Yes, exactly. I am aware of the issue because of the gating stage jobs. Thanks for the fix! I am fine with the changes as the PR was already successfully tested with Win2016 guest. |
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.
Hi @vivianQizhu, Could you help review this patch as well, thanks a lot. |
qemu/tests/single_driver_install.py
Outdated
@@ -172,6 +174,15 @@ def run(test, params, env): | |||
if not utils_misc.wait_for(lambda: not session.cmd_status(chk_cmd), | |||
600, 60, 10): | |||
test.fail("Failed to install driver '%s'" % driver_name) | |||
if device_name[0:30] == "Red Hat VirtIO Ethernet Adapte": |
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.
I think there is a typo on the device name.
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.
@vivianQizhu, That is the name of device_name. It was in effect in our recent test log.
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.
My bad. I see my mistake. I will fix it.
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.
I have fixed it. Could you help review it again? Thanks a lot!
0292c08
to
293f43d
Compare
33b641f
to
bfe157e
Compare
Test Result:
|
bfe157e
to
246bdc3
Compare
246bdc3
to
7e02e0d
Compare
Installing the netkvm driver on an existing network interface caused session handling issues, leading to test failures. This patch changes the session handling from SSH to the serial session by replacing vm.wait_for_login() with vm.wait_for_serial_login(). It also adds a ping test to verify network connectivity after the driver installation. Signed-off-by: wji <[email protected]>
7e02e0d
to
47078b5
Compare
Installing the netkvm driver on an existing network interface caused session handling issues, leading to test failures. This patch changes the session handling from SSH to the serial session by replacing vm.wait_for_login() with vm.wait_for_serial_login(). It also adds a ping test to verify network connectivity after the driver installation.
ID: 1382
Signed-off-by: wji [email protected]