From cdcece14267560eb2641a2cab1f187897ed25ed2 Mon Sep 17 00:00:00 2001 From: zhangchao010 Date: Thu, 26 Sep 2013 00:00:20 +0800 Subject: [PATCH] Get host group id when Huawei driver initializing Get host group id when Huawei driver initializing to make sure host group id won't be None after cinder node host sys reboot. fixes bug 1230372 Change-Id: Ia3d5de116804930b2bb0035e4c991ebb9801ee76 --- cinder/volume/drivers/huawei/ssh_common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cinder/volume/drivers/huawei/ssh_common.py b/cinder/volume/drivers/huawei/ssh_common.py index e4dae758d..28cea104b 100644 --- a/cinder/volume/drivers/huawei/ssh_common.py +++ b/cinder/volume/drivers/huawei/ssh_common.py @@ -113,6 +113,7 @@ class TseriesCommon(): self.login_info = self._get_login_info() self.lun_distribution = self._get_lun_distribution_info() self.luncopy_list = self._get_all_luncopy_name() + self.hostgroup_id = self._get_hostgroup_id(HOST_GROUP_NAME) def _check_conf_file(self): """Check config file, make sure essential items are set.""" @@ -1151,6 +1152,7 @@ class DoradoCommon(TseriesCommon): self._check_conf_file() self.lun_distribution = self._get_lun_ctr_info() + self.hostgroup_id = self._get_hostgroup_id(HOST_GROUP_NAME) def _check_conf_file(self): """Check the config file, make sure the key elements are set.""" -- 2.45.2