Comment 3 for bug 1659266

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/428352
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c2e1133be15254747c207cce7805bf56f3cca6fa
Submitter: Jenkins
Branch: master

commit c2e1133be15254747c207cce7805bf56f3cca6fa
Author: John Garbutt <email address hidden>
Date: Thu Feb 2 18:41:46 2017 +0000

    Stop swap allocations being wrong due to MB vs GB

    Swap is in MB, but allocations for disk are in GB.

    We totally should claim disk in GB, for now lets just round up the swap
    allocation to the next GB. While this is wasteful, its the only safe
    answer to ensure you don't over commit resources on the node.

    Updated the test so the swap is 1023MB, after rounding up this should
    claim the same 1GB extra space for swap.

    Closes-Bug: #1659266

    Change-Id: If50eab870b2c50f4055668143780574e1350a438