'Any initialization the volume driver does while starting.'

def do_setup(self, context):

    super(NfsDriver, self).do_setup(context)
    nas_host = getattr(self.configuration, 'nas_host', None)
    nas_share_path = getattr(self.configuration, 'nas_share_path', None)
    if ((not nas_host) or (not nas_share_path)):
        config = self.configuration.nfs_shares_config
        if (not config):
            msg = (_("There's    no    NFS    config    file    configured    (%s)") % 'nfs_shares_config')
            LOG.warning(msg)
            raise exception.NfsException(msg)
        if (not os.path.exists(config)):
            msg = (_("NFS    config    file    at    %(config)s    doesn't    exist") % {'config': config})
            LOG.warning(msg)
            raise exception.NfsException(msg)
    self.shares = {}
    package = 'mount.nfs'
    try:
        self._execute(package, check_exit_code=False, run_as_root=True)
    except OSError as exc:
        if (exc.errno == errno.ENOENT):
            msg = (_('%s    is    not    installed') % package)
            raise exception.NfsException(msg)
        else:
            raise
    self.set_nas_security_options(self._is_voldb_empty_at_startup)
    self._check_snapshot_support(setup_checking=True)
