[tw][desktop] test fails in sshd
openQA test in scenario opensuse-Tumbleweed-DVD-x86_64-extra_tests_in_textmode@64bit fails in
I migrate "console_setup" from "extra_test_on_" to the "create_hdd_" in order to setup in advance and don't have to test on extra_test_on_* every time. Please ref: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/5387
By the way, I delete the "x11/x11_setup" from "extra_test_on_*", because the "console_setup" had done all the stuff in "x11/x11_setup".
However, I got some problems. After "console_setup", the /dev/ttyS0 would belongs to the tty group, and also changed the bernhard's group to tty group. When I use this created qcow2 to reboot the system, the bernhard's group still belongs to tty but /dev/ttyS0 belongs to the dialout group. It caused the permission denied when
echo something to the /dev/ttyS0. For example in this case.
There is a same problem happened in "window_system" case when I working on poo#23884(https://progress.opensuse.org/issues/23884). You can also take look into my test run: http://10.67.19.67/tests/344#
This problem only happened in Tumbleweed. Please compare with the SLE(They do the same job):
After reboot to the desktop first time, and then run the x11/x11_setup case to make sure /dev/ttyS0 and bernhard belongs to the same group.
#1 Updated by yuanren10 about 3 years ago
- Status changed from New to In Progress
What I found:¶
I notice when I use "x11/x11_setup" replace "console_setup" in create_hdd_tess_on_*, all tests mentioned above passed. So, I look into what's changed in console_setup. There two commands run:
systemctl --no-pager mask serial-gettty@ttyS0 and
systemctl --no-pager stop serial-gettty@ttyS0. Before run these two commands, ttyS0 belongs to the tty group. But after stop serial-gettty@ttyS0 and run the systemctl mask, ttyS0 would stay in dialout group after reboot. That's the reason caused permission denied.
Firstly, "console_setup" cannot be replaced by "x11/x11_setup", Because it would cause the "extra_test_on_kde" wrong（we had discussed）. After reference poo#30613, I think we should also add bernhard user into the dialout group in force in "ensure_serialdev_permissions" function.