[XtremIO] Remove provisioning factor when reporting

'free_capacity_gb' is incorrectly reported cause the real
size has been multiplied by max_over_subscription_ratio

Change-Id: I9804b580f90ecfca764a205c46a02ca73d32adcc
Closes-Bug: #1773725
(cherry picked from commit c157b54706)
This commit is contained in:
TommyLike 2018-05-28 11:28:18 +08:00 committed by Rajat Dhasmana
parent e3c9fa4efa
commit 121515cf59
2 changed files with 5 additions and 2 deletions

View File

@ -606,8 +606,7 @@ class XtremIOVolumeDriver(san.SanDriver):
'driver_version': self.VERSION,
'storage_protocol': self.protocol,
'total_capacity_gb': physical_space,
'free_capacity_gb': (free_physical *
self.provisioning_factor),
'free_capacity_gb': free_physical,
'provisioned_capacity_gb': actual_prov,
'max_over_subscription_ratio': self.provisioning_factor,
'thin_provisioning_support': True,

View File

@ -0,0 +1,4 @@
---
fixes:
The XtremIO driver has been fixed to correctly report the
"free_capacity_gb" size.