ansible-collections / community.libvirt

Manage libvirt with Ansible
http://galaxy.ansible.com/community/libvirt
GNU General Public License v3.0
61 stars 42 forks source link

connection/libvirt_qemu.py: Add capabilities test #34

Closed odyssey4me closed 4 years ago

odyssey4me commented 4 years ago
SUMMARY

Using the command virsh qemu-agent-command <domain name> '{"execute":"guest-info"}' | jq we're able to get a set of capabilities for the domain back, which can allow us to verify whether the connection prerequisites are met. This can enable us to fail the host with a nice message saying that it can't work, and list what capabilities are missing.

ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION