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

installer: start virtiofs after reboot guest #3578

Merged
merged 1 commit into from Jan 13, 2023

Conversation

xiagao
Copy link
Contributor

@xiagao xiagao commented Dec 29, 2022

For some guests, need to restart os after updating drivers. And after os rebooted, need to start virtiofs service.
ID: 2156859
Signed-off-by: Xiaoling Gao xiagao@redhat.com

@xiagao xiagao marked this pull request as ready for review December 29, 2022 03:47
For some guests, need to restart os after updating drivers.
And after os rebooted, need to start virtiofs service.

Signed-off-by: Xiaoling Gao <xiagao@redhat.com>
@xiagao
Copy link
Contributor Author

xiagao commented Dec 29, 2022

@leidwang @YongxueHong Call for your review,thanks.

@@ -109,12 +109,13 @@ def change_virtio_media(cdrom_virtio):
installer_pkg_check_cmd,
copy_files_params=params)

error_context.context("Run viofs service after upgrade...")
win_driver_installer_test.run_viofs_service(test, params, session)

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @xiagao Why we need to remove these 2 line?Seems we only need to add run_viofs_service after vm reboot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did't remove, pls look at the following lines,just move it below.

Copy link
Contributor

@leidwang leidwang Jan 9, 2023

Choose a reason for hiding this comment

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

We used to run run_viofs_service first and then reboot the vm,but now we run run_viofs_service after vm reboot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This patch indeed modify 'start virtiofs after reboot guest' issue, before we didn't consider it because most of windows guests don't need to reboot, but for win2012, it will reboot guest, but after reboot, there is no start virtiofs steps.

@xiagao
Copy link
Contributor Author

xiagao commented Jan 10, 2023

@YongxueHong Could you help review this patch?

Copy link
Contributor

@YongxueHong YongxueHong left a comment

Choose a reason for hiding this comment

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

LGTM.

@YongxueHong YongxueHong merged commit e8a2ba1 into autotest:master Jan 13, 2023
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.

None yet

3 participants