[kernel]kotd][ltp][s390x][svirt] Console root-sut-serial is not designed for system reboot
|Target version:||SUSE QA tests - Planned - kernel&network|
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.
virsh console command doesn't help.
Explore/implement possibility to improve root-sut-serial terminal.
Test using root-sut-serial will work after SUT reboot.
I guess some code needs to be added into
#8 Updated by pvorel about 1 month ago
- Assignee set to pvorel
OK, this is also a problem for pressure_stall_information test
showed, when fixed: