'Perform any required initialization.'

def init_host(self, added_to_cluster=None, **kwargs):

    ctxt = context.get_admin_context()
    if (not self.driver.supported):
        utils.log_unsupported_driver_warning(self.driver)
        if (not self.configuration.enable_unsupported_driver):
            LOG.error('Unsupported    drivers    are    disabled.    You    can    re-enable    by    adding    enable_unsupported_driver=True    to    the    driver    section    in    cinder.conf', resource={'type': 'driver', 'id': self.__class__.__name__})
            return
    if added_to_cluster:
        self._include_resources_in_cluster(ctxt)
    LOG.info('Starting    volume    driver    %(driver_name)s    (%(version)s)', {'driver_name': self.driver.__class__.__name__, 'version': self.driver.get_version()})
    try:
        self.driver.do_setup(ctxt)
        self.driver.check_for_setup_error()
    except Exception:
        LOG.exception('Failed    to    initialize    driver.', resource={'type': 'driver', 'id': self.__class__.__name__})
        return
    self.driver.init_capabilities()
    volumes = self._get_my_volumes(ctxt)
    snapshots = self._get_my_snapshots(ctxt)
    self._sync_provider_info(ctxt, volumes, snapshots)
    self.stats['pools'] = {}
    self.stats.update({'allocated_capacity_gb': 0})
    try:
        for volume in volumes:
            if (volume['status'] in ['in-use', 'available']):
                self._count_allocated_capacity(ctxt, volume)
                try:
                    if (volume['status'] in ['in-use']):
                        self.driver.ensure_export(ctxt, volume)
                except Exception:
                    LOG.exception('Failed    to    re-export    volume,    setting    to    ERROR.', resource=volume)
                    volume.conditional_update({'status': 'error'}, {'status': 'in-use'})
    except Exception:
        LOG.exception('Error    during    re-export    on    driver    init.', resource=volume)
        return
    self.driver.set_throttle()
    self.driver.set_initialized()
    backend_name = vol_utils.extract_host(self.service_topic_queue)
    image_utils.cleanup_temporary_file(backend_name)
    self.publish_service_capabilities(ctxt)
    LOG.info('Driver    initialization    completed    successfully.', resource={'type': 'driver', 'id': self.driver.__class__.__name__})
    super(VolumeManager, self).init_host(added_to_cluster=added_to_cluster, **kwargs)
