]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix for infinity capacity reporting in EQL driver
authorArkadyKanevsky <arkady_kanevsky@dell.com>
Fri, 13 Feb 2015 16:22:38 +0000 (10:22 -0600)
committerArkadyKanevsky <arkady_kanevsky@dell.com>
Wed, 25 Feb 2015 14:42:44 +0000 (08:42 -0600)
Updated default values for total and free capacity from infinity to 0.
No more usage of unknown or infinity.

Closes bug: #1421843

Change-Id: I8bebdb9f54642ffb6ab77e81f759549db3ab838a

cinder/volume/drivers/eqlx.py

index 6e4704173ab88c1b8b1f6d7948f8c71760ba7162..63c9bfbca02cedd06059f62f7242e56cc316cac6 100644 (file)
@@ -289,8 +289,8 @@ class DellEQLSanISCSIDriver(SanISCSIDriver):
         data['reserved_percentage'] = 0
         data['QoS_support'] = False
 
-        data['total_capacity_gb'] = 'infinite'
-        data['free_capacity_gb'] = 'infinite'
+        data['total_capacity_gb'] = 0
+        data['free_capacity_gb'] = 0
 
         for line in self._eql_execute('pool', 'select',
                                       self.configuration.eqlx_pool, 'show'):