Project

General

Profile

Actions

action #34471

open

[qe-core][functional][opensuse][medium] too early matching in too generic needle text-login-20160812

Added by okurz about 6 years ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Enhancement to existing tests
Target version:
SUSE QA - Milestone 30
Start date:
2018-04-08
Due date:
% Done:

80%

Estimated time:
42.00 h
Difficulty:
medium

Description

Observation

openQA test in scenario opensuse-42.3-Updates-x86_64-textmode@64bit fails in
zypper_up

[7 Apr 2018 21:01:23] <tacit> okurz: Somewhat more frequent unstable failure: https://openqa.opensuse.org/tests/652064#step/zypper_up/4    suspecting timing here as the root username is entered before the login promot
[7 Apr 2018 21:57:16] <okurz> tacit: well, problem is the not so good needle in https://openqa.opensuse.org/tests/652064#step/zypper_up/1 . as you can see on the '(i)' icon the test looks for tty6-selected and this is what we should use. What happens now that the test expects tt6, checks for just the generic needle, is happy with tty1, then the VM actually switches to tty6 but in the process the root name is already typed, only after that the getty is 
[7 Apr 2018 21:57:16] <okurz> activated. But you know what, I think I have seen this slower behavior even manually. Was there some update to getty or systemd that could have caused a slow down here?
[8 Apr 2018 08:10:09] <okurz> tacit: So actually I would consider a product bug but try to remove our needles nevertheless. We can remove the needle but it might break some tests.

Reproducible

Fails since (at least) Build 20180407-3 (current job)

Expected result

  • AC: There should be no needle with tag "text-login" anymore but only tty$nr-specific ones as we did already for SLE to prevent premature matching

Tasks

  1. Remove all needles with tag "text-login"
  2. Fix the tests that use that needle tag.

Suggestions

  • Find current uses of the generic needles, e.g. "text-login-20160812" using https://openqa.opensuse.org/admin/needles
  • Make sure there exist valid tty$nr-selected needles for all cases where text-login is matched on
  • Delete the too generic needles
  • Crosscheck carefully that all tests on o3 do not fail because of now deleted needles where there is no tty$nr-replacement.

Further details

Always latest result in this scenario: latest

See #33097 for the work that has been done for the corresponding SLE needles.


Related issues 6 (1 open5 closed)

Related to openQA Tests - action #32926: [sle][functional][y][hyperv][medium] avoid typing username before switched tty (was: test fails in yast2_i - (mising needles?, rather too low timeout for hyperv) for Installation Report succesful)Resolvedokurz2018-03-082018-05-22

Actions
Related to openQA Tests - action #33019: [opensuse][functional][sporadic][u][medium] Frequent fails in firefox_audio, firefox not startedResolvedjorauch2018-03-092018-05-22

Actions
Related to openQA Tests - action #36126: [functional][u] post_fail_hook matches on "text_login_root" before actual tty switch and therefore never logs inResolvedzluo2018-05-14

Actions
Related to openQA Tests - action #57281: [sle][Migration][SLE15SP2] test fails in orphaned_packages_check - switch to tty failedResolvedhjluo2019-09-24

Actions
Blocks openQA Tests - action #34339: [qe-core][sle][functional][medium] test fails in consoletest_setup - generic text login matching too early, causing mistyping -- was " login prompt not ready to type - missing keys while typing login"Blockedzluo2018-04-05

Actions
Blocked by openQA Tests - action #32746: [sle][tools][remote-backends][hard] Incomplete job because console isn't responding correctly. Half-open socket on IPMIResolvedokurz2018-03-05

Actions
Actions

Also available in: Atom PDF