yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72381
[Bug 1764489] [NEW] Preallocated disks are deducted twice from disk_available_least when using preallocated_images = space
Public bug reported:
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_least under reporting the amount of available resources on a compute node.
Originally reported and debugged by mschuppert and mdbooth:
https://bugzilla.redhat.com/show_bug.cgi?id=1554265
Steps to reproduce
==================
$ crudini --get /etc/nova/nova-cpu.conf DEFAULT preallocate_images
space
$ nova hypervisor-show eb515aa2-b79e-4f38-a6ea-d493a6e0657f
+---------------------------+------------------------------------------+
| Property | Value |
+---------------------------+------------------------------------------+
[..]
| disk_available_least | 43 |
| free_disk_gb | 48 |
[..]
| local_gb | 48 |
| local_gb_used | 0 |
[..]
+---------------------------+------------------------------------------+
$ nova flavor-show 2
+----------------------------+----------+
| Property | Value |
+----------------------------+----------+
[..]
| disk | 20 |
[..]
+----------------------------+----------+
$ nova boot --image cirros-0.3.5-x86_64-disk --flavor 2 test
[..]
$ nova hypervisor-show eb515aa2-b79e-4f38-a6ea-d493a6e0657f
+---------------------------+------------------------------------------+
| Property | Value |
+---------------------------+------------------------------------------+
[..]
| disk_available_least | 3 |
| 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_least.
Actual result
=============
The allocation for each preallocated disk appears doubled and removed from disk_available_least.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://docs.openstack.org/releases/
fb0b785169e5e422b06e82f2eb58e68f6d2008b3
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.
** Affects: nova
Importance: Undecided
Status: New
** Tags: libvirt
--
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/1764489
Title:
Preallocated disks are deducted twice from disk_available_least when
using preallocated_images = space
Status in OpenStack Compute (nova):
New
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_least under reporting the amount of available resources on a compute node.
Originally reported and debugged by mschuppert and mdbooth:
https://bugzilla.redhat.com/show_bug.cgi?id=1554265
Steps to reproduce
==================
$ crudini --get /etc/nova/nova-cpu.conf DEFAULT preallocate_images
space
$ nova hypervisor-show eb515aa2-b79e-4f38-a6ea-d493a6e0657f
+---------------------------+------------------------------------------+
| Property | Value |
+---------------------------+------------------------------------------+
[..]
| disk_available_least | 43 |
| free_disk_gb | 48 |
[..]
| local_gb | 48 |
| local_gb_used | 0 |
[..]
+---------------------------+------------------------------------------+
$ nova flavor-show 2
+----------------------------+----------+
| Property | Value |
+----------------------------+----------+
[..]
| disk | 20 |
[..]
+----------------------------+----------+
$ nova boot --image cirros-0.3.5-x86_64-disk --flavor 2 test
[..]
$ nova hypervisor-show eb515aa2-b79e-4f38-a6ea-d493a6e0657f
+---------------------------+------------------------------------------+
| Property | Value |
+---------------------------+------------------------------------------+
[..]
| disk_available_least | 3 |
| 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_least.
Actual result
=============
The allocation for each preallocated disk appears doubled and removed from disk_available_least.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://docs.openstack.org/releases/
fb0b785169e5e422b06e82f2eb58e68f6d2008b3
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1764489/+subscriptions
Follow ups