From: zhangchao010 Date: Wed, 25 Sep 2013 16:00:20 +0000 (+0800) Subject: Get host group id when Huawei driver initializing X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=cdcece14267560eb2641a2cab1f187897ed25ed2;p=openstack-build%2Fcinder-build.git 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 --- 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."""