← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1764489] Re: Preallocated disks are deducted twice from disk_available_least when using preallocated_images = space

 

** Changed in: nova
   Importance: Undecided => Medium

** Also affects: nova/ocata
   Importance: Undecided
       Status: New

** Also affects: nova/pike
   Importance: Undecided
       Status: New

** Also affects: nova/queens
   Importance: Undecided
       Status: New

** Changed in: nova/ocata
       Status: New => In Progress

** Changed in: nova/pike
       Status: New => In Progress

** Changed in: nova/queens
       Status: New => In Progress

** Changed in: nova/ocata
   Importance: Undecided => Medium

** Changed in: nova/queens
   Importance: Undecided => Medium

** Changed in: nova/pike
   Importance: Undecided => Medium

** Changed in: nova/ocata
     Assignee: (unassigned) => Lee Yarwood (lyarwood)

** Changed in: nova/pike
     Assignee: (unassigned) => Lee Yarwood (lyarwood)

** Changed in: nova/queens
     Assignee: (unassigned) => Lee Yarwood (lyarwood)

-- 
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):
  Fix Released
Status in OpenStack Compute (nova) ocata series:
  In Progress
Status in OpenStack Compute (nova) pike series:
  In Progress
Status in OpenStack Compute (nova) queens series:
  In Progress

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


References