Project

General

Profile

Actions

action #55115

closed

[qe-core][functional] test fails in sssd - Test fails switching to serial terminal

Added by szarate over 4 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 31
Start date:
2019-08-05
Due date:
% Done:

0%

Estimated time:
42.00 h
Difficulty:

Description

Observation

Apparently after the dracut test is done, the sssd test cannot be executed.

To support the hypotheses I've triggered an extra test: https://openqa.suse.de/tests/3209687

The log fails like this, theory could be that the wait_boot and/or power_action needs to reconnect to the SUT.

# wait_serial expected: qr/(?^ui:login:\s*$)/

# Result:
Script started, file is /tmp/serial_terminal.txt.GeGU1_eLDCKOBBPU
Connected to domain openQA-SUT-1
Escape character is ^]
error: operation failed: Active console session exists for this domain

CONSOLE_EXIT_GeGU1_eLDCKOBBPU: 1
Script done, file is /tmp/serial_terminal.txt.GeGU1_eLDCKOBBPU

openQA test in scenario sle-12-SP5-Server-DVD-s390x-extra_tests_in_textmode@s390x-kvm-sle12 fails in
sssd

Suggestions

  • Check lib/power_action_utils.pm and see if by using keep_console helps with the situation for s390
  • Consult with PO :)
  • Move dracut to a separate test suite.
  • Improve the power_action function to take into account the bakend and keep consoles.
    • Hint from kdump_and_crash: power_action('reboot', keepconsole => is_spvm);

Reproducible

Fails since (at least) Build 0170

Further details

Always latest result in this scenario: latest


Related issues 5 (0 open5 closed)

Related to openQA Tests - action #47123: [functional][u][tw] extra_tests_in_textmode fails in zbarResolvedpstivanin2019-02-04

Actions
Related to openQA Tests - action #57215: [functional][u] test fails in sssd - Failed to start SSSDResolvedszarate2019-09-23

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

Actions
Related to openQA Tests - action #89479: [qe-core] test fails in sssd - Fix sssd testing with openldap, remove use of python-pamResolvedtonyyuan

Actions
Has duplicate openQA Tests - action #54956: [sle][functional][u] test fails in dracut - reboot failedRejected2019-08-01

Actions
Actions #1

Updated by szarate over 4 years ago

  • Description updated (diff)
  • Status changed from New to Workable
Actions #2

Updated by szarate over 4 years ago

  • Has duplicate action #54956: [sle][functional][u] test fails in dracut - reboot failed added
Actions #3

Updated by zluo over 4 years ago

  • Status changed from Workable to In Progress
  • Assignee set to zluo

take over

Actions #4

Updated by zluo over 4 years ago

after reboot I add reconnect_mgmt_console, but it is still not working yet: http://f40.suse.de/tests/4887

use base 'opensusebasetest';
use testapi;
use utils;
use strict;
use warnings;
use power_action_utils 'power_action';
use Utils::Backends 'is_remote_backend';
sub run {
my ($self) = @_;
$self->select_serial_terminal;
assert_script_run("rpm -q dracut");
validate_script_output("lsinitrd", sub { m/Image:(.*\n)+( ?)Version: dracut(-|\d+|\.|\+|\w+)+(\n( ?))+( ?)Arguments(.*\n)+( ?)dracut modules:(\w+|-|\d+|\n|( ?))+\=+\n(l|d|r|w|x|-|( ?))+\s+\d+ root\s+root(.*\n)+( ?)\=+/ });
validate_script_output("dracut -f 2>&1", sub { m/.*Executing: \/usr\/bin\/dracut -f\n|\b(?:Skipping|Including modules done|Including|Creating image|Creating initramfs)\b/ }, 180);
validate_script_output("dracut --list-modules 2>&1", sub { m/.*Executing: \/usr\/bin\/dracut --list-modules\n(\w+|\n|-|d+)+/ });
power_action('reboot', textmode => 1);
reconnect_mgmt_console(timeout => 400) if is_remote_backend;
$self->wait_boot;
}
1;
Actions #6

Updated by pcervinka over 4 years ago

Already faced this situation in https://progress.opensuse.org/issues/54578. It has no easy solution, reconnect_mgmt_console will not help, using virsh console with force will not help too.

Another note related to dracut tests. Reboot in dracut was causing issues in the past and for this case was created extra_tests_dracut to keep it separate from other tests. See https://progress.opensuse.org/issues/47123. I suggest to run extra_tests_dracut in functional group as solo test.

Actions #7

Updated by pcervinka over 4 years ago

  • Related to action #47123: [functional][u][tw] extra_tests_in_textmode fails in zbar added
Actions #10

Updated by zluo over 4 years ago

since we have problem with reconnect_mgmt_console (see #46394), I think atm we cannot fix the issue directly on remote_backend.

option could be to move dracut out from extra_test, untill the issue #46394 got resolved.

See example:

http://f40.suse.de/tests/4888

Actions #11

Updated by zluo over 4 years ago

PR created: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8138

I will create a job dracut test extra for remote backend later.

Actions #12

Updated by zluo over 4 years ago

remove dracut test from extra test and dracut test now got scheduled seperatly on osd.

Actions #13

Updated by zluo over 4 years ago

  • Status changed from In Progress to Resolved

verified on osd that dracut is not in extra test anymore, and dracut got scheduled separately:

http://openqa.suse.de/tests/3225363

Actions #14

Updated by szarate over 4 years ago

  • Description updated (diff)
  • Status changed from Resolved to Workable

Let's set it back to workable, and groom further later.

Actions #15

Updated by zluo over 4 years ago

  • Assignee deleted (zluo)
Actions #16

Updated by zluo over 4 years ago

  • Priority changed from High to Normal

set as normal for now.

Actions #17

Updated by mgriessmeier over 4 years ago

  • Status changed from Workable to New
  • Priority changed from Normal to High
  • Target version changed from Milestone 26 to Milestone 27

discuss again in grooming

Actions #18

Updated by SLindoMansilla over 4 years ago

kdump_and_crash is also rebooting but it is not failing because it is using:

power_action('reboot', keepconsole => is_spvm);

We should use keepconsole parameter of function power_action in dracut test module.

Actions #19

Updated by SLindoMansilla over 4 years ago

  • Description updated (diff)
  • Status changed from New to Workable
  • Priority changed from High to Normal
Actions #20

Updated by SLindoMansilla over 4 years ago

  • Estimated time set to 42.00 h
Actions #21

Updated by mgriessmeier over 4 years ago

  • Target version changed from Milestone 27 to Milestone 28
Actions #22

Updated by SLindoMansilla over 4 years ago

  • Related to action #57215: [functional][u] test fails in sssd - Failed to start SSSD added
Actions #23

Updated by mgriessmeier over 4 years ago

  • Target version changed from Milestone 28 to Milestone 31
Actions #24

Updated by okurz over 4 years ago

  • Related to action #57281: [sle][Migration][SLE15SP2] test fails in orphaned_packages_check - switch to tty failed added
Actions #25

Updated by zluo about 4 years ago

I think we stil have the issue: https://bugzilla.suse.com/show_bug.cgi?id=1151373

so this is blocked atm.

Actions #26

Updated by zluo about 4 years ago

Actions #27

Updated by zluo about 4 years ago

  • Status changed from Workable to Blocked

https://openqa.suse.de/tests/overview?arch=&machine=&modules=sssd&distri=sle&version=15-SP2&build=168.1&groupid=110#

aarch64, ppc64le, x86_64 are failed atm because the product issue above, s390x is not scheduled at all.

Actions #29

Updated by tjyrinki_suse over 3 years ago

  • Subject changed from [functional][u] test fails in sssd - Test fails switching to serial terminal to [qe-core][functional] test fails in sssd - Test fails switching to serial terminal
Actions #30

Updated by tjyrinki_suse about 3 years ago

  • Related to action #89479: [qe-core] test fails in sssd - Fix sssd testing with openldap, remove use of python-pam added
Actions #31

Updated by tjyrinki_suse almost 3 years ago

  • Status changed from Blocked to Resolved

The sssd test was now rewritten in sssd_{openldap,389ds}_functional modules.

Actions

Also available in: Atom PDF