Project

General

Profile

Actions

action #25854

closed

[sle][functional][medium] test fails in reboot_and_install - ctrl-alt-del does not work as expected

Added by jorauch over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2017-10-09
Due date:
2017-12-06
% Done:

0%

Estimated time:
Difficulty:

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


Related issues 1 (0 open1 closed)

Related to openQA Tests - action #27982: [sle][functional]test "gnome+do_not_import_ssh_keys" specifies "UPGRADE=1" when it should notResolvedJERiveraMoya2017-11-212017-12-06

Actions
Actions #1

Updated by jorauch over 6 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
Actions #2

Updated by okurz over 6 years ago

  • Priority changed from Normal to Urgent

fails in multiple current tests reproducibly

Actions #3

Updated by jorauch over 6 years ago

Should we then open a bug for this?

Actions #4

Updated by jorauch over 6 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

Actions #5

Updated by jorauch over 6 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

Actions #7

Updated by jorauch over 6 years ago

  • Assignee set to jorauch
Actions #8

Updated by jorauch over 6 years ago

Seems like the Ctrl-Alt-Del sent by reboot_x11 in lib/utils is wrongly interpreted

Actions #9

Updated by jorauch over 6 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

Actions #10

Updated by jorauch over 6 years ago

We should implement a workaround and try to find the root cause of this behavior (qemu?)

Actions #11

Updated by jorauch over 6 years ago

When looking at it framewise we can see that it first switches the console and then enters the [ sign

Actions #12

Updated by jorauch over 6 years ago

When switching manually to TTY2 there is no X-Session

Actions #13

Updated by okurz over 6 years ago

  • Due date set to 2017-11-08
Actions #14

Updated by jorauch over 6 years ago

Actually there should be none on SLE12 SP3 which is booted there

Actions #15

Updated by jorauch over 6 years ago

  • Assignee deleted (jorauch)
Actions #16

Updated by JERiveraMoya over 6 years ago

  • Assignee set to JERiveraMoya
Actions #17

Updated by JERiveraMoya over 6 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.

Actions #18

Updated by JERiveraMoya over 6 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

Actions #19

Updated by mgriessmeier over 6 years ago

JERiveraMoya wrote:

Could someone just add these two parameter: UPGRADE=1 and HDDVERSION=12-SP1 to gnome+import_ssh_keys?

done

Actions #21

Updated by JERiveraMoya over 6 years ago

  • Status changed from In Progress to Resolved
Actions #22

Updated by okurz over 6 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

Actions #23

Updated by JERiveraMoya over 6 years ago

Parameters missing again: Added to test suite and job retriggered: https://openqa.suse.de/tests/1256654#

Actions #24

Updated by okurz over 6 years ago

  • Related to action #27982: [sle][functional]test "gnome+do_not_import_ssh_keys" specifies "UPGRADE=1" when it should not added
Actions #25

Updated by JERiveraMoya over 6 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.

Actions #26

Updated by JERiveraMoya over 6 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.

Actions #27

Updated by sebchlad over 6 years ago

How do you estimate the difficulty of this ticket? "easy" "medium" or "hard".

Please add your estimated effort to the subject line

Actions #28

Updated by JERiveraMoya over 6 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
Actions #29

Updated by JERiveraMoya over 6 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.

Actions #30

Updated by JERiveraMoya over 6 years ago

Jobs retriggered in https://openqa.suse.de/tests/1274040 and https://openqa.suse.de/tests/1274041 with successful result. Closing task.

Actions #31

Updated by JERiveraMoya over 6 years ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF