Bug #4232

Disk polling for Xen always returns an empty list of disks

Added by Hector Sanjuan over 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:12/07/2015
Priority:NormalDue date:
Assignee:-% Done:


Category:Drivers - VM
Target version:Release 5.0
Resolution:wontfix Pull request:
Affected Versions:OpenNebula 4.14




there is a function:

    def self.get_vm_disk_stats(doms)
        dom_disk_stats = {}
        return dom_disk_stats     

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


#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

Also available in: Atom PDF