On Thu, Jul 19, 2012 at 12:15 PM, Pradeep Kumar Surisetty <psuri...@linux.vnet.ibm.com> wrote: > * lei yang <yanglei.f...@gmail.com> [2012-07-19 11:13:30]: > >> Hi experts, >> >> I just try, there is no testcases related virito_console passed >> >> Below is the virtio_console.basic testing, any points? > > just now verified on xKVM. it works fine. > you might want to check test case if any arch specific code is there. >
what is xKVM here. I'm using x86 arch. do you have any special config for this testing, I only enable CONFIG_VIRTIO_CONSOLE=y Lei >> >> >> 07/19 10:50:20 INFO |virt_test_utils.py: wait_for_login: 92| >> Logged into guest vm1 using serial connection >> 07/19 10:50:20 DEBUG| virt_vm.py: get_address: 467| >> Found/Verified IP 128.224.165.248 for VM vm1 NIC 0 >> 07/19 10:50:20 DEBUG| virt_remote.py: remote_scp: 328| Trying >> to SCP with command 'scp -v -o UserKnownHostsFile=/dev/null -o >> PreferredAuthentications=password -r -P 22 >> /autotest/client/virt/scripts/virtio_console_guest.py >> root@128.224.165.248:/tmp', timeout 3600s >> 07/19 10:50:20 DEBUG| virt_remote.py: _remote_scp: 270| Got 'Are >> you sure...', sending 'yes' >> 07/19 10:50:21 DEBUG| virt_remote.py: _remote_scp: 276| Got >> password prompt, sending 'root' >> 07/19 10:50:21 DEBUG| virt_remote.py: _remote_scp: 303| SCP >> process terminated with status 0 >> 07/19 10:50:21 DEBUG|virtio_console.py: _init_guest: 551| >> compile virtio_console_guest.py on guest vm1 >> 07/19 10:50:21 DEBUG|virtio_console.py: _on_guest: 630| >> Executing 'python -OO /tmp/virtio_console_guest.py -c&& echo -n 'PASS: >> Compile virtio_guest finished' ||echo -n 'FAIL: Compile virtio_guest >> failed'' on virtio_console_guest.py loop, vm: vm1, timeout: 10 >> 07/19 10:50:21 DEBUG|virtio_console.py: _init_guest: 563| >> Starting virtio_console_guest.py on guest vm1 >> 07/19 10:50:21 DEBUG|virtio_console.py: _on_guest: 630| >> Executing 'python /tmp/virtio_console_guest.pyo &&echo -n 'PASS: >> virtio_guest finished' ||echo -n 'FAIL: virtio_guest failed'' on >> virtio_console_guest.py loop, vm: vm1, timeout: 10 >> 07/19 10:50:23 DEBUG|virtio_console.py: _on_guest: 630| >> Executing 'virt.init([['console-0', 'yes'], ['console-1', 'yes'], >> ['serialport-2', 'no'], ['serialport-3', 'no']])' on >> virtio_console_guest.py loop, vm: vm1, timeout: 10 >> 07/19 10:50:31 DEBUG|virt_env_process.py:_update_address_cache: >> 509| (address cache) DHCP lease OK: 00:15:17:bb:5e:88 --> >> 128.224.165.205 >> 07/19 10:50:33 INFO |virtio_console.py:run_virtio_console: 2164| >> Summary: 0 tests passed 0 test failed : >> >> 07/19 10:50:33 ERROR| virt_test.py: run_once: 104| Test >> failed: TestFail: Failed to execute 'virt.init([['console-0', 'yes'], >> ['console-1', 'yes'], ['serialport-2', 'no'], ['serialport-3', >> 'no']])' on virtio_console_guest.py, vm: vm1, output: >> Cmd process timeout. Data in console: PASS: compile >> PASS: Compile virtio_guest finishedroot@x86-64-kvm-guest:~# >> root@x86-64-kvm-guest:~# python /tmp/virtio_console_guest.pyo &&echo >> -n 'PASS<thon /tmp/virtio_console_guest.pyo &&echo -n 'PASS: >> virtio_guest finished' |<uest.pyo &&echo -n 'PASS: virtio_guest >> finished' ||echo -n 'FAIL: virtio_gue<virtio_guest finished' ||echo -n >> 'FAIL: virtio_guest failed' >> Traceback (most recent call last): >> File "/var/volatile/tmp/virtio_console_guest.py", line 929, in <module> >> main() >> File "/var/volatile/tmp/virtio_console_guest.py", line 906, in main >> daemon.is_file_open(stdout))[0][0] >> IndexError: list index out of range >> FAIL: virtio_guest failedroot@x86-64-kvm-guest:~# >> virt.init([['console-0', 'yes'], ['console-1', >> 'yes'<rt.init([['console-0', 'yes'], ['console-1', 'yes'], >> ['serialport-2', 'no'],<s'], ['console-1', 'yes'], ['serialport-2', >> 'no'], ['serialport-3', 'no']]) >> -sh: syntax error near unexpected token `[['console-0',' >> root@x86-64-kvm-guest:~# >> 07/19 10:50:33 DEBUG|virt_env_process.py: postprocess: 414| >> Param 'convert_ppm_files_to_png' specified, converting PPM files to >> PNG format >> 07/19 10:50:33 DEBUG|virt_env_process.py: postprocess: 427| >> Param 'keep_ppm_files' not specified, removing all PPM files from >> debug dir >> 07/19 10:50:33 DEBUG|virt_env_process.py: postprocess: 450| >> Param 'kill_unresponsive_vms' specified, killing all VMs that fail to >> respond to a remote login request >> 07/19 10:50:33 DEBUG| virt_vm.py: get_address: 467| >> Found/Verified IP 128.224.165.248 for VM vm1 NIC 0 >> 07/19 10:50:33 DEBUG| virt_remote.py: remote_login: 194| Login >> command: 'ssh -o UserKnownHostsFile=/dev/null -o >> PreferredAuthentications=password -p 22 root@128.224.165.248' >> 07/19 10:50:35 ERROR| parallel.py: fork_start: 26| child >> process failed >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> Traceback (most recent call last): >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/parallel.py", line 18, in fork_start >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| l() >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/job.py", line 526, in <lambda> >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| l = >> lambda : test.runtest(self, url, tag, args, dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/test.py", line 115, in runtest >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> job.sysinfo.log_after_each_iteration) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/shared/test.py", line 927, in runtest >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> mytest._exec(args, dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/shared/test.py", line 420, in _exec >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> _call_test_function(self.execute, *p_args, **p_dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/shared/test.py", line 835, in _call_test_function >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> return func(*args, **dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/shared/test.py", line 293, in execute >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> postprocess_profiled_run, args, dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/shared/test.py", line 210, in _call_run_once >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> *args, **dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/shared/test.py", line 316, in run_once_profiling >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> self.run_once(*args, **dargs) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/virt/virt_test.py", line 97, in run_once >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> run_func(self, params, env) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/tests/kvm/tests/virtio_console.py", line 2149, in >> run_virtio_console >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> init_guest(vm, consoles) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/tests/kvm/tests/virtio_console.py", line 589, in >> init_guest >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> on_guest("virt.init(%s)" % (conss), vm, 10) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| File >> "/autotest/client/tests/kvm/tests/virtio_console.py", line 666, in >> on_guest >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> (command, vm[0].name, data)) >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> TestFail: Failed to execute 'virt.init([['console-0', 'yes'], >> ['console-1', 'yes'], ['serialport-2', 'no'], ['serialport-3', >> 'no']])' on virtio_console_guest.py, vm: vm1, output: >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| Cmd >> process timeout. Data in console: PASS: compile >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| PASS: >> Compile virtio_guest finishedroot@x86-64-kvm-guest:~# >> 07/19 10:50:35 DEBUG| parallel.py: fork_start: 30| >> root@x86-64-kvm-guest:~# python /tmp/virtio_console_guest.pyo &&echo >> -n 'PASS<thon /tmp/virtio_console_guest.pyo &&echo -n 'PASS: >> virtio_guest finished' |<uest.pyo &&echo -n 'PASS: virtio_guest >> finished' ||echo -n 'FAIL: virtio_gue<virtio_guest finished' ||echo -n >> 'FAIL: virtio_guest failed' >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| >> Traceback (most recent call last): >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| File >> "/var/volatile/tmp/virtio_console_guest.py", line 929, in <module> >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| main() >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| File >> "/var/volatile/tmp/virtio_console_guest.py", line 906, in main >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| >> daemon.is_file_open(stdout))[0][0] >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| >> IndexError: list index out of range >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| FAIL: >> virtio_guest failedroot@x86-64-kvm-guest:~# virt.init([['console-0', >> 'yes'], ['console-1', 'yes'<rt.init([['console-0', 'yes'], >> ['console-1', 'yes'], ['serialport-2', 'no'],<s'], ['console-1', >> 'yes'], ['serialport-2', 'no'], ['serialport-3', 'no']]) >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| -sh: >> syntax error near unexpected token `[['console-0',' >> 07/19 10:50:36 DEBUG| parallel.py: fork_start: 30| >> root@x86-64-kvm-guest:~# >> 07/19 10:50:36 INFO | job.py:client_job_record_hook: 210| >> FAIL kvm.smp2.e1000.CustomGuestLinux.virtio_console.basic >> kvm.smp2.e1000.CustomGuestLinux.virtio_console.basic >> timestamp=1342666236 localtime=Jul >> 19 10:50:36 Failed to execute 'virt.init([['console-0', 'yes'], >> ['console-1', 'yes'], ['serialport-2', 'no'], ['serialport-3', >> 'no']])' on virtio_console_guest.py, vm: vm1, output: >> Cmd process timeout. Data in console: PASS: compile >> PASS: Compile virtio_guest finishedroot@x86-64-kvm-guest:~# >> root@x86-64-kvm-guest:~# python /tmp/virtio_console_guest.pyo &&echo >> -n 'PASS<thon /tmp/virtio_console_guest.pyo &&echo -n 'PASS: >> virtio_guest finished' |<uest.pyo &&echo -n 'PASS: virtio_guest >> finished' ||echo -n 'FAIL: virtio_gue<virtio_guest finished' ||echo -n >> 'FAIL: virtio_guest failed' >> Traceback (most recent call last): >> File "/var/volatile/tmp/virtio_console_guest.py", line 929, in <module> >> main() >> File "/var/volatile/tmp/virtio_console_guest.py", line 906, in main >> daemon.is_file_open(stdout))[0][0] >> IndexError: list index out of range >> FAIL: virtio_guest failedroot@x86-64-kvm-guest:~# >> virt.init([['console-0', 'yes'], ['console-1', >> 'yes'<rt.init([['console-0', 'yes'], ['console-1', 'yes'], >> ['serialport-2', 'no'],<s'], ['console-1', 'yes'], ['serialport-2', >> 'no'], ['serialport-3', 'no']]) >> -sh: syntax error near unexpected token `[['console-0',' >> _______________________________________________ >> Autotest mailing list >> Autotest@test.kernel.org >> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest >> > _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest