Example #1
0
 def check_param(self):
     super(HPEXPHORCM, self).check_param()
     utils.check_opts(self.conf, opts.HORCM_VOLUME_OPTS)
     utils.check_opts(self.conf, _HORCM_VOLUME_OPTS)
     utils.check_opt_value(CONF, _HORCM_OPT_NAMES)
     insts = self.conf.hpexp_horcm_numbers
     if len(insts) != 2 or insts[_HORCMGR] == insts[_PAIR_HORCMGR]:
         msg = utils.output_log(601, param='hpexp_horcm_numbers')
         raise exception.HPEXPError(data=msg)
     LOG.debug('Setting ldev_range: %s', self.storage_info['ldev_range'])
Example #2
0
 def check_param(self):
     utils.check_opt_value(self.conf, _INHERITED_VOLUME_OPTS)
     utils.check_opts(self.conf, opts.COMMON_VOLUME_OPTS)
     utils.check_opts(self.conf, _COMMON_VOLUME_OPTS)
     utils.check_opts(self.conf, self.driver_info['volume_opts'])
     if self.conf.hpexp_default_copy_method not in _COPY_METHOD:
         msg = utils.output_log(
             601, param='hpexp_default_copy_method')
         raise exception.HPEXPError(data=msg)
     if (self.conf.hpexp_default_copy_method == 'THIN' and
             not self.conf.hpexp_thin_pool):
         msg = utils.output_log(601, param='hpexp_thin_pool')
         raise exception.HPEXPError(data=msg)
     if self.conf.hpexp_ldev_range:
         self.storage_info['ldev_range'] = self._range2list(
             'hpexp_ldev_range')