On Mon, 2012-04-23 at 10:46 +0800, Amos Kong wrote: > > 04/20 15:50:12 ERROR| kvm_stat:0060| Asked for kvm_stat profiler, but > > kvm_stat not present > > 04/20 15:50:12 DEBUG| test:0313| Profilers present. Profiling run > > started > > 04/20 15:50:12 DEBUG| virt_test:0037| Test parameters: > > 04/20 15:50:12 DEBUG| virt_test:0041| backup_image = no > > 04/20 15:50:12 DEBUG| virt_test:0041| backup_image_on_check_error = no > > > ... > > 04/20 15:50:12 DEBUG| virt_test:0041| vms = vm1 > > 04/20 15:50:12 ERROR| virt_test:0095| Test failed: ImportError: No module > > named server.hosts.ssh_host > > Hi all, > > I submitted an Autotest job in server, which is a client test > (client/tests/virt/tests/netperf.py) > It used ssh_host module in server code, but only client code was copied > to test machine. > So this ImportError appeared. > > ssh_host relates to many classes in server code, it's difficult to split > it to autotest.client.shared > > do you have any thoughts? or implement a sample SSH authorization in > virt_test_utils.py? > thanks.
I remember Jiri made an attempt to merge client and server. I still keep the pull request opened after 6 months, because it's something I'd like to revisit at some point: https://github.com/autotest/autotest/pull/45 Obviously is horribly out dated, but you get the idea. As a temporary step you could replicate the missing APIs on virt_test_utils, if it's not a lot of code... Those are my initial thoughts about the subject... > > 04/20 15:50:12 DEBUG|virt_env_p:0136| Postprocessing VM 'vm1' > > 04/20 15:50:12 DEBUG| virt_vm:0461| Checking image file > > /home/kvm_autotest_root/images/RHEL-Server-6.2-64-virtio.qcow2 > > 04/20 15:50:12 DEBUG|base_utils:0077| Running '/usr/bin/qemu-img' > > 04/20 15:50:12 DEBUG|base_utils:0077| Running '/usr/bin/qemu-img info > > /home/kvm_autotest_root/images/RHEL-Server-6.2-64-virtio.qcow2' > > 04/20 15:50:12 DEBUG|base_utils:0114| [stdout] image: > > /home/kvm_autotest_root/images/RHEL-Server-6.2-64-virtio.qcow2 > > 04/20 15:50:12 DEBUG|base_utils:0114| [stdout] file format: qcow2 > > 04/20 15:50:12 DEBUG|base_utils:0114| [stdout] virtual size: 20G > > (21474836480 bytes) > > 04/20 15:50:12 DEBUG|base_utils:0114| [stdout] disk size: 3.5G > > 04/20 15:50:12 DEBUG|base_utils:0114| [stdout] cluster_size: 65536 > > 04/20 15:50:12 DEBUG|base_utils:0077| Running '/usr/bin/qemu-img check > > /home/kvm_autotest_root/images/RHEL-Server-6.2-64-virtio.qcow2' > > 04/20 15:50:12 DEBUG|virt_env_p:0378| Param 'convert_ppm_files_to_png' > > specified, converting PPM files to PNG format > > 04/20 15:50:12 DEBUG|virt_env_p:0391| Param 'keep_ppm_files' not specified, > > removing all PPM files from debug dir > > 04/20 15:50:12 DEBUG|virt_env_p:0414| Param 'kill_unresponsive_vms' > > specified, killing all VMs that fail to respond to a remote login request > > _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
