From: Jay Lee Date: Sat, 8 Feb 2014 01:43:27 +0000 (+0000) Subject: Add searchDepth when getClusterInfo called. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=251705354914d4af761965bf32b0e8fd948951c3;p=openstack-build%2Fcinder-build.git Add searchDepth when getClusterInfo called. Without searchDepth, getClusterInfo shows every volume and snapshot. It's an unused information and takes very long time. Change-Id: Id590e3023f4446f01b965baf4e8ac61980101067 Closes-Bug: 1276388 --- diff --git a/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py b/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py index 15f7dc057..21bd07ca1 100644 --- a/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py +++ b/cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py @@ -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")