Dne 4.5.2018 v 09:43 Navine Thomas napsal(a):
> Hi
> When running the test case - 
> type_specific.io-github-autotest-qemu.pci_hotplug.hotplug_block.blk_virtio_blk.with_reboot,
>  I see the following error -
>  "Could find a suitable method for hotplugging drive in this version of qemu" 
> in the log file.
> 
> 2018-05-04 00:02:24,025 stacktrace       L0044 ERROR| Reproduced traceback 
> from: /usr/lib/python2.7/site-packages/avocado_vt/test.py:406
> 2018-05-04 00:02:24,026 stacktrace       L0047 ERROR| Traceback (most recent 
> call last):
> 2018-05-04 00:02:24,026 stacktrace       L0047 ERROR|   File 
> "/usr/lib/python2.7/site-packages/autotest/client/shared/error.py", line 140, 
> in new_fn
> 2018-05-04 00:02:24,026 stacktrace       L0047 ERROR|     return fn(*args, 
> **kwargs)
> 2018-05-04 00:02:24,026 stacktrace       L0047 ERROR|   File 
> "/var/lib/avocado/data/avocado-vt/test-providers.d/downloads/io-github-autotest-qemu/qemu/tests/pci_hotplug.py",
>  line 331, in run
> 2018-05-04 00:02:24,027 stacktrace       L0047 ERROR|     raise 
> error.TestError("Could find a suitable method for hotplugging"
> 2018-05-04 00:02:24,027 stacktrace       L0047 ERROR| TestError: Could find a 
> suitable method for hotplugging drive in this version of qemu
> 
> Its failing at 
> https://github.com/autotest/tp-qemu/blob/master/qemu/tests/pci_hotplug.py
> 
> 325    drive_cmd_type = is_supported_command("drive_add", 
> "__com.redhat_drive_add")
> 326    if not drive_cmd_type:
> 327        test.error("Could find a suitable method for hotplugging"
> 328                         " drive in this version of qemu")
> 

Hello Navine,

Avocado-vt uses `qmp` monitor by default. The `drive_add` was not yet accepted 
upstream (and probably won't be) in qmp monitor and is only available in 
unbreakable linux (RHEL) via experimental `__com.redhat_drive_add` command. You 
can still run this test on upstream qemu by using human monitor. You can force 
the monitor type by using `--vt-extra-params monitor_type=human` on the command 
line.

Kind regards,
Lukáš

> 
> Is there something wrong with my configuration that "drive_add" is not 
> supported? I've tried with the default JeOS and also Fedora. The qemu version 
> I'm running is 2.10.
> 
> 
> Thanks
> Navine
> 
> 
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to