Reviewed: https://review.openstack.org/353862 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e1ddae83901735d9bffd9d736f3c033c8986041f Submitter: Jenkins Branch: master
commit e1ddae83901735d9bffd9d736f3c033c8986041f Author: John Hua <[email protected]> Date: Thu Aug 11 14:48:47 2016 +0800 Use physical utilisation for cached images Since glance images are downloaded and snapshotted before they are used. Only a small proportion of its VDI will be in use and it will never grow. So the real disk usage for VDIs varies with their capability to expand. Disks connected to VMs continue to use the virtual utilisation as they are able to expand. Change-Id: Ie7aae58a47e6651af5b609fb9abc13ab5d61e4df Closes-bug: 1612057 ** Changed in: nova Status: In Progress => Fix Released -- 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): Fix Released 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

