]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add searchDepth when getClusterInfo called.
authorJay Lee <jaesang50.lee@samsung.com>
Sat, 8 Feb 2014 01:43:27 +0000 (01:43 +0000)
committerJay Lee <jaesang50.lee@samsung.com>
Thu, 13 Feb 2014 00:00:55 +0000 (00:00 +0000)
Without searchDepth, getClusterInfo shows every volume and
snapshot. It's an unused information and takes very long time.

Change-Id: Id590e3023f4446f01b965baf4e8ac61980101067
Closes-Bug: 1276388

cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py

index 15f7dc0578186a495610d851b5a6494ff27c94e5..21bd07ca11f344654dc215fad6d887118449d97b 100644 (file)
@@ -427,7 +427,7 @@ class HPLeftHandCLIQProxy(SanISCSIDriver):
         data['storage_protocol'] = 'iSCSI'
         data['vendor_name'] = 'Hewlett-Packard'
 
-        result_xml = self._cliq_run_xml("getClusterInfo", {})
+        result_xml = self._cliq_run_xml("getClusterInfo", {'searchDepth': 1})
         cluster_node = result_xml.find("response/cluster")
         total_capacity = cluster_node.attrib.get("spaceTotal")
         free_capacity = cluster_node.attrib.get("unprovisionedSpace")