Disk allocation for instance is not good with swap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
John Garbutt |
Bug Description
When creating the allocation for the instance, we lookup the flavor to know the disk sizes for root, ephemeral and gb and we basically sum them.
Unfortunately, since both root and ephemeral size are expressed in GB while swap is expressed in MB, the sum is not good.
See how the DiskFilter works for accounting resources : https:/
We should change the logic to ceil to the next GB if modulo(root + ephemeral * 1024 + swap / 1024) is not rounded to 0 since we want to count allocations as the Inventory only counts by GB.
That's suboptimal and a long-term solution would be to report inventories in bytes (as the smallest attribute) but that's a big change so probably requiring a BP.
description: | updated |
Changed in nova: | |
assignee: | nobody → Tanvir Talukder (tanvirt16) |
tags: | removed: ocata-rc-potential |
Does https:/ /review. openstack. org/#/c/ 428120/ fix this?