From 251705354914d4af761965bf32b0e8fd948951c3 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sat, 8 Feb 2014 01:43:27 +0000 Subject: [PATCH] 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 --- cinder/volume/drivers/san/hp/hp_lefthand_cliq_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.45.2