Activity log for bug #1659266

Date Who What changed Old value New value Message
2017-01-25 11:29:26 Sylvain Bauza bug added bug
2017-01-25 11:30:48 Sylvain Bauza 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. https://github.com/openstack/nova/blob/7d04c78c1e2c26125eff5b1a8543b1ac5d027107/nova/scheduler/client/report.py#L129-L131 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://github.com/openstack/nova/blob/3cafa7f5bd0775b8ba49080226c03f8a91468d7d/nova/scheduler/filters/disk_filter.py#L36-L38 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 MB but that's a big change so probably requiring a BP. 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. https://github.com/openstack/nova/blob/7d04c78c1e2c26125eff5b1a8543b1ac5d027107/nova/scheduler/client/report.py#L129-L131 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://github.com/openstack/nova/blob/3cafa7f5bd0775b8ba49080226c03f8a91468d7d/nova/scheduler/filters/disk_filter.py#L36-L38 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.
2017-01-26 15:09:21 Tanvir Talukder nova: assignee Tanvir Talukder (tanvirt16)
2017-02-02 13:53:19 Matt Riedemann tags compute low-hanging-fruit placement resource-tracker compute low-hanging-fruit ocata-rc-potential placement resource-tracker
2017-02-02 18:47:33 OpenStack Infra nova: status Confirmed In Progress
2017-02-02 18:47:33 OpenStack Infra nova: assignee Tanvir Talukder (tanvirt16) John Garbutt (johngarbutt)
2017-02-03 02:38:50 OpenStack Infra nova: status In Progress Fix Released
2017-02-03 16:02:34 Matt Riedemann tags compute low-hanging-fruit ocata-rc-potential placement resource-tracker compute low-hanging-fruit placement resource-tracker