Ask Your Question
0

auth_token in keystone v3

asked 2016-03-16 05:32:08 -0500

yee379 gravatar image

updated 2016-03-16 05:33:35 -0500

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-28 13:29:42 -0500

Try using the rc file produced from the script here.

http://adam.younglogic.com/2016/03/v3...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-16 05:32:08 -0500

Seen: 240 times

Last updated: Mar 28 '16