action #25854
closed[sle][functional][medium] test fails in reboot_and_install - ctrl-alt-del does not work as expected
0%
Description
Observation¶
Looks like the test just switches the console, maybe the alt-f2 is wrong interpreted?
openQA test in scenario sle-15-Installer-DVD-x86_64-gnome+import_ssh_keys@64bit fails in
reboot_and_install
Reproducible¶
Fails since (at least) Build 288.8
Expected result¶
Last good: (unknown) (or more recent)
https://openqa.suse.de/tests/1058285#step/reboot_and_install/2
Further details¶
Always latest result in this scenario: latest
Updated by jorauch over 7 years ago
- Subject changed from [sle][functional] test fails in reboot_and_install to [sle][functional] test fails in reboot_and_install - switches to console when desktop runner is expected
Updated by okurz about 7 years ago
- Priority changed from Normal to Urgent
fails in multiple current tests reproducibly
Updated by jorauch about 7 years ago
- Status changed from New to In Progress
Worked locally on the first try, will start more over night:
http://pinky.arch.suse.de/tests/128
Updated by jorauch about 7 years ago
Could not reproduce it locally on pinky.arch.suse.de/tests/128 - 149
But still fails in production https://openqa.suse.de/tests/1224819
Updated by jorauch about 7 years ago
Fails reproducible on OSD:
https://openqa.suse.de/tests/1225358
https://openqa.suse.de/tests/1225361
https://openqa.suse.de/tests/1225372
Updated by jorauch about 7 years ago
Seems like the Ctrl-Alt-Del sent by reboot_x11 in lib/utils is wrongly interpreted
Updated by jorauch about 7 years ago
- Subject changed from [sle][functional] test fails in reboot_and_install - switches to console when desktop runner is expected to [sle][functional] test fails in reboot_and_install - ctrl-alt-del does not work as expected
Not reproducible manually
Updated by jorauch about 7 years ago
We should implement a workaround and try to find the root cause of this behavior (qemu?)
Updated by jorauch about 7 years ago
When looking at it framewise we can see that it first switches the console and then enters the [ sign
Updated by jorauch about 7 years ago
When switching manually to TTY2 there is no X-Session
Updated by jorauch about 7 years ago
Actually there should be none on SLE12 SP3 which is booted there
Updated by JERiveraMoya about 7 years ago
In https://openqa.suse.de/admin/test_suites for test gnome+import_ssh_keys need to be added following parameters (I don't have permission to do it):
UPGRADE
The problem is that is trying to switch to graphical console (what means in this test to stay where it is, as we can see that at the beginning the starts from gnome desktop), but it is using ctrl+alt+F2, what is ok for new systems but in this test there is an upgrade (two products are used in the same test) therefore ctrl+alt+F2 is leading to the text console instead to the graphical one: https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/utils.pm#L1406
In fact is failing here https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/utils.pm#L329 when trying to get those variables.
I commented partially return get_var('UPGRADE');# && !sle_version_at_least('15', version_variable => 'HDDVERSION');
add UPGRADE setting to the job and run the following verification:
http://dhcp227/tests/288#step/reboot_and_install/5
What to do with the commented part, not sure how to fix the function with HDDVERSION or maybe is about to add another parameter.
Updated by JERiveraMoya about 7 years ago
It seems to be related with: https://progress.opensuse.org/issues/26084
Therefore we just need to add another parameter HDDVERSION=12-SP1
Could someone just add these two parameter: UPGRADE=1 and HDDVERSION=12-SP1 to gnome+import_ssh_keys?
It worked for me fine without commenting any code. Verification run: http://dhcp227/tests/297#step/reboot_and_install/5
Updated by mgriessmeier about 7 years ago
JERiveraMoya wrote:
Could someone just add these two parameter: UPGRADE=1 and HDDVERSION=12-SP1 to gnome+import_ssh_keys?
done
Updated by JERiveraMoya about 7 years ago
Successful runs:
https://openqa.suse.de/tests/1243038#step/reboot_and_install/5
https://openqa.suse.de/tests/1243028#step/reboot_and_install/5
Closing this ticket.
Updated by JERiveraMoya about 7 years ago
- Status changed from In Progress to Resolved
Updated by okurz about 7 years ago
This is an autogenerated message for openQA integration by the openqa_review script:
This bug is still referenced in a failing openQA test: gnome+do_not_import_ssh_keys
https://openqa.suse.de/tests/1255793
Updated by JERiveraMoya about 7 years ago
Parameters missing again: Added to test suite and job retriggered: https://openqa.suse.de/tests/1256654#
Updated by okurz about 7 years ago
- Related to action #27982: [sle][functional]test "gnome+do_not_import_ssh_keys" specifies "UPGRADE=1" when it should not added
Updated by JERiveraMoya about 7 years ago
- Due date changed from 2017-11-08 to 2017-12-06
- Status changed from Resolved to In Progress
Reopen due to is necessary to revert this settings, it is not about an upgrade in this test scenario. Continue working on the solution when there is a console switch in a test with two SUTs.
Updated by JERiveraMoya about 7 years ago
Version modified before the welcome test & needle added to finish test successfully.
PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3936
Once merged new settings need to be added to both affected jobs.
Updated by sebchlad about 7 years ago
How do you estimate the difficulty of this ticket? "easy" "medium" or "hard".
Please add your estimated effort to the subject line
Updated by JERiveraMoya about 7 years ago
- Subject changed from [sle][functional] test fails in reboot_and_install - ctrl-alt-del does not work as expected to [sle][functional][medium] test fails in reboot_and_install - ctrl-alt-del does not work as expected
Updated by JERiveraMoya about 7 years ago
Tested a more modular solution for changing the version suggested by okurz in the PR but unfortunately it didn't work because tty console is only assigned at the beginning before any test is running in this PERL module: https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/lib/susedistribution.pm#L302. Changing the VERSION is only useful for picking the right needles for SLE-15, due to conditions in the source code depending of the value of VERSION variable.
Updated by JERiveraMoya about 7 years ago
Jobs retriggered in https://openqa.suse.de/tests/1274040 and https://openqa.suse.de/tests/1274041 with successful result. Closing task.
Updated by JERiveraMoya about 7 years ago
- Status changed from In Progress to Resolved