diff options
author | TommyLike <tommylikehu@gmail.com> | 2018-05-28 11:28:18 +0800 |
---|---|---|
committer | Rajat Dhasmana <rajatdhasmana@gmail.com> | 2020-03-02 12:50:31 +0000 |
commit | 121515cf596ead8fbe9a4c3967bf1eacf975e738 (patch) | |
tree | 0a866d3e38ed443032f57cf96485cd5923cf613d | |
parent | e3c9fa4efa8ff68058716f683b37c091eccf6036 (diff) | |
download | cinder-121515cf596ead8fbe9a4c3967bf1eacf975e738.tar.gz |
[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 c157b547067389e697d6eea021de7e71535a62c9)
-rw-r--r-- | cinder/volume/drivers/dell_emc/xtremio.py | 3 | ||||
-rw-r--r-- | releasenotes/notes/bug-1773725-xtremio-remove-provisioning-factor-y7r5uy3489yd9pbf.yaml | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cinder/volume/drivers/dell_emc/xtremio.py b/cinder/volume/drivers/dell_emc/xtremio.py index 4b12b6aa2..7ab935127 100644 --- a/cinder/volume/drivers/dell_emc/xtremio.py +++ b/cinder/volume/drivers/dell_emc/xtremio.py @@ -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, diff --git a/releasenotes/notes/bug-1773725-xtremio-remove-provisioning-factor-y7r5uy3489yd9pbf.yaml b/releasenotes/notes/bug-1773725-xtremio-remove-provisioning-factor-y7r5uy3489yd9pbf.yaml new file mode 100644 index 000000000..1b3675d52 --- /dev/null +++ b/releasenotes/notes/bug-1773725-xtremio-remove-provisioning-factor-y7r5uy3489yd9pbf.yaml @@ -0,0 +1,4 @@ +--- +fixes: + The XtremIO driver has been fixed to correctly report the + "free_capacity_gb" size. |