'Use the san_login and san_password to set token.'

def _login_2_1(self):

    body = {'name': self.username, 'password': self.password}
    self.datera_api_token = None
    try:
        LOG.debug('Getting    Datera    auth    token.')
        results = self._issue_api_request('login', 'put', body=body, sensitive=True, api_version='2.1', tenant=None)
        self.datera_api_token = results['key']
    except exception.NotAuthorized:
        with excutils.save_and_reraise_exception():
            LOG.error('Logging    into    the    Datera    cluster    failed.    Please    check    your    username    and    password    set    in    the    cinder.conf    and    start    the    cinder-volume    service    again.')
