]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
NetApp:iSCSI drivers reserved percent need to change to 0.
authorNavneet Singh <singn@netapp.com>
Fri, 21 Jun 2013 13:16:36 +0000 (18:46 +0530)
committerNavneet Singh <singn@netapp.com>
Fri, 21 Jun 2013 13:16:36 +0000 (18:46 +0530)
The iscsi drivers reserved percent is 100 as of now. This needs
to be changed to 0 for default values. It needs to be corrected
so that filter scheduler does not discard netapp backend.

bug 1182015

Change-Id: Id80584e5d478c83de97735706994206e024f8bf6

cinder/volume/drivers/netapp/iscsi.py

index 936c4df1e6c73477b4383f55e825f20ea4024260..17f9decb0200bd20aa9668aef10b20e97f06fe4a 100644 (file)
@@ -841,7 +841,7 @@ class NetAppDirectCmodeISCSIDriver(NetAppDirectISCSIDriver):
 
         data['total_capacity_gb'] = 'infinite'
         data['free_capacity_gb'] = 'infinite'
-        data['reserved_percentage'] = 100
+        data['reserved_percentage'] = 0
         data['QoS_support'] = False
         provide_ems(self, self.client, data, netapp_backend)
         self._stats = data
@@ -1124,7 +1124,7 @@ class NetAppDirect7modeISCSIDriver(NetAppDirectISCSIDriver):
 
         data['total_capacity_gb'] = 'infinite'
         data['free_capacity_gb'] = 'infinite'
-        data['reserved_percentage'] = 100
+        data['reserved_percentage'] = 0
         data['QoS_support'] = False
         provide_ems(self, self.client, data, netapp_backend,
                     server_type="7mode")