QEMU hypervisor type returned when libvirt_type = kvm
Bug #1195361 reported by
Richard Theis
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Tetsuro Nakamura | ||
openstack-manuals |
Fix Released
|
High
|
Robb Romans |
Bug Description
As the following output indicates, the QEMU hypervisor type is used even when libvirt_type = kvm in nova.conf.
# grep libvirt_type /etc/nova/nova.conf
libvirt_type = kvm
# nova hypervisor-show 1 | grep hypervisor_type
| hypervisor_type | QEMU
It appears that the OpenStack libvirt driver uses the libvirt connection type to determine the hypervisor type instead of the libvirt_type configuration option. Should libvirt_type be used to determine KVM vs QEMU hypervisor type or is there another configuration for this? From a user perspective, getting the QEMU versus KVM hypervisor type correct is important when setting the hypervisor_type property on an image.
tags: | added: libvirt |
Changed in nova: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → Rongze Zhu (zrzhit) |
Changed in nova: | |
assignee: | Rongze Zhu (zrzhit) → Lawrance (jing) |
assignee: | Lawrance (jing) → nobody |
assignee: | nobody → Lawrance (jing) |
assignee: | Lawrance (jing) → nobody |
Changed in nova: | |
assignee: | nobody → Lawrance (jing) |
status: | Triaged → In Progress |
Changed in nova: | |
assignee: | Lawrance (jing) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
affects: | nova → openstack-manuals |
Changed in openstack-manuals: | |
assignee: | nobody → Robb Romans (rromans) |
Changed in nova: | |
status: | In Progress → Confirmed |
status: | Confirmed → Opinion |
importance: | Low → Wishlist |
To post a comment you must log in.
libvirt does not differentiate between qemu and kvm when calling connection. getType( ), which is the value returned in hypervisor-show, I think it is just parsing qemu out of the connection string libvirt. open("qemu: ///system" )
Would it be simpler to just return libvirt_type as the hypervisor_type in hypervisor-show? I wonder if this has repercussions for images out there using qemu to mean kvm in hypervisor_type filter.