Project

General

Profile

action #60115

Updated by zluo over 4 years ago

I checked the logs: 

 [2019-11-20T18:22:01.776 CET] [debug] >>> testapi::wait_serial: (?^:i2PcM-\d+-): ok 
 [2019-11-20T18:22:01.777 CET] [debug] /var/lib/openqa/cache/openqa.suse.de/tests/sle/tests/console/sshd.pm:66 called opensusebasetest::select_serial_terminal 
 [2019-11-20T18:22:01.777 CET] [debug] <<< testapi::select_console(testapi_console='root-sut-serial') 
 [2019-11-20T18:22:01.778 CET] [debug] Activate console on libvirt_domain:openQA-SUT-1 devname:console port:1 
 [2019-11-20T18:22:01.778 CET] [debug] <<< backend::svirt::open_serial_console_via_ssh(name='openQA-SUT-1', devname='console', port=1, blocking=0) 
 [2019-11-20T18:22:01.778 CET] [debug] Starting SSH connection to connect to libvirt domain 'openQA-SUT-1' (cmd: 'virsh console openQA-SUT-1 console1'), full cmd: 'script -f /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u -c 'virsh console openQA-SUT-1 console1; echo "CONSOLE_EXIT_1FzvU6nyjTmkke0u: $?"'' 
 [2019-11-20T18:22:01.778 CET] [debug] <<< backend::baseclass::run_ssh(cmd='script -f /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u -c \'virsh console openQA-SUT-1 console1; echo "CONSOLE_EXIT_1FzvU6nyjTmkke0u: $?"\'', blocking=0) 
 [2019-11-20T18:22:01.778 CET] [debug] <<< backend::baseclass::new_ssh_connection(blocking=0) 
 [2019-11-20T18:22:01.864 CET] [debug] SSH connection to root@s390p8.suse.de established 
 [2019-11-20T18:22:01.911 CET] [debug] <<< backend::baseclass::run_ssh_cmd(cmd='grep -q \'^CONSOLE_EXIT_1FzvU6nyjTmkke0u:\' /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u', keep_open=1, wantarray=1) 
 [2019-11-20T18:22:01.911 CET] [debug] <<< backend::baseclass::run_ssh(cmd='grep -q \'^CONSOLE_EXIT_1FzvU6nyjTmkke0u:\' /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u', wantarray=1, keep_open=1) 
 [2019-11-20T18:22:01.911 CET] [debug] <<< backend::baseclass::new_ssh_connection(blocking=1, keep_open=1, wantarray=1) 
 [2019-11-20T18:22:01.946 CET] [debug] [run_ssh_cmd(grep -q '^CONSOLE_EXIT_1FzvU6nyjTmkke0u:' /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u)] stderr: 
 grep: /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u: No such file or directory 

 [2019-11-20T18:22:01.946 CET] [debug] [run_ssh_cmd(grep -q '^CONSOLE_EXIT_1FzvU6nyjTmkke0u:' /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u)] exit-code: 2 
 [2019-11-20T18:22:01.946 CET] [debug] activate_console, console: root-sut-serial, type: sut-serial 
 [2019-11-20T18:22:01.946 CET] [debug] /var/lib/openqa/cache/openqa.suse.de/tests/sle/tests/console/sshd.pm:66 called opensusebasetest::select_serial_terminal 
 [2019-11-20T18:22:01.946 CET] [debug] <<< serial_terminal::login() 
 [2019-11-20T18:22:01.947 CET] [debug] /var/lib/openqa/cache/openqa.suse.de/tests/sle/tests/console/sshd.pm:66 called opensusebasetest::select_serial_terminal 
 [2019-11-20T18:22:01.947 CET] [debug] <<< testapi::type_string(text=' 
 ') 
 [2019-11-20T18:22:01.947 CET] [debug] <<< consoles::serial_screen::type_string(cmd='backend_type_string', json_cmd_token='JODgzYra', text=' 
 ') 
 [2019-11-20T18:22:01.948 CET] [debug] /var/lib/openqa/cache/openqa.suse.de/tests/sle/tests/console/sshd.pm:66 called opensusebasetest::select_serial_terminal 
 [2019-11-20T18:22:01.948 CET] [debug] <<< testapi::wait_serial(no_regex=0, record_output=undef, quiet=undef, expect_not_found=0, timeout=90, regexp=qr/login:\s*$/ui, buffer_size=undef) 
 [2019-11-20T18:22:01.949 CET] [debug] <<< consoles::serial_screen::read_until(record_output=undef, no_regex=0, buffer_size=undef, json_cmd_token='POHPnRqR', pattern='(?^ui:login:\\s*$)', expect_not_found=0, quiet=undef, timeout=90, regexp='(?^ui:login:\\s*$)', cmd='backend_wait_serial') 
 [2019-11-20T18:23:32.060 CET] [debug] >>> testapi::wait_serial: (?^ui:login:\s*$): fail 
 [2019-11-20T18:23:32.060 CET] [debug] Failed to wait for login prompt at /var/lib/openqa/cache/openqa.suse.de/tests/sle/lib/serial_terminal.pm line 87. 

     [2019-11-20T18:22:01.778 CET] [debug] Starting SSH connection to connect to libvirt domain 'openQA-SUT-1' (cmd: 'virsh console openQA-SUT-1 console1'), full cmd: 'script -f /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u -c 'virsh console openQA-SUT-1 console1; echo "CONSOLE_EXIT_1FzvU6nyjTmkke0u: $?"'' 
    

 run_ssh_cmd got issue with serial_terminal.txt because command 'virsh console openQA-SUT-1 console1' seems to not be failed: 

 /tmp/serial_terminal.txt.1FzvU6nyjTmkke0u: No such file or directory 

 compared with successful test (sles 12 sp5) https://openqa.suse.de/tests/3576395/file/autoinst-log.txt, it looks like kvm host is not ready yet or is not in an active state. 


 ## Observation 

 openQA test in scenario sle-15-SP2-Online-s390x-default@s390x-kvm-sle12 fails in 
 [sshd](https://openqa.suse.de/tests/3613749/modules/sshd/steps/21) 

 ## Test suite description 
 Maintainer: okurz 

 The standard scenario where we mainly just follow installation suggestions without any adjustments. 


 ## Reproducible 

 Fails since (at least) Build [89.1](https://openqa.suse.de/tests/3597962) 


 ## Expected result 

 Last good: (unknown) (or more recent) 


 ## Further details 

 Always latest result in this scenario: [latest](https://openqa.suse.de/tests/latest?arch=s390x&distri=sle&flavor=Online&machine=s390x-kvm-sle12&test=default&version=15-SP2) 

Back