Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root logger is not avilible to avocado tests after the 92.0 LTS #3048

Open
richtja opened this issue Oct 20, 2021 · 7 comments
Open

Root logger is not avilible to avocado tests after the 92.0 LTS #3048

richtja opened this issue Oct 20, 2021 · 7 comments

Comments

@richtja
Copy link

richtja commented Oct 20, 2021

In b2459dd the avocado stopped using the logs from root logger. Every avocado log are under avocado namespace now. This change was already accepted in avocado-vt. With those changes, every avocado-vt test has to use avocado namespace for logging, otherwise the logs will be lost, because the logs to root logger won't be used by avocado output. This is also part of Avocado 92.0 LTS version. As a solution, might be approach from avocado-vt adbfa56

@PaulYuuu
Copy link
Contributor

PaulYuuu commented Dec 2, 2021

Hello @richtja, do you think a test logger like test.log can consider being introduced into avocado(avocado/core/test.py)? So that all test providers can use it and tp-qemu can switch to it instead of using root logger accordingly.

@richtja
Copy link
Author

richtja commented Dec 6, 2021

Hi @PaulYuuu I am not sure what you are asking for, because the avocado/core/test.py:Test class already has log property which points to the logger with avocado.test name space. So yes this can be used instead of root logger for test logging.

@PaulYuuu
Copy link
Contributor

PaulYuuu commented Dec 6, 2021

Hi @PaulYuuu I am not sure what you are asking for, because the avocado/core/test.py:Test class already has log property which points to the logger with avocado.test name space. So yes this can be used instead of root logger for test logging.

Ah, you’re right @richtja, I didn’t research in-depth, the Test class already include the log property, so we only need to modify all files in tp-qemu/libvirt and other test providers to replace logging.xxx to test.log.xxx. This will be a huge amount of work, more maintainers should be invited in this thread. @luckyh @YongxueHong @yanan-fu @zhencliu

@luckyh
Copy link
Contributor

luckyh commented Dec 7, 2021

I've checked test.log is supported in really old releases (for instance, 69lts), so there seems to be no compatibility issues for using.

However, it's not easy to get the test instances in some context, therefore I think we have to use other approaches instead.

logging.info('Event list:\n%s', events)

@luckyh
Copy link
Contributor

luckyh commented Dec 7, 2021

Here are the target files.
(got by find . -name '*.py' | xargs grep logging -c | awk -F':' '{if ($2 != 0) printf "%3d %s\n", $2, $1}')

Show list
  8 ./openvswitch/tests/ovs_basic.py
  2 ./openvswitch/tests/load_module.py
  8 ./qemu/tests/driver_load.py
  3 ./qemu/tests/serial_no_listening.py
  2 ./qemu/tests/block_check_event.py
 25 ./qemu/tests/usb_storage.py
  4 ./qemu/tests/block_stream_stress.py
  9 ./qemu/tests/timedrift_with_cpu_offline.py
  4 ./qemu/tests/check_reports_end_offset.py
  7 ./qemu/tests/nonexist_vcpu_hotplug.py
  6 ./qemu/tests/live_backup_add_bitmap.py
  4 ./qemu/tests/rng_host_guest_read.py
 15 ./qemu/tests/migration_after_nichotplug.py
  6 ./qemu/tests/live_snapshot.py
  3 ./qemu/tests/slof_device_tree.py
 15 ./qemu/tests/vnc.py
  3 ./qemu/tests/image_create_with_large_size.py
  9 ./qemu/tests/cpu_hotplug.py
  7 ./qemu/tests/check_coredump.py
 11 ./qemu/tests/block_stream_drop_backingfile.py
  8 ./qemu/tests/live_snapshot_chain.py
  4 ./qemu/tests/image_commit_bypass_host_cache.py
 12 ./qemu/tests/create_macvtap_device.py
  3 ./qemu/tests/vsock_negative_test.py
  3 ./qemu/tests/live_snapshot_negative.py
  4 ./qemu/tests/win_serial_tool_test.py
  4 ./qemu/tests/hotplug_mem_repeat.py
  3 ./qemu/tests/qemu_img_info_while_vm_running.py
  7 ./qemu/tests/seabios_bootmenu_prompt.py
  3 ./qemu/tests/netkvm_cpu_mapping.py
  9 ./qemu/tests/readonly_disk.py
 18 ./qemu/tests/enospc.py
  2 ./qemu/tests/blockdev_snapshot_stress.py
 15 ./qemu/tests/kvm_unit_test.py
  6 ./qemu/tests/rng_stress.py
  6 ./qemu/tests/image_rebase_bypass_host_cache.py
  4 ./qemu/tests/offload_checksum_windows.py
  9 ./qemu/tests/interrupt_check.py
  3 ./qemu/tests/multi_vms_with_stress.py
  2 ./qemu/tests/block_with_share_rw.py
  2 ./qemu/tests/boot_cpu_model.py
  9 ./qemu/tests/multi_vms_file_transfer.py
  8 ./qemu/tests/timedrift_with_reboot.py
 10 ./qemu/tests/cpu_device_hotplug.py
  3 ./qemu/tests/uefi_secureboot.py
  4 ./qemu/tests/create_snapshot_on_running_base.py
  4 ./qemu/tests/chardev_free_port.py
  4 ./qemu/tests/thin_provision_check_mode.py
  2 ./qemu/tests/seabios_scsi_lun.py
  2 ./qemu/tests/live_snapshot_transaction.py
  3 ./qemu/tests/unplug_block_during_io_reboot.py
  5 ./qemu/tests/timedrift_monotonicity.py
 10 ./qemu/tests/image_locking_read_test.py
  3 ./qemu/tests/larger_buffer_with_none_cache_mode.py
  9 ./qemu/tests/nfs_perf.py
  5 ./qemu/tests/timedrift_check_with_syscall.py
  8 ./qemu/tests/nx.py
  5 ./qemu/tests/blk_stream.py
  9 ./qemu/tests/sysprep.py
  4 ./qemu/tests/balloon_stop_continue.py
 10 ./qemu/tests/commit_snapshot_to_raw_backing.py
  4 ./qemu/tests/suspend_under_stress.py
  4 ./qemu/tests/reject_qemu_img_info.py
  4 ./qemu/tests/virt_subtest_combine.py
  2 ./qemu/tests/blockdev_snapshot_stop_cont.py
  3 ./qemu/tests/file_copy_stress.py
  2 ./qemu/tests/blockdev_full_backup_stress.py
  7 ./qemu/tests/convert_image_from_raw.py
  5 ./qemu/tests/kill_app.py
 12 ./qemu/tests/ipi_x2apic.py
  6 ./qemu/tests/qemu_disk_img_snapshot.py
  7 ./qemu/tests/luks_convert.py
  6 ./qemu/tests/qemu_img_lock_reject_boot.py
  5 ./qemu/tests/convert_to_virtual_disk.py
  3 ./qemu/tests/drive_mirror.py
  2 ./qemu/tests/hypervisor_flag.py
 16 ./qemu/tests/pci_devices.py
  3 ./qemu/tests/check_unhalt_vcpu.py
  6 ./qemu/tests/check_link_speed_duplex.py
  4 ./qemu/tests/drive_mirror_simple.py
  4 ./qemu/tests/gluster_boot_snap_boot.py
  5 ./qemu/tests/drive_mirror_stress.py
  6 ./qemu/tests/boot_with_multiqueue.py
 14 ./qemu/tests/rebase_onto_no_backing_file.py
  3 ./qemu/tests/blockdev_snapshot_reboot.py
 10 ./qemu/tests/hello_world.py
  7 ./qemu/tests/timerdevice_tscsync_longtime.py
  2 ./qemu/tests/mq_enabled_chk.py
  2 ./qemu/tests/blockdev_snapshot_chains.py
  5 ./qemu/tests/live_snapshot_base.py
  8 ./qemu/tests/ppc_change_smt.py
  6 ./qemu/tests/usb_basic_check.py
  3 ./qemu/tests/savevm_loadvm.py
 11 ./qemu/tests/rv_input.py
  2 ./qemu/tests/drive_mirror_complete.py
  5 ./qemu/tests/rng_driver_negative.py
  3 ./qemu/tests/live_snapshot_stress.py
  6 ./qemu/tests/check_roms.py
  3 ./qemu/tests/block_commit_reboot.py
  3 ./qemu/tests/enforce_quit.py
  5 ./qemu/tests/image_compare_bypass_host_cache.py
  3 ./qemu/tests/image_convert_bypass_host_cache.py
 10 ./qemu/tests/timedrift_with_migration.py
  6 ./qemu/tests/macvtap_event_notification.py
  3 ./qemu/tests/stepmaker.py
  5 ./qemu/tests/zero_copy.py
  6 ./qemu/tests/live_snapshot_basic.py
  3 ./qemu/tests/virtio_serial_throttling.py
  2 ./qemu/tests/disable_win_update.py
 10 ./qemu/tests/timedrift_no_net_win.py
  5 ./qemu/tests/rebase_onto_qcow2.py
  5 ./qemu/tests/numa_memdev_mlock.py
  2 ./qemu/tests/win_video_play.py
  2 ./qemu/tests/timerdevice_kvmclock_newer_msrs_support.py
  2 ./qemu/tests/negative_create.py
 12 ./qemu/tests/commit_snapshot_to_backing_image.py
  2 ./qemu/tests/smbios_table.py
 89 ./qemu/tests/ksm_overcommit.py
  7 ./qemu/tests/vmstop.py
 11 ./qemu/tests/timedrift_with_stop.py
  5 ./qemu/tests/block_hotplug_passthrough.py
  2 ./qemu/tests/blockdev_full_mirror.py
  5 ./qemu/tests/pci_hotunplug.py
  3 ./qemu/tests/block_scsi_generic_inquiry.py
  4 ./qemu/tests/block_check_fds.py
  4 ./qemu/tests/win_disk_write.py
  5 ./qemu/tests/timerdevice_host_time_back.py
 10 ./qemu/tests/steps.py
 15 ./qemu/tests/timedrift_no_net.py
  9 ./qemu/tests/ksm_base.py
  5 ./qemu/tests/qemu_guest_agent_suspend.py
  4 ./qemu/tests/seabios_reboot_timeout.py
  2 ./qemu/tests/ovs_enslave_port.py
  4 ./qemu/tests/uefi_boot_from_device.py
  8 ./qemu/tests/timerdevice_change_guest_clksource.py
  5 ./qemu/tests/qemu_disk_img_commit.py
  5 ./qemu/tests/balloon_sc_interrogate.py
  2 ./qemu/tests/qmp_basic_rhel6.py
  5 ./qemu/tests/usb_device_check.py
  4 ./qemu/tests/qmp_event_notification.py
  4 ./qemu/tests/block_hotplug_scsi_hba.py
  8 ./qemu/tests/trace_cmd_boot.py
  7 ./qemu/tests/numa_maxnodes.py
  9 ./qemu/tests/qemu_io_blkdebug.py
  4 ./qemu/tests/balloon_memhp.py
  2 ./qemu/tests/virtio_driver_sign_check.py
 10 ./qemu/tests/timedrift_check_non_event.py
  7 ./qemu/tests/tracing_exception_injection.py
  2 ./qemu/tests/qemu_disk_img_rebase.py
  5 ./qemu/tests/virtual_nic_send_buffer.py
  5 ./qemu/tests/timerdevice_tscwrite.py
  2 ./qemu/tests/block_stream_simple.py
 12 ./qemu/tests/timerdevice_clock_drift_with_ntp.py
  3 ./qemu/tests/drive_mirror_cancel.py
  4 ./qemu/tests/9p.py
 10 ./qemu/tests/aio_test.py
  6 ./qemu/tests/apicv_test.py
 10 ./qemu/tests/balloon_boot_in_pause.py
 22 ./qemu/tests/balloon_check.py
  2 ./qemu/tests/balloon_minimum.py
  8 ./qemu/tests/balloon_service.py
  5 ./qemu/tests/balloon_stress.py
  3 ./qemu/tests/balloon_thp.py
  4 ./qemu/tests/bitmap_boundary_test.py
  6 ./qemu/tests/blk_commit.py
  4 ./qemu/tests/block_auto_detect_size_increased.py
  8 ./qemu/tests/block_commit_stress.py
 19 ./qemu/tests/block_copy.py
 12 ./qemu/tests/block_discard.py
  9 ./qemu/tests/block_discard_hotplug.py
  7 ./qemu/tests/block_discard_write_same.py
  4 ./qemu/tests/block_during_io.py
  8 ./qemu/tests/block_hotplug.py
  7 ./qemu/tests/block_hotplug_in_pause.py
  6 ./qemu/tests/block_hotplug_negative.py
 11 ./qemu/tests/block_kill_reconnect_with_remote_storage.py
  3 ./qemu/tests/block_multifunction.py
  2 ./qemu/tests/block_performance_test.py
  8 ./qemu/tests/block_resize.py
  3 ./qemu/tests/block_resize_unplug.py
  7 ./qemu/tests/block_scsi_device.py
  6 ./qemu/tests/block_stream.py
  5 ./qemu/tests/block_stream_check_backingfile.py
  3 ./qemu/tests/block_stream_negative.py
  4 ./qemu/tests/block_with_iommu.py
  3 ./qemu/tests/block_with_write_threshold.py
  2 ./qemu/tests/blockdev_commit_backing_file.py
  3 ./qemu/tests/blockdev_commit_fio.py
  2 ./qemu/tests/blockdev_commit_general_operation.py
  3 ./qemu/tests/blockdev_commit_install.py
  2 ./qemu/tests/blockdev_commit_non_existed_node.py
  2 ./qemu/tests/blockdev_commit_specify_node.py
  2 ./qemu/tests/blockdev_commit_speed_limit.py
  2 ./qemu/tests/blockdev_inc_backup_no_space.py
  3 ./qemu/tests/blockdev_inc_backup_pull_mode_test.py
  2 ./qemu/tests/blockdev_inc_backup_pull_mode_vm_down.py
  2 ./qemu/tests/blockdev_inc_backup_test.py
  6 ./qemu/tests/blockdev_inc_backup_xpt_incon_bitmap.py
  2 ./qemu/tests/blockdev_inc_backup_xpt_nonexist_bitmap.py
  3 ./qemu/tests/blockdev_mirror_install.py
  4 ./qemu/tests/blockdev_snapshot_guest_agent.py
  3 ./qemu/tests/blockdev_snapshot_install.py
  2 ./qemu/tests/blockdev_snapshot_merge.py
  3 ./qemu/tests/blockdev_snapshot_multi_disks.py
  2 ./qemu/tests/blockdev_stream_base_itself.py
  3 ./qemu/tests/blockdev_stream_install.py
  2 ./qemu/tests/blockdev_stream_multiple_blocks.py
  2 ./qemu/tests/blockdev_stream_subchain.py
  2 ./qemu/tests/boot_N_M_virtserialports.py
  4 ./qemu/tests/boot_from_remote.py
  7 ./qemu/tests/boot_time.py
 10 ./qemu/tests/boot_with_different_vectors.py
  5 ./qemu/tests/boot_with_machine_types.py
  3 ./qemu/tests/boot_without_vectors.py
  7 ./qemu/tests/bridge_mirror.py
 14 ./qemu/tests/bridge_vlan.py
  3 ./qemu/tests/cache_sizes_test.py
 45 ./qemu/tests/cdrom.py
 11 ./qemu/tests/cdrom_block_size_check.py
  7 ./qemu/tests/change_media.py
 13 ./qemu/tests/chardev_hotplug.py
  7 ./qemu/tests/chardev_tls_encryption.py
  6 ./qemu/tests/check_block_size.py
  5 ./qemu/tests/cluster_size_check.py
  4 ./qemu/tests/convert_after_resize_snapshot.py
 29 ./qemu/tests/cpu_add.py
  9 ./qemu/tests/cpu_device_hotplug_during_boot.py
  8 ./qemu/tests/cpu_device_hotplug_maximum.py
  6 ./qemu/tests/cpu_device_hotplug_time_jump.py
  8 ./qemu/tests/cpu_info_check.py
  3 ./qemu/tests/cpu_model_inter_generation.py
  4 ./qemu/tests/cpu_model_negative.py
  5 ./qemu/tests/cpu_offline_online.py
  2 ./qemu/tests/cpu_rdrand.py
 58 ./qemu/tests/cpuflags.py
 14 ./qemu/tests/cpuid.py
  2 ./qemu/tests/create_large_img.py
  6 ./qemu/tests/ctrl_vlan.py
  3 ./qemu/tests/curl_cookie_with_secret.py
  7 ./qemu/tests/device_bit_check.py
  7 ./qemu/tests/device_option_check.py
 16 ./qemu/tests/differential_backup.py
  7 ./qemu/tests/disk_extension.py
  4 ./qemu/tests/drive_mirror_powerdown.py
  5 ./qemu/tests/dump_guest_core.py
  8 ./qemu/tests/dump_guest_memory.py
 10 ./qemu/tests/eject_media.py
 18 ./qemu/tests/enable_scatter_windows.py
  5 ./qemu/tests/expose_host_mtu.py
  2 ./qemu/tests/fio_linux.py
  6 ./qemu/tests/fio_windows.py
  9 ./qemu/tests/flag_check.py
 13 ./qemu/tests/floppy.py
 14 ./qemu/tests/format_disk.py
  6 ./qemu/tests/fullscreen_setup.py
  5 ./qemu/tests/guest_iommu_test.py
  6 ./qemu/tests/hdparm.py
  3 ./qemu/tests/hotplug_block_resize.py
  3 ./qemu/tests/hotplug_mem.py
  6 ./qemu/tests/hotplug_mem_negative.py
  3 ./qemu/tests/hotplug_unplug_during_io_repeat.py
  2 ./qemu/tests/hpt_huge_page_negative.py
  3 ./qemu/tests/hpt_max_page_size.py
  8 ./qemu/tests/hpt_miscellaneous.py
  5 ./qemu/tests/hugepage_mem_stress.py
  6 ./qemu/tests/hugepage_reset.py
  7 ./qemu/tests/hugepage_specify_node.py
  7 ./qemu/tests/hv_crash.py
  4 ./qemu/tests/hv_kvm_unit_test.py
 11 ./qemu/tests/hv_time.py
 13 ./qemu/tests/hv_tlbflush.py
  5 ./qemu/tests/hv_type.py
 12 ./qemu/tests/hv_vapic_test.py
 10 ./qemu/tests/invalid_cpu_device_hotplug.py
  2 ./qemu/tests/invalid_parameter.py
 17 ./qemu/tests/ioeventfd.py
 14 ./qemu/tests/iperf_test.py
  7 ./qemu/tests/kdump_with_stress.py
  7 ./qemu/tests/kernbench.py
  7 ./qemu/tests/kernel_install.py
  6 ./qemu/tests/kexec.py
  3 ./qemu/tests/ksm_ksmtuned.py
  4 ./qemu/tests/kvm_unit_test_nested.py
  9 ./qemu/tests/live_backup_base.py
  2 ./qemu/tests/macvtap_guest_communicate.py
  3 ./qemu/tests/max_channel_lun.py
  6 ./qemu/tests/memhp_threads.py
  5 ./qemu/tests/memory_leak_after_nichotplug.py
  5 ./qemu/tests/microcode_test.py
 19 ./qemu/tests/migration.py
 14 ./qemu/tests/migration_after_vm_paused.py
 17 ./qemu/tests/migration_with_block.py
  5 ./qemu/tests/migration_with_dst_problem.py
  5 ./qemu/tests/migration_with_file_transfer.py
  6 ./qemu/tests/migration_with_netperf.py
  5 ./qemu/tests/migration_with_numa.py
  8 ./qemu/tests/migration_with_speed_measurement.py
  4 ./qemu/tests/migration_with_vsock.py
  7 ./qemu/tests/mlock_basic.py
  3 ./qemu/tests/mmu_basic.py
  3 ./qemu/tests/monitor_cmds_check.py
 12 ./qemu/tests/msi_change_flag.py
 16 ./qemu/tests/multi_disk.py
 19 ./qemu/tests/multi_disk_random_hotplug.py
 12 ./qemu/tests/multi_disk_wild_hotplug.py
  9 ./qemu/tests/multi_macvtap_devices.py
  8 ./qemu/tests/multi_nics_verify.py
 17 ./qemu/tests/multi_vms_nics.py
  3 ./qemu/tests/nbd_unix_connection.py
 15 ./qemu/tests/nested_block_resize.py
 10 ./qemu/tests/nested_block_resize_l1.py
  5 ./qemu/tests/nested_interactive_agent.py
  4 ./qemu/tests/nested_test.py
  5 ./qemu/tests/netkvm_change_param_value_test.py
  5 ./qemu/tests/netkvm_protocol_binding.py
 11 ./qemu/tests/netperf_udp.py
  9 ./qemu/tests/netperf_udp_perf.py
  9 ./qemu/tests/nic_bonding.py
 12 ./qemu/tests/nic_bonding_host.py
 23 ./qemu/tests/nic_hotplug.py
 13 ./qemu/tests/nic_teaming.py
 11 ./qemu/tests/nmi_bsod_catch.py
  5 ./qemu/tests/nmi_watchdog.py
  6 ./qemu/tests/numa_basic.py
  6 ./qemu/tests/numa_consistency.py
  5 ./qemu/tests/numa_cpu.py
  6 ./qemu/tests/numa_memdev_options.py
  2 ./qemu/tests/numa_negative.py
  5 ./qemu/tests/numa_stress.py
 11 ./qemu/tests/nvdimm.py
  3 ./qemu/tests/nvdimm_mapsync.py
  2 ./qemu/tests/nvdimm_negative.py
  4 ./qemu/tests/nvdimm_redis.py
 15 ./qemu/tests/openflow_acl_test.py
 17 ./qemu/tests/openflow_test.py
 16 ./qemu/tests/ovs_host_vlan.py
 13 ./qemu/tests/ovs_mirror.py
 11 ./qemu/tests/ovs_qos.py
  2 ./qemu/tests/passthrough_with_multipath_device.py
 10 ./qemu/tests/pci_bridge.py
 15 ./qemu/tests/pci_hotplug.py
  7 ./qemu/tests/pci_hotplug_check.py
  6 ./qemu/tests/pcie_hotplug_opt.py
 42 ./qemu/tests/physical_resources_check.py
  8 ./qemu/tests/ping_kill_test.py
  7 ./qemu/tests/pktgen.py
  6 ./qemu/tests/ple_test.py
  5 ./qemu/tests/plug_cdrom.py
  3 ./qemu/tests/power_htm.py
  2 ./qemu/tests/power_nvram.py
  4 ./qemu/tests/ppc_check_cpu_and_mmu.py
  4 ./qemu/tests/ppc_ic_mode_check.py
  4 ./qemu/tests/ppc_nested_compat.py
  9 ./qemu/tests/pvpanic.py
 10 ./qemu/tests/pxe_query_cpus.py
 12 ./qemu/tests/qcow2perf.py
 15 ./qemu/tests/qemu_disk_img.py
  4 ./qemu/tests/qemu_disk_img_convert.py
  2 ./qemu/tests/qemu_disk_img_info.py
  5 ./qemu/tests/qemu_guest_agent_hotplug.py
  8 ./qemu/tests/qemu_guest_agent_snapshot.py
  7 ./qemu/tests/qemu_img_check_data_integrity.py
  2 ./qemu/tests/qemu_img_convert_image_with_unaligned_size.py
  9 ./qemu/tests/qemu_img_convert_with_backing_file.py
  3 ./qemu/tests/qemu_img_convert_with_copy_offloading.py
  5 ./qemu/tests/qemu_img_convert_with_rate_limit.py
  5 ./qemu/tests/qemu_img_convert_with_target_is_zero.py
  6 ./qemu/tests/qemu_img_create_snapshot_on_qcow2_target_from_raw_source.py
  5 ./qemu/tests/qemu_img_measure_convert_image.py
  4 ./qemu/tests/qemu_img_measure_new_image.py
  4 ./qemu/tests/qemu_img_supports_convert_coroutines_complete.py
  8 ./qemu/tests/qemu_io.py
  6 ./qemu/tests/qemu_killer_report.py
  6 ./qemu/tests/qemu_no_shutdown.py
  5 ./qemu/tests/qemu_nobody.py
  3 ./qemu/tests/qemu_option_check.py
  4 ./qemu/tests/qemu_output.py
 14 ./qemu/tests/qmp_command.py
  3 ./qemu/tests/raw_image_create_and_check.py
  9 ./qemu/tests/readonly_floppy.py
  3 ./qemu/tests/rebase_negative_test.py
  9 ./qemu/tests/reboot_time.py
  4 ./qemu/tests/remote_block_resize.py
  5 ./qemu/tests/remote_convert.py
  3 ./qemu/tests/remote_image_guestfish_access.py
  2 ./qemu/tests/remote_image_multiwrite.py
  2 ./qemu/tests/remote_image_qemu_info_access.py
  3 ./qemu/tests/remote_image_unix_socket_access.py
  5 ./qemu/tests/remote_server_disconnected.py
 17 ./qemu/tests/remove_interface_from_host.py
  5 ./qemu/tests/resize_qemu_img.py
  4 ./qemu/tests/resize_short_overlay.py
 22 ./qemu/tests/rh_kernel_update.py
  6 ./qemu/tests/rh_qemu_iotests.py
  5 ./qemu/tests/rng_bat.py
  8 ./qemu/tests/rng_hotplug.py
  3 ./qemu/tests/rng_maxbytes_period.py
  9 ./qemu/tests/rv_audio.py
 33 ./qemu/tests/rv_build_install.py
 22 ./qemu/tests/rv_connect.py
 86 ./qemu/tests/rv_copyandpaste.py
  8 ./qemu/tests/rv_fullscreen.py
 16 ./qemu/tests/rv_logging.py
 13 ./qemu/tests/rv_smartcard.py
  2 ./qemu/tests/rv_vdagent.py
  7 ./qemu/tests/rv_video.py
 11 ./qemu/tests/rv_vmshutdown.py
  6 ./qemu/tests/same_mac_address.py
  8 ./qemu/tests/save_restore_vm.py
  5 ./qemu/tests/seabios_bin.py
 14 ./qemu/tests/set_link.py
  9 ./qemu/tests/single_driver_install.py
  8 ./qemu/tests/slof_balloon.py
  8 ./qemu/tests/slof_boot.py
  6 ./qemu/tests/slof_greater_lun_id.py
 17 ./qemu/tests/slof_hugepage.py
  6 ./qemu/tests/slof_memory.py
  8 ./qemu/tests/slof_multi_devices.py
 11 ./qemu/tests/slof_next_entry.py
  8 ./qemu/tests/slof_open_bios.py
  4 ./qemu/tests/slof_order.py
  8 ./qemu/tests/slof_user_interface.py
  9 ./qemu/tests/smartcard_setup.py
  2 ./qemu/tests/smbios_default_check.py
  6 ./qemu/tests/smt_test.py
 11 ./qemu/tests/softlockup.py
  2 ./qemu/tests/spapr_vty_multi_backends.py
  4 ./qemu/tests/sr_iov_boot_negative.py
 18 ./qemu/tests/sr_iov_hotplug.py
  8 ./qemu/tests/sr_iov_hotplug_negative.py
 12 ./qemu/tests/sr_iov_irqbalance.py
 14 ./qemu/tests/sr_iov_sanity.py
  8 ./qemu/tests/steal_time.py
 13 ./qemu/tests/stop_continue.py
  7 ./qemu/tests/stress_kernel_compile.py
  4 ./qemu/tests/sve_basic.py
  7 ./qemu/tests/sve_guest_suite.py
  5 ./qemu/tests/sve_host_suite.py
  3 ./qemu/tests/sve_invalid.py
  7 ./qemu/tests/system_reset_bootable.py
  5 ./qemu/tests/systemtap_tracing.py
 10 ./qemu/tests/thin_provision_guest_fstrim.py
  6 ./qemu/tests/throttle_cdrom_test.py
  9 ./qemu/tests/throttle_multi_guests_parameter_test.py
 11 ./qemu/tests/throttle_operation_test.py
  5 ./qemu/tests/throttle_parameter_test.py
  2 ./qemu/tests/time_conv.py
 10 ./qemu/tests/time_manage.py
 14 ./qemu/tests/timedrift.py
 25 ./qemu/tests/timedrift_adjust_time.py
 13 ./qemu/tests/timedrift_check_after_load_vm.py
  7 ./qemu/tests/timedrift_check_when_crash.py
  5 ./qemu/tests/timedrift_check_when_hotplug_vcpu.py
 11 ./qemu/tests/timedrift_with_multi_vms.py
 10 ./qemu/tests/timerdevice_boot.py
  7 ./qemu/tests/timerdevice_check_ntp_offset.py
 12 ./qemu/tests/timerdevice_clock_drift_with_sleep.py
  4 ./qemu/tests/timerdevice_time_jump_check.py
  2 ./qemu/tests/timerdevice_tsc_enable.py
 11 ./qemu/tests/timerdevice_tscsync_change_host_clksource.py
  4 ./qemu/tests/tpm_unattended_install.py
  6 ./qemu/tests/tpm_verify_device.py
  5 ./qemu/tests/tpm_with_bitlocker.py
 14 ./qemu/tests/transfer_file_over_ipv6.py
  6 ./qemu/tests/trim_support_test.py
  9 ./qemu/tests/tsc_drift.py
  4 ./qemu/tests/uefi_check_debugcon.py
  3 ./qemu/tests/uefi_check_log_info.py
  2 ./qemu/tests/uefi_check_secure_mor.py
  3 ./qemu/tests/uefi_pkg.py
  2 ./qemu/tests/uefishell.py
  4 ./qemu/tests/unsafe_rebase_to_none_existing_backing_file.py
  5 ./qemu/tests/usb_common.py
  3 ./qemu/tests/usb_device_check_negative.py
 10 ./qemu/tests/usb_host.py
  8 ./qemu/tests/usb_hotplug.py
 10 ./qemu/tests/usb_smartcard_sharing.py
  2 ./qemu/tests/verify_panic_status_with_pvpanic.py
  6 ./qemu/tests/vhost_with_cgroup.py
  6 ./qemu/tests/vioinput_hotplug.py
  7 ./qemu/tests/vioinput_keyboard.py
  8 ./qemu/tests/vioinput_mice.py
  2 ./qemu/tests/virtio_aer_opt.py
  4 ./qemu/tests/virtio_blk_with_discard_write_zeroes.py
 89 ./qemu/tests/virtio_console.py
 21 ./qemu/tests/virtio_fs_multi_vms.py
  5 ./qemu/tests/virtio_fs_readonly.py
 28 ./qemu/tests/virtio_fs_set_capability.py
  2 ./qemu/tests/virtio_fsd_check_info.py
  3 ./qemu/tests/virtio_mode.py
  6 ./qemu/tests/virtio_net_dpdk.py
  8 ./qemu/tests/virtio_port_hotplug.py
  9 ./qemu/tests/virtio_port_login.py
 14 ./qemu/tests/virtio_scsi_mq.py
  2 ./qemu/tests/virtio_serial_file_transfer_max_ports.py
  3 ./qemu/tests/virtio_serial_file_transfer_offline_migrate.py
  4 ./qemu/tests/virtio_serial_hotplug_port_pci.py
  4 ./qemu/tests/virtio_serial_large_file_transfer.py
  2 ./qemu/tests/virtio_serial_unplug_port_chardev_pci.py
 13 ./qemu/tests/virtual_nic_private.py
  6 ./qemu/tests/virtual_nic_stress.py
  6 ./qemu/tests/vpmu_check_instructions.py
  2 ./qemu/tests/vsock_hotplug.py
  5 ./qemu/tests/vsock_test.py
  7 ./qemu/tests/win_heavyload.py
  4 ./qemu/tests/win_irq_check.py
  2 ./qemu/tests/win_msft_sign_check.py
  7 ./qemu/tests/win_nics_teaming.py
  4 ./qemu/tests/win_sigverif.py
  4 ./qemu/tests/win_virtio_driver_installer_repair.py
  4 ./qemu/tests/win_virtio_driver_installer_uninstall.py
  5 ./qemu/tests/win_virtio_driver_update_test.py
  7 ./qemu/tests/win_virtio_serial_data_transfer_reboot.py
  9 ./qemu/tests/win_virtio_update.py
  7 ./qemu/tests/windows_info.py
  3 ./qemu/tests/x86_cpu_L3_cache.py
  2 ./qemu/tests/x86_cpu_flag_disable.py
  2 ./qemu/tests/x86_cpu_flag_intel_pt.py
  3 ./qemu/tests/x86_cpu_flag_nonstop_tsc.py
  4 ./qemu/tests/x86_cpu_model.py
  8 ./qemu/tests/yonit_bitmap.py
  5 ./qemu/tests/ansible_test.py
 11 ./qemu/tests/ansible_with_responsive_migration.py
  9 ./qemu/tests/balloon_hotplug.py
  4 ./qemu/tests/block_check_serial.py
  4 ./qemu/tests/block_iscsi_4kdisk.py
  6 ./qemu/tests/boot_from_device.py
  3 ./qemu/tests/boot_order_check.py
 24 ./qemu/tests/bridge_qinq.py
 10 ./qemu/tests/commit_with_backing.py
 15 ./qemu/tests/cpu_device_hotpluggable.py
 10 ./qemu/tests/cpu_device_hotpluggable_with_numa.py
 10 ./qemu/tests/cpu_device_hotpluggable_with_stress.py
  3 ./qemu/tests/discard_for_raw_block_target.py
  6 ./qemu/tests/disk_extension_lvm.py
  5 ./qemu/tests/driver_in_use.py
  5 ./qemu/tests/fio_perf.py
 15 ./qemu/tests/flow_caches_stress_test.py
  5 ./qemu/tests/fwcfg.py
  2 ./qemu/tests/hv_check_cpu_utilization.py
 13 ./qemu/tests/mq_change_qnum.py
 15 ./qemu/tests/multi_nics_stress.py
  2 ./qemu/tests/nbd_map_snapshots.py
 10 ./qemu/tests/nested_libguestfs_unittest.py
  5 ./qemu/tests/netperf_stress.py
  4 ./qemu/tests/netuser_buffer_test.py
 13 ./qemu/tests/nic_acpi_index.py
  2 ./qemu/tests/nic_acpi_index_boot.py
  7 ./qemu/tests/nic_opt.py
  6 ./qemu/tests/numa_opts.py
  9 ./qemu/tests/passthrough_fc_with_lun_device.py
 10 ./qemu/tests/qemu_guest_agent_update.py
 30 ./qemu/tests/qemu_img.py
  3 ./qemu/tests/qemu_img_convert_with_inconsistent_bitmap.py
  4 ./qemu/tests/qemu_img_map_unaligned_image.py
 10 ./qemu/tests/queues_number_test.py
  7 ./qemu/tests/rebase_second_snapshot_to_base.py
  7 ./qemu/tests/seabios.py
 18 ./qemu/tests/seabios_hotplug_unplug.py
  7 ./qemu/tests/seabios_order_once.py
  5 ./qemu/tests/seabios_strict.py
  9 ./qemu/tests/tcpreplay.py
  3 ./qemu/tests/thin_write_in_qemu_img_commit.py
 14 ./qemu/tests/usb_redir.py
  6 ./qemu/tests/valgrind_memalign.py
  5 ./qemu/tests/vioser_in_use.py
 32 ./qemu/tests/virtio_fs_share_data.py
  6 ./qemu/tests/virtio_serial_file_transfer.py
  4 ./qemu/tests/virtio_serial_hotplug_max_chardevs.py
 32 ./qemu/tests/watchdog.py
  5 ./qemu/tests/win_virtio_driver_install_from_update.py
  4 ./qemu/tests/win_virtio_driver_update_by_installer.py
  2 ./qemu/tests/x86_cpu_asyncpf.py
  3 ./qemu/tests/x86_cpu_flags.py
  2 ./qemu/tests/x86_cpu_v_spec_ctrl.py
131 ./qemu/tests/cgroup.py
284 ./qemu/tests/qemu_guest_agent.py
  6 ./qemu/deps/win_driver_install/win_driver_install.py
  7 ./qemu/deps/performance/start_testpmd.py
  5 ./generic/tests/linux_stress.py
  4 ./generic/tests/boot_savevm.py
  2 ./generic/tests/downgrade_qcow2_version.py
  3 ./generic/tests/module_probe.py
  5 ./generic/tests/ksm_services.py
  3 ./generic/tests/boot.py
  2 ./generic/tests/unattended_install.py
  4 ./generic/tests/trans_hugepage_swapping.py
 13 ./generic/tests/iofuzz.py
  6 ./generic/tests/multicast.py
  3 ./generic/tests/clock_getres.py
 14 ./generic/tests/lvm.py
 19 ./generic/tests/autotest_regression.py
 11 ./generic/tests/mac_change.py
  8 ./generic/tests/dd_test.py
  2 ./generic/tests/os_update.py
  5 ./generic/tests/whql_env_setup.py
  6 ./generic/tests/ioquit.py
  2 ./generic/tests/tsc.py
  6 ./generic/tests/fillup_disk.py
  2 ./generic/tests/hwclock.py
  9 ./generic/tests/trans_hugepage.py
  9 ./generic/tests/autotest_distro_detect.py
  6 ./generic/tests/autotest_control.py
 29 ./generic/tests/ethtool.py
 16 ./generic/tests/guest_test.py
  6 ./generic/tests/invalid_para_mq.py
  8 ./generic/tests/iometer_windows.py
  7 ./generic/tests/iozone_windows.py
 17 ./generic/tests/jumbo.py
  4 ./generic/tests/monotonic_time.py
 15 ./generic/tests/nfs_corrupt.py
  4 ./generic/tests/nic_promisc.py
 14 ./generic/tests/nicdriver_unload.py
 12 ./generic/tests/ntpd.py
 11 ./generic/tests/ntttcp.py
  8 ./generic/tests/ping.py
  5 ./generic/tests/pxe_boot.py
  8 ./generic/tests/save_restore.py
  5 ./generic/tests/shutdown.py
  6 ./generic/tests/stress_boot.py
 10 ./generic/tests/trans_hugepage_defrag.py
  4 ./generic/tests/trans_hugepage_memory_stress.py
  8 ./generic/tests/trans_hugepage_relocated.py
 23 ./generic/tests/vlan.py
  8 ./generic/tests/whql_client_install.py
  6 ./generic/tests/whql_hck_client_install.py
  8 ./generic/tests/whql_submission.py
 26 ./generic/tests/kdump.py
  9 ./generic/tests/multi_queues_test.py
 31 ./generic/tests/netperf.py
 12 ./generic/tests/netstress_kill_guest.py
  6 ./generic/tests/pktgen_perf.py
  7 ./multi_host_migration/tests/migration_multi_host_with_kdump.py
  9 ./multi_host_migration/tests/migration_multi_host.py
 21 ./multi_host_migration/tests/migration_multi_host_auto_converge.py
  5 ./multi_host_migration/tests/migration_multi_host_cancel.py
 10 ./multi_host_migration/tests/migration_multi_host_downtime_and_speed.py
  7 ./multi_host_migration/tests/migration_multi_host_firewall_block.py
  7 ./multi_host_migration/tests/migration_multi_host_ping_pong.py
  9 ./multi_host_migration/tests/migration_multi_host_timedrift.py
 13 ./multi_host_migration/tests/migration_multi_host_with_file_transfer.py
  4 ./multi_host_migration/tests/migration_multi_host_with_reboot.py
 11 ./multi_host_migration/tests/migration_multi_host_with_speed_measurement.py
  5 ./multi_host_migration/tests/migration_multi_host_with_stress.py
 14 ./multi_host_migration/tests/migration_multi_host_with_xbzrle.py
  2 ./provider/virt_storage/utils/storage_util.py
  2 ./provider/virt_storage/storage_admin.py
  2 ./provider/blockdev_commit_base.py
  7 ./provider/qemu_img_utils.py
  6 ./provider/ansible.py
  7 ./provider/block_devices_plug.py
  3 ./provider/block_dirty_bitmap.py
  4 ./provider/blockdev_backup_base.py
  5 ./provider/blockdev_base.py
  2 ./provider/blockdev_snapshot_base.py
  3 ./provider/cdrom.py
 10 ./provider/cpu_utils.py
  4 ./provider/input_event_proxy.py
 12 ./provider/input_tests.py
  7 ./provider/job_utils.py
  5 ./provider/message_queuing.py
 15 ./provider/nbd_image_export.py
  4 ./provider/netperf_base.py
  6 ./provider/slof.py
  4 ./provider/storage_benchmark.py
  9 ./provider/win_driver_installer_test.py
  5 ./provider/win_driver_utils.py
 27 ./provider/win_hlk_suite.py
  4 ./provider/win_wora.py
  4 ./provider/netperf_test.py
 20 ./provider/throttle_utils.py
  3 ./provider/win_dump_utils.py

@richtja
Copy link
Author

richtja commented Dec 7, 2021

However, it's not easy to get the test instances in some context, therefore I think we have to use other approaches instead.

logging.info('Event list:\n%s', events)

Hi @luckyh, for those cases I think it should be possible to create logger with avocado namespace like:

LOG = logging.getLogger('avocado.' + __name__)

or

LOG = logging.getLogger('avocado.test')

@luckyh
Copy link
Contributor

luckyh commented Dec 7, 2021

Hi @luckyh, for those cases I think it should be possible to create logger with avocado namespace like:

LOG = logging.getLogger('avocado.' + __name__)

or

LOG = logging.getLogger('avocado.test')

@richtja yes, that's possible, thanks.

luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
Please note that the current approach could be considered as a
workaround to the issue below. In the future, we may replace it
with some interface provided by VT.

Issue: autotest#3048

Signed-off-by: Xu Han <[email protected]>
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
Skipped:
* autotest_control.py
* autotest_distro_detect.py
* autotest_regression.py

Issue: autotest#3048

Signed-off-by: Xu Han <[email protected]>
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
Skipped:
* autotest_control.py
* autotest_distro_detect.py
* autotest_regression.py

Issue: autotest#3048

Signed-off-by: Xu Han <[email protected]>
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 18, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 27, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 27, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Jan 27, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Feb 22, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Feb 22, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Feb 22, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Feb 23, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Feb 23, 2022
luckyh added a commit to luckyh/tp-qemu that referenced this issue Feb 23, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
Skipped:
* autotest_control.py
* autotest_distro_detect.py
* autotest_regression.py

Issue: autotest#3048

Signed-off-by: Xu Han <[email protected]>
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
leidwang pushed a commit to leidwang/tp-qemu that referenced this issue Aug 5, 2022
Please note that the current approach could be considered as a
workaround to the issue below. In the future, we may replace it
with some interface provided by VT.

Issue: autotest#3048

Signed-off-by: Xu Han <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants