Bug 1319527

Summary: RFE: Add API to list libvirt APIs implemented by the hypervisor driver
Product: [Community] Virtualization Tools Reporter: Cole Robinson <crobinso>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED DEFERRED QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-18 09:58:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Cole Robinson 2016-03-20 22:24:44 UTC
There's no programmatic way for apps to determine if a libvirt HV driver supports a particular API or not. For example at the time of this writing the only libvirt driver that supports virDomainReset is qemu. If virt-manager wants to show the reset option for supported hypervisors we need to keep our own whitelist to track it (which we do, see https://github.com/virt-manager/virt-manager/blob/master/virtinst/support.py )

Libvirt should provide an API that at least tells us if the driver has an implementation or not. Eric spec'd it out briefly a while back:

https://www.redhat.com/archives/libvir-list/2014-September/msg01170.html

Comment 1 Daniel Berrangé 2021-08-18 09:58:40 UTC
Closing this RFE since there's no sign of anyone actively working on this in the 5 years since it was filed.