tp-qemu icon indicating copy to clipboard operation
tp-qemu copied to clipboard

user_access_shared_dir: add new test case

Open nickzhq opened this issue 2 years ago • 10 comments

ID: 2134266, 2134265 Signed-off-by: Houqi (Nick) Zuo [email protected]

nickzhq avatar Nov 22 '22 02:11 nickzhq

Hello @xiagao , please take a look, thanks! I'm confused with the fact the shared dir is NOT seen at guest.

nickzhq avatar Nov 29 '22 02:11 nickzhq

Hello @xiagao , please take a look, thanks! I'm confused with the fact the shared dir is NOT seen at guest.

Maybe you need to add numa config. guest_numa_nodes = shm0 numa_memdev_shm0 = mem-mem1 numa_nodeid_shm0 = 0

xiagao avatar Nov 29 '22 06:11 xiagao

(1/2) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads.q35: STARTED (1/2) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads.q35: PASS (1148.47 s) (2/2) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.users_access_shared_dir.localgroup_users.q35: STARTED (2/2) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.users_access_shared_dir.localgroup_users.q35: PASS (478.65 s) RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

nickzhq avatar Nov 29 '22 08:11 nickzhq

Linux: (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (69.49 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

Windows: (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (364.31 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

nickzhq avatar Dec 01 '22 08:12 nickzhq

@xiagao @zhencliu @YongxueHong Please take a look, thanks!

nickzhq avatar Dec 01 '22 08:12 nickzhq

@YongxueHong @xiagao Please check again, thanks!

nickzhq avatar Dec 02 '22 05:12 nickzhq

(1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (361.14 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

(1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (76.63 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

nickzhq avatar Dec 02 '22 08:12 nickzhq

@YongxueHong Please check again, thanks!

nickzhq avatar Dec 02 '22 08:12 nickzhq

@YongxueHong please check again, thanks!

nickzhq avatar Dec 05 '22 01:12 nickzhq

Ad windows: (1/1) Host_RHEL.m8.u7.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.domain_users.q35: STARTED (1/1) Host_RHEL.m8.u7.product_rhel.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.domain_users.q35: PASS (461.79 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

nickzhq avatar Dec 06 '22 08:12 nickzhq

(1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (326.30 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 JOB TIME : 328.83 s

nickzhq avatar Dec 28 '22 09:12 nickzhq

(1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/1) Host_RHEL.m9.u2.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (93.70 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 JOB TIME : 96.21 s

nickzhq avatar Dec 28 '22 09:12 nickzhq

(1/1) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.domain_users.q35: STARTED (1/1) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.domain_users.q35: PASS (487.86 s) RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0

nickzhq avatar Jan 03 '23 03:01 nickzhq

@xiagao @zhencliu @YongxueHong Please take a look, thanks!

nickzhq avatar Jan 04 '23 02:01 nickzhq

@xiagao @YongxueHong @zhencliu The code has been updated, thanks!

nickzhq avatar Jan 04 '23 05:01 nickzhq

@xiagao @YongxueHong @zhencliu Please check again, thanks!

nickzhq avatar Jan 05 '23 10:01 nickzhq

(1/3) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (1/3) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.2.0.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (70.30 s) (2/3) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (2/3) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (344.81 s) (3/3) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.domain_users.q35: STARTED (3/3) Host_RHEL.m9.u1.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.Win2022.x86_64.io-github-autotest-qemu.virtio_fs_multi_users_access.domain_users.q35: PASS (373.04 s)

Here are two minor issues.

  1. For linux guest, in the clearing steps, users couldn't be deleted. 2023-01-08 22:11:31: userdel: user user1 is currently used by process 3135 2023-01-08 22:11:31: [root@vm-74-70 ~]# 2023-01-08 22:11:31: 0 2023-01-08 22:11:31: [root@vm-74-70 ~]# 2023-01-08 22:11:31: userdel: user user2 is currently used by process 4186 2023-01-08 22:11:31: [root@vm-74-70 ~]#

  2. For windows common user, there is no need keept the step that login guest. [stdlog] 2023-01-09 02:47:33,862 avocado.test INFO | Context: Login the user: svvpadmin

xiagao avatar Jan 09 '23 09:01 xiagao

@xiagao Please take a look, thanks!

nickzhq avatar Jan 10 '23 02:01 nickzhq

@xiagao @YongxueHong @zhencliu Hello guys, please take a look, thanks! For the domain user, this code has passed on win2012.r2/2016/2022/10/11.

nickzhq avatar Jan 12 '23 05:01 nickzhq

Hello @YongxueHong @xiagao , please take a look, thanks!

nickzhq avatar Jan 16 '23 07:01 nickzhq

@YongxueHong Please check again, thanks!

nickzhq avatar Jan 18 '23 01:01 nickzhq

Hi @nickzhq The first commit virtio_fs_utils: add public function "basic_io_test", I think we should update it base on your codes since it doesn't just relate the add the public function basic_io_test, but you add lots of public functions.

YongxueHong avatar Jan 18 '23 02:01 YongxueHong

Hi @nickzhq The first commit virtio_fs_utils: add public function "basic_io_test", I think we should update it base on your codes since it doesn't just relate the add the public function basic_io_test, but you add lots of public functions.

Done, please check again, thanks! @YongxueHong

nickzhq avatar Jan 18 '23 03:01 nickzhq

@xiagao Please check again, thanks!

nickzhq avatar Jan 30 '23 04:01 nickzhq

@xiagao @YongxueHong @zhencliu Please take a look, thanks!

nickzhq avatar Feb 07 '23 05:02 nickzhq

LGTM

zhencliu avatar Feb 08 '23 02:02 zhencliu

@xiagao @YongxueHong Please take a look again, thanks!

nickzhq avatar Feb 10 '23 01:02 nickzhq

@xiagao Please check again, thanks!

nickzhq avatar Feb 13 '23 03:02 nickzhq

Thanks @nickzhq. I hit the following error on win10-i386, seems PsExec.exe does't work well on win10-i386. ShellCmdError: Shell command failed: '%systemdrive%\/PsExec.exe /accepteula -u user1 -p U1pwd345?a %systemdrive%\cmd_io_test.bat' (status: 1, output: '\nPsExec v2.4 - Execute processes remotely\nCopyright (C) 2001-2022 Mark Russinovich\nSysinternals - www.sysinternals.com\n\nC:\cmd_io_test.bat exited with error code 1.\n\n')

xiagao avatar Feb 13 '23 07:02 xiagao

Thanks @nickzhq. I hit the following error on win10-i386, seems PsExec.exe does't work well on win10-i386. ShellCmdError: Shell command failed: '%systemdrive%/PsExec.exe /accepteula -u user1 -p U1pwd345?a %systemdrive%\cmd_io_test.bat' (status: 1, output: '\nPsExec v2.4 - Execute processes remotely\nCopyright (C) 2001-2022 Mark Russinovich\nSysinternals - www.sysinternals.com\n\nC:\cmd_io_test.bat exited with error code 1.\n\n')

Hi @xiagao the issue has been solved: (1/2) Host_RHEL.m9.u2.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads.q35: STARTED (1/2) Host_RHEL.m9.u2.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.unattended_install.cdrom.extra_cdrom_ks.default_install.aio_threads.q35: PASS (1496.35 s) (2/2) Host_RHEL.m9.u2.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: STARTED (2/2) Host_RHEL.m9.u2.qcow2.virtio_scsi.up.virtio_net.Guest.Win10.i386.io-github-autotest-qemu.virtio_fs_multi_users_access.localgroup_users.q35: PASS (446.39 s) RESULTS : PASS 2 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0 Please check again, thanks!

nickzhq avatar Feb 13 '23 10:02 nickzhq