Example #1
0
 def check_param(self):
     super(HPXPHORCM, 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.hpxp_horcm_numbers
     if len(insts) != 2 or insts[_HORCMGR] == insts[_PAIR_HORCMGR]:
         msg = utils.output_log(601, param='hpxp_horcm_numbers')
         raise exception.HPXPError(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.hpxp_default_copy_method not in _COPY_METHOD:
         msg = utils.output_log(
             601, param='hpxp_default_copy_method')
         raise exception.HPXPError(data=msg)
     if (self.conf.hpxp_default_copy_method == 'THIN' and
             not self.conf.hpxp_thin_pool):
         msg = utils.output_log(601, param='hpxp_thin_pool')
         raise exception.HPXPError(data=msg)
     if self.conf.hpxp_ldev_range:
         self.storage_info['ldev_range'] = self._range2list(
             'hpxp_ldev_range')