Project

General

Profile

Actions

action #124430

closed

Right key doesn't reach the SUT when switching to tab Bootloader Options

Added by tinawang123 over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
Start date:
2023-02-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Sprint:
QE-Core: February Sprint (Feb 08 - Mar 08)


Related issues 3 (0 open3 closed)

Related to openQA Tests - action #124347: [sles][15-sp5][Build70.1][qe-core] Wrong product selected and failed to match needleResolvedszarate2023-02-13

Actions
Related to qe-yam - action #124610: Catch regression when sending right key when switching to tab Bootloader Options in ncursesResolvedtinawang1232023-02-15

Actions
Is duplicate of openQA Tests - action #124347: [sles][15-sp5][Build70.1][qe-core] Wrong product selected and failed to match needleResolvedszarate2023-02-13

Actions
Actions #1

Updated by tinawang123 over 1 year ago

But for this x86 case: https://openqa.suse.de/tests/10493761#step/disable_grub_timeout/40
The shortcut is alt-r

Actions #2

Updated by JERiveraMoya over 1 year ago

  • Project changed from openQA Tests to qe-yam
Actions #3

Updated by lpalovsky over 1 year ago

tinawang123 wrote:

Motivation
Failed case: https://openqa.suse.de/tests/10490510#step/disable_grub_timeout/10

We are seeing same thing on HA/SAP tests:
https://openqa.suse.de/tests/10490615#step/disable_grub_timeout/44

However it seems like the problem is here:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/f09658ba40775c5d1a413e64f4e2dca2df1b2f53/tests/installation/disable_grub_timeout.pm#L56
The test is supposed to press "Tab" until it reaches the needle, but is somehow stuck on "Kernel parameters" tab.
I am wondering if this is an actual product bug and yast is unresponsive for some reason.

Actions #4

Updated by JERiveraMoya over 1 year ago

  • Status changed from New to Rejected

it was a mistake that we didn't use libyui-rest-api here.
Please do not label with this ticket.

Actions #5

Updated by tjyrinki_suse over 1 year ago

What happens next with the disable_grub_timeout problems preventing 15-SP5 testing? Is there another ticket or a fix upcoming?

Actions #6

Updated by acarvajal over 1 year ago

  • Project changed from qe-yam to openQA Tests
  • Status changed from Rejected to New

tinawang123 wrote:

But for this x86 case: https://openqa.suse.de/tests/10493761#step/disable_grub_timeout/40
The shortcut is alt-r

However, the test module is not using short cuts, but sending the right key until needle match: https://github.com/os-autoinst/os-autoinst-distri-opensuse/blob/master/tests/installation/disable_grub_timeout.pm#L55-L57

And for some reason, SUT gets one or zero of the right keys and reacts, but then it stops responding.

See the original failure in https://openqa.suse.de/tests/10493761#step/disable_grub_timeout/40 or these ones in the SLES+HA job group:

https://openqa.suse.de/tests/10490612#step/disable_grub_timeout/45
https://openqa.suse.de/tests/10499541#step/disable_grub_timeout/46

As you can see this is failing at least in x86_64 and aarch64, and as reported sometimes SUT manages to react to 1 right key press (screen is left at Kernel Parameters tab), and sometimes to none (screen is left at Boot Code Options tab).

Jobs cloned into my instance also failed like the ones in osd:

http://mango.qa.suse.de/tests/5492#step/disable_grub_timeout/45

However sending an Alt+R before the send_key_until_needlematch does prevent the issue:

http://mango.qa.suse.de/tests/5491

I tried to confirm the issue manually by calling the installer from the ISO on a VM, but could not reproduce the issue over an SSH connection. However, restarting a job in openQA, taking control of it with Developer Mode, and then instructing it to stop at the installation/disable_grub_timeout module, and then connecting with vncviewer, I was able to reproduce the issue by sending the characters: Alt+C, Alt+B, tab, right, right

Not sure if the issue is related to VNC, or if the VM itself is stopping.

I am reopening this and changing the project to openQA Tests. Hope that is correct.

Actions #8

Updated by xlai over 1 year ago

Actions #9

Updated by JERiveraMoya over 1 year ago

  • Subject changed from Bootloader settings page - The shortcuts changed from alt-b to alt-t to Right key doesn't reach the SUT when switch tab to Bootloader Options
Actions #10

Updated by JERiveraMoya over 1 year ago

  • Subject changed from Right key doesn't reach the SUT when switch tab to Bootloader Options to Right key doesn't reach the SUT when switching to tab Bootloader Options
Actions #11

Updated by JERiveraMoya over 1 year ago

we can confirm that right key hang the VM in openQA and outside openQA with our own virtualization,
but using specific shortcut can workaround this situation.
Let's follow up in the bug then.

Actions #12

Updated by bschmidt over 1 year ago

I've opened a PR with the workaround to get tests down the line done:

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/16384

Actions #13

Updated by szarate over 1 year ago

  • Related to action #124347: [sles][15-sp5][Build70.1][qe-core] Wrong product selected and failed to match needle added
Actions #14

Updated by szarate over 1 year ago

@JERiveraMoya, how feasible do you see adding a similar case in the corresponding module using the libyui? to try and reproduce it there too by pressing right at the beginning of the screen, and then continuing with the normal test flow?

I'm thinking that if we manage to reproduce the issue there, we can safely deprecate the old installer workflows in all of our instances, as the libyui is way more reliable, and I doubt that people doing manual installation will be as reliable as openQA in following the same steps over and over :D

Actions #15

Updated by JERiveraMoya over 1 year ago

  • Related to action #124610: Catch regression when sending right key when switching to tab Bootloader Options in ncurses added
Actions #16

Updated by szarate over 1 year ago

  • Sprint set to QE-Core: February Sprint (Feb 08 - Mar 08)
  • Status changed from New to Rejected
  • Assignee set to szarate
Actions #17

Updated by szarate over 1 year ago

  • Is duplicate of action #124347: [sles][15-sp5][Build70.1][qe-core] Wrong product selected and failed to match needle added
Actions #18

Updated by szarate over 1 year ago

  • Tags set to bugbusters
  • Category set to Bugs in existing tests
  • Status changed from Rejected to Resolved
  • Target version set to QE-Core: Ready

See #124347 for resolution

Actions

Also available in: Atom PDF