3 Commits

Author SHA1 Message Date
Jose Castro Leon
2c30fed486 Remove provisioned calculation on non thin provision backends
On those backends, there is no need to calculate provisioned_capacity_gb
as it is not used during the scheduling. This calculation was not
scaling properly on big environments as it implies many database
queries.

Closes-Bug: #1869712

Change-Id: Icb8947991723a2a1cc334a72276a35cf50fc1b7d
2020-04-07 21:09:40 +02:00
Goutham Pacha Ravi
4d53f3ec41 Revert "Remove provisioned calculation on non thin provision backends"
This fix doesn't fully address the issue given that share backends
are allowed to use a list of capabilities and reporting thin_provisioning as
[False] will still allow the calculation of provisioned_capacity_gb.

Bug #1869712 will be fixed in a follow up patch.

This reverts commit cd9292b931a0f74079512cd43652129a9c595ee8.

Change-Id: I922f161980e8a1ef7cf111b1e30c02991073d6e5
2020-04-01 17:33:45 +00:00
Jose Castro Leon
cd9292b931 Remove provisioned calculation on non thin provision backends
On those backends, there is no need to calculate provisioned_capacity_gb
as it is not used during the scheduling. This calculation was not
scaling properly on big environments as it implies many database
queries.

Change-Id: If1ea4ceedc495dc6c6e247feccfbdc4899ad725c
Closes-Bug: #1869712
2020-03-31 13:54:06 +02:00