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
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."""
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."""