Dell EMC PS: Fix over-subscription ratio stats
Fixed the provisioned_capacity_gb to use the VolumeReportedSpace
to calculate the over-subscription ratio stats in the Dell EMC
PS volume driver.
Closes Bug: #1719659
Change-Id: I2caa5f2763ec343b0bc875e707924ff9b6424ce5
(cherry picked from commit 761f0c3e66)
This commit is contained in:
@@ -58,7 +58,7 @@ class PSSeriesISCSIDriverTestCase(test.TestCase):
|
||||
|
||||
self.driver_stats_output = ['TotalCapacity: 111GB',
|
||||
'FreeSpace: 11GB',
|
||||
'VolumeReserve: 80GB']
|
||||
'VolumeReportedSpace: 80GB']
|
||||
self.cmd = 'this is dummy command'
|
||||
self._context = context.get_admin_context()
|
||||
self.driver = ps.PSSeriesISCSIDriver(
|
||||
|
||||
@@ -136,10 +136,10 @@ class PSSeriesISCSIDriver(san.SanISCSIDriver):
|
||||
eqlx_chap_login, and eqlx_chap_password.
|
||||
1.4.1 - Rebranded driver to Dell EMC.
|
||||
1.4.2 - Enable report discard support.
|
||||
|
||||
1.4.2a - Fixed over-subscription ratio calculation
|
||||
"""
|
||||
|
||||
VERSION = "1.4.2"
|
||||
VERSION = "1.4.2a"
|
||||
|
||||
# ThirdPartySytems wiki page
|
||||
CI_WIKI_NAME = "Dell_Storage_CI"
|
||||
@@ -313,7 +313,7 @@ class PSSeriesISCSIDriver(san.SanISCSIDriver):
|
||||
if line.startswith('FreeSpace:'):
|
||||
out_tup = line.rstrip().partition(' ')
|
||||
data['free_capacity_gb'] = self._get_space_in_gb(out_tup[-1])
|
||||
if line.startswith('VolumeReserve:'):
|
||||
if line.startswith('VolumeReportedSpace:'):
|
||||
out_tup = line.rstrip().partition(' ')
|
||||
provisioned_capacity = self._get_space_in_gb(out_tup[-1])
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Dell EMC PS Driver stats report has been fixed, now reports the
|
||||
`provisioned_capacity_gb` properly. Fixes bug 1719659.
|
||||
Reference in New Issue
Block a user