action #33307
closed[qam]test fails in kernel_kexec assuming tty2 but showing tty1, probably `select_console` keypresses got lost
0%
Description
Observation¶
openQA test in scenario sle-12-SP3-Server-DVD-Updates-x86_64-mau-qa_kernel_kexec@64bit fails in
kernel_kexec
after the work on #33097 removing the generic needle "text-login". https://openqa.suse.de/tests/1543211#step/kernel_kexec/20 shows the old "working" behaviour where the test logged into tty1 assuming tty2 but that posed no further problem.
Reproducible¶
Fails reproducibly since the needle for "text-login-…" was removed
Problem¶
It seems that the code in kernel_kexec can cause this problem within
# don't use built-in systemctl api, see poo#31180
script_run("systemctl kexec", 0);
# wait for reboot
reset_consoles();
select_console("root-console");
What I assume happens here is that the select_console call for "root-console" is called immediately after asking for the reboot at a time where the SUT does not react to the key press caused by this. The correct way would be to wait for the SUT being properly booted, e.g. using wait_boot
, before calling select_console
.
Further details¶
Always latest result in this scenario: latest
Updated by okurz over 6 years ago
I created an intermediate needle "tty2-selected-tty1_shown_wrong_console_selected_see_poo33307-20180315" which should mitigate the issue for now. Please try to solve it properly in the test code with wait_boot
.
Updated by okurz over 6 years ago
- Related to action #33097: [functional][medium] tty login needles are matched prematurely, username typing gets lost (was: needle for "password-prompt" is incorrect, shows login-prompt instead) added
Updated by mkravec over 6 years ago
okurz wrote:
I created an intermediate needle "tty2-selected-tty1_shown_wrong_console_selected_see_poo33307-20180315" which should mitigate the issue for now. Please try to solve it properly in the test code with
wait_boot
.
@okurz: please find other solution, your needle is breaking our tests:
Updated by okurz over 6 years ago
Hi jtzhao, can you help? do you plan to work on this?
Updated by okurz over 6 years ago
- Status changed from New to In Progress
- Assignee changed from jtzhao to okurz
Updated by okurz over 6 years ago
triggered https://openqa.suse.de/tests/1566036 to check