Preallocated disks are deducted twice from disk_available_least when using preallocated_images = space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Lee Yarwood | ||
Ocata |
Fix Committed
|
Medium
|
Lee Yarwood | ||
Pike |
Fix Committed
|
Medium
|
Lee Yarwood | ||
Queens |
Fix Committed
|
Medium
|
Lee Yarwood |
Bug Description
Description
===========
When using preallocated file based disks (preallocate_images = space) with the Libvirt virt driver the reported allocation for each disk appears doubled, leaving disk_available_
Originally reported and debugged by mschuppert and mdbooth: https:/
Steps to reproduce
==================
$ crudini --get /etc/nova/
space
$ nova hypervisor-show eb515aa2-
+------
| Property | Value |
+------
[..]
| disk_available_
| free_disk_gb | 48 |
[..]
| local_gb | 48 |
| local_gb_used | 0 |
[..]
+------
$ nova flavor-show 2
+------
| Property | Value |
+------
[..]
| disk | 20 |
[..]
+------
$ nova boot --image cirros-
[..]
$ nova hypervisor-show eb515aa2-
+------
| Property | Value |
+------
[..]
| disk_available_
| free_disk_gb | 28 |
[..]
| local_gb | 48 |
| local_gb_used | 20 |
[..]
+------
Expected result
===============
The allocation for each preallocated disk is reported correctly and removed from disk_available_
Actual result
=============
The allocation for each preallocated disk appears doubled and removed from disk_available_
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
fb0b785169e5
2. Which hypervisor did you use?
(For example: Libvirt + KVM, Libvirt + XEN, Hyper-V, PowerKVM, ...)
What's the version of that?
Libvirt + KVM
2. Which storage type did you use?
(For example: Ceph, LVM, GPFS, ...)
What's the version of that?
file / qcow2
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
N/A
Logs & Configs
==============
See above.
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/561704
Review: https:/