RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1029080 - List supported categories in "qom-list-types" qmp command.
Summary: List supported categories in "qom-list-types" qmp command.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Marcel Apfelbaum
QA Contact: jingzhao
URL:
Whiteboard:
Depends On:
Blocks: 1029073
TreeView+ depends on / blocked
 
Reported: 2013-11-11 15:50 UTC by Martin Kletzander
Modified: 2017-11-08 12:31 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1029073
Environment:
Last Closed: 2017-11-08 12:31:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Kletzander 2013-11-11 15:50:09 UTC
+++ This bug was initially created as a clone of Bug #1029073 +++

This bug is to track the qemu-kvm part of the work.  Output of:
{"execute":"qom-list-types"}
might look like:
{"return":[{"name":"AC97", bus: 'PCI', categories:['sound']}, ...

Upstream QEMU already outputs this info when using 'qemu-kvm -device \?'

The 'bus' field in the output is not mandatory.


Description of problem:
Libvirt does not check whether requested devices are supported by current qemu-kvm binary.  It relies on qemu itself reporting an error, which is fine most of the time.  However, newer versions of libvirt are checking the supported devices when starting the guest.  QEMU also the information to provide list of categories and buses the device can be attached to.

Version-Release number of selected component (if applicable):
libvirt-1.1.1-12.el7
qemu-kvm-1.5.3-19.el7

How reproducible:
101%

Steps to Reproduce:
1. Add the following device into domain XML:

  a.
<interface type='network'>
  <source network='default'/>
  <model type='non-existing_device'/>
</interface>

  b.
<interface type='network'>
  <source network='default'/>
  <model type='AC97'/>
</interface>

2. Start the domain

Actual results:
a. "error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -device non-existing_device,...: Parameter 'driver' expects device type"

b. "error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -device AC97,...: Property '.netdev' not found"


Expected results:
a. "error: unsupported configuration: Device "non-existing_device" is not supported by this QEMU binary"

b. "error: unsupported configuration: Device "AC97" cannot be used as an interface" ("with this QEMU binary"


Additional info:
Libvirt gets enough information to check for case "a." when executing "qom-list-types".
QEMU does not provide enough information to check for proper usage in case "b.".

Comment 1 Markus Armbruster 2014-01-13 14:31:41 UTC
marcel?

Comment 10 Martin Kletzander 2015-09-08 09:51:34 UTC
After recent discussions it looks like we won't make use of it anytime soon.  Feel free to move this to an upstream tracker or close is, whatever is appropriate for you.  Thanks for dealing with this and sorry for the time wasted on this.  I might have mentioned this earlier, so this is just a reminder that the priority has dropped for us.

Comment 13 Martin Kletzander 2017-11-08 12:31:50 UTC
Pointless for libvirt, would just waste time, mostly, no developlment for now. Closing as DEFERRED, feel free to reopen if there is some development.


Note You need to log in before you can comment on or make changes to this bug.