if not getattr(self.configuration, flag, None):
msg = _('%s is not set.') % flag
raise exception.InvalidInput(reason=msg)
+ if not self.configuration.use_multipath_for_image_xfer:
+ msg = _('Production use of "%(backend)s" backend requires the '
+ 'Cinder controller to have multipathing properly set up '
+ 'and the configuration option "%(mpflag)s" to be set to '
+ '"True".') % {'backend': self._backend_name,
+ 'mpflag': 'use_multipath_for_image_xfer'}
+ LOG.warning(msg)
def check_for_setup_error(self):
+ self.host_type =\
+ self.HOST_TYPES.get(self.configuration.netapp_eseries_host_type,
+ None)
+ if not self.host_type:
+ raise exception.NetAppDriverException(
+ _('Configured host type is not supported.'))
self._check_storage_system()
self._populate_system_objects()