[kernel]kotd][ltp][s390x] test fails in install_ltp - failure after install_kotd, console issue
openQA test in scenario sle-12-SP5-Server-DVD-s390x-install_ltp+sle+Server-DVD+KOTD@s390x-kvm-sle12 fails in
Test suite description¶
maintainer: pcervinka, pvorel
Fails since (at least) Build 0222
Last good: (unknown) (or more recent)
Always latest result in this scenario: latest
Test probably needs to schedule again bootloader_zkvm after reboot in install_kotd to properly setup test scenario.
#1 Updated by pcervinka over 2 years ago
- Subject changed from [kernel]kotd][ltp][s390x] test fails in install_ltp - failure after install_kotd, bootloader_zkvm needed to [kernel]kotd][ltp][s390x] test fails in install_ltp - failure after install_kotd, console issue
Experimented with reconnect management console, it helps standard console, but not much to serial terminal.
When is SUT rebooted, it is not possible reconnect by
virsh console as session already exist.
[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
#6 Updated by pcervinka over 2 years ago
The problem is more complex than it looks. It fails on attaching
console1 in command
virsh console openQA-SUT-4 console1. This console should be connected all the time and it doesn't count with system reboot at all, because should be initialized only once per test.
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.
If I understand, we don't have any option to cleanly stop and reconnect
console1 in the same job. Adding
$cmd = "virsh console $name $devname$port"; didn't work.
#8 Updated by pcervinka over 2 years ago
PR created https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/7974, verification on OSD on all backends in progress.