Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

auth_token in keystone v3

I'm using RDO liberty on CentOS and i'm having problems with getting a useable auth_token from keystone v3 python client:

from keystoneclient.v3 import client as v3client

from keystoneclient.auth.identity import v3 as v3ident
from keystoneclient import session
from keystoneclient import client

insecure = True
auth_url = 'https://127.0.0.1:35357/v3'

auth = v3ident.Password(
    auth_url=auth_url,
    username='admin',
    password='change_me',
    project_name='admin',
    user_domain_name='default',
    project_domain_name='default'
)
sess = session.Session( auth=auth, verify=not insecure)
keystone = v3client.Client(session=sess)

print "AUTH_TOKEN: %s" % keystone.auth_token
# AUTH_TOKEN: None

Can someone tell me what's i'm doing wrong here?

auth_token in keystone v3

I'm using RDO liberty on CentOS and i'm having problems with getting a useable auth_token from keystone v3 python client:

from keystoneclient.v3 import client as v3client

from keystoneclient.auth.identity import v3 as v3ident
from keystoneclient import session
from keystoneclient import client

insecure = True
auth_url = 'https://127.0.0.1:35357/v3'

auth = v3ident.Password(
    auth_url=auth_url,
    username='admin',
    password='change_me',
    project_name='admin',
    user_domain_name='default',
    project_domain_name='default'
)
sess = session.Session( auth=auth, verify=not insecure)
keystone = v3client.Client(session=sess)

print "AUTH_TOKEN: %s" % keystone.auth_token
# AUTH_TOKEN: None

Can someone tell me what's i'm doing wrong here?

I am able to use openstack --insecure token issue without problem.