action #54578

[kernel]kotd][ltp][s390x][svirt] Console root-sut-serial is not designed for system reboot

Added by pcervinka 7 months ago. Updated about 1 month ago.

Status:NewStart date:23/07/2019
Priority:NormalDue date:
Assignee:pvorel% Done:

0%

Category:Spike/Research
Target version:SUSE QA tests - Planned - kernel&network
Difficulty:hard
Duration:

Description

Description

Reboot of the system fails, if is console root-sut-serial selected as main console for whole test scenario.

Example of failure: https://openqa.suse.de/tests/3062903#step/install_ltp/1
UPDATE: https://openqa.suse.de/tests/3341127 (install_ltp+sle+Server-DVD+KOTD@s390x-kvm-sle12)

[2019-07-15T12:02:53.080 CEST] [debug] Command executed: '[ -f '/tmp/serial_terminal.txt.HSwG7zmFqv2QmkFK' ] && rm -v /tmp/serial_terminal.txt.HSwG7zmFqv2QmkFK', ret=0
[2019-07-15T12:02:53.080 CEST] [debug] Backend process died, backend errors are reported below in the following lines:
problem with virsh: cmd: 'virsh console openQA-SUT-4 console1', output of script wrapper: 'Script started on Mon Jul 15 12:02:51 2019
Connected to domain openQA-SUT-4
Escape character is ^]
error: operation failed: Active console session exists for this domain

It is related to fact, that virsh console openQA-SUT-4 console1 should be used only once during test scenario.
There is no option to cleanly disconnect and connect to console again.

virsh console init is done in function open_serial_console_via_ssh in svirt.pm

Description of the function says:

Opens SSH connection to grab serial terminal log
(using consoles::serial_screen, saved into serial_terminal.txt).

This method is not supposed to be called twice for test run due logging
into file.

Option --force for virsh console command doesn't help.

Actions:

Explore/implement possibility to improve root-sut-serial terminal.

Expected result:

Test using root-sut-serial will work after SUT reboot.


Related issues

Related to openQA Tests - action #54275: [kernel]kotd][ltp][s390x] test fails in install_ltp - fai... Closed 15/07/2019
Related to openQA Tests - action #55115: [functional][u] test fails in sssd - Test fails switching... Workable 05/08/2019

History

#1 Updated by pcervinka 7 months ago

  • Related to action #54275: [kernel]kotd][ltp][s390x] test fails in install_ltp - failure after install_kotd, console issue added

#2 Updated by pvorel 7 months ago

  • Description updated (diff)

#3 Updated by pcervinka 7 months ago

  • Duplicates action #55115: [functional][u] test fails in sssd - Test fails switching to serial terminal added

#4 Updated by pcervinka 7 months ago

  • Duplicates deleted (action #55115: [functional][u] test fails in sssd - Test fails switching to serial terminal)

#5 Updated by pcervinka 7 months ago

  • Related to action #55115: [functional][u] test fails in sssd - Test fails switching to serial terminal added

#6 Updated by pvorel 5 months ago

I guess some code needs to be added into prepare_system_shutdown() (lib/power_action_utils.pm).

Proposed PR: https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/8434

#7 Updated by pvorel 5 months ago

  • Description updated (diff)

#8 Updated by pvorel about 1 month ago

  • Assignee set to pvorel

OK, this is also a problem for pressure_stall_information test
http://quasar.suse.cz/tests/4668
showed, when fixed:
https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/9300

Also available in: Atom PDF