← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1612057] [NEW] XenAPI: Wrong calculation of available disk

 

Public bug reported:

https://git.openstack.org/cgit/openstack/nova/tree/nova/virt/xenapi/host.py#n230
will report the virtual utilisation of the SR; which is intentional as
the assumption is that VMs may eventually use all of the space they are
entitled to.

However, this does not have to include glance images.
For example:
[root@maul ~]# xe vdi-list name-label="Glance Image 792e7f09-0c87-4f60-9861-b580fbc3c9cb" params=virtual-size,physical-utilisation
virtual-size ( RO)            : 42949672960
    physical-utilisation ( RO): 88576

Because the VHD has a virtual size of 40GB when uploaded to glance, the
VDI has to be 40GB, but we know it can never increase because we will
always take a snapshot of it.  This, this 88K of physical utilisation is
interpreted as 40GB by our code.

** Affects: nova
     Importance: Undecided
     Assignee: John Hua (john-hua)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => John Hua (john-hua)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1612057

Title:
  XenAPI: Wrong calculation of available disk

Status in OpenStack Compute (nova):
  New

Bug description:
  https://git.openstack.org/cgit/openstack/nova/tree/nova/virt/xenapi/host.py#n230
  will report the virtual utilisation of the SR; which is intentional as
  the assumption is that VMs may eventually use all of the space they
  are entitled to.

  However, this does not have to include glance images.
  For example:
  [root@maul ~]# xe vdi-list name-label="Glance Image 792e7f09-0c87-4f60-9861-b580fbc3c9cb" params=virtual-size,physical-utilisation
  virtual-size ( RO)            : 42949672960
      physical-utilisation ( RO): 88576

  Because the VHD has a virtual size of 40GB when uploaded to glance,
  the VDI has to be 40GB, but we know it can never increase because we
  will always take a snapshot of it.  This, this 88K of physical
  utilisation is interpreted as 40GB by our code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1612057/+subscriptions


Follow ups