Merge "[Pure Storge] Ensure correct provisioned space value is used"
This commit is contained in:
commit
e9396dc63c
@ -1086,8 +1086,15 @@ class PureBaseVolumeDriver(san.SanDriver):
|
|||||||
total_capacity = float(space_info.capacity) / units.Gi
|
total_capacity = float(space_info.capacity) / units.Gi
|
||||||
used_space = float(space_info.space.total_physical) / units.Gi
|
used_space = float(space_info.space.total_physical) / units.Gi
|
||||||
free_space = float(total_capacity - used_space)
|
free_space = float(total_capacity - used_space)
|
||||||
provisioned_space = float(space_info.space.
|
# If array uses Evergreen/One model then total_provisioned
|
||||||
total_provisioned) / units.Gi
|
# is not reported so use the closest value avaible in that
|
||||||
|
# consumption model
|
||||||
|
try:
|
||||||
|
provisioned_space = float(space_info.space.
|
||||||
|
total_provisioned) / units.Gi
|
||||||
|
except AttributeError:
|
||||||
|
provisioned_space = float(space_info.space.
|
||||||
|
used_provisioned) / units.Gi
|
||||||
total_reduction = float(space_info.space.total_reduction)
|
total_reduction = float(space_info.space.total_reduction)
|
||||||
total_vols = len(volumes)
|
total_vols = len(volumes)
|
||||||
total_hosts = len(hosts)
|
total_hosts = len(hosts)
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
`Bug #2090310 <https://bugs.launchpad.net/cinder/+bug/2090310>`_:
|
||||||
|
[Pure Storage] Fixed issue with FlashArray using the Evergreen//One
|
||||||
|
consumption model not reporting ``total_provisioned``. Used
|
||||||
|
``used_provisoned`` instead in this case.
|
Loading…
x
Reference in New Issue
Block a user