Bug #4232
Disk polling for Xen always returns an empty list of disks
Status: | Closed | Start date: | 12/07/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Drivers - VM | |||
Target version: | Release 5.0 | |||
Resolution: | wontfix | Pull request: | ||
Affected Versions: | OpenNebula 4.14 |
Description
In
src/vmm_mad/remotes/poll_xen_kvm.rb
there is a function:
def self.get_vm_disk_stats(doms) dom_disk_stats = {} ... return dom_disk_stats end
However, the "dom_disk_stats" variable is never updated with any disk information which is extracted. This results in no disk information being returned by the poll script.
Additionally, the function makes assumptions about the naming of the disks as being in the form of "disk.3" and extracts a disk_id ("path.split(".")[-1]"). When processing wild VMs, the disks will not be named in this form and this will lead to unexpected results.
Additionally, although the JSON output format for "qemu-img info" is only available in Xen >=4.2, although with earlier versions of Xen the code silently fails earlier and this section is never reached.
Github link to file/line: https://github.com/OpenNebula/one/blob/master/src/vmm_mad/remotes/poll_xen_kvm.rb#L707
History
#1 Updated by Ruben S. Montero over 5 years ago
- Target version set to Release 5.0
#2 Updated by Javi Fontan about 5 years ago
- Status changed from Pending to Closed
- Resolution set to wontfix