Ask Your Question

Revision history [back]

For keystone v3 you have to set project and user domain_name or domain_id. You can use the domain_id "default".

Or you use v2.

For keystone v3 you have to set project and user domain_name or domain_id. You can use the domain_id "default".

Or you use v2.

My example with keystonev3 ( slightly different approach, but actually the same thing )
from keystoneclient.v3 import client
project = "admin"
domain = "default"
user = "admin"
password = 'xxxxxxxxxxxxxxx''
auth_url = 'http://aa.bb.cc.dd:35357/v3'
auth = client.Client(auth_url=auth_url,username=user, password=password,
                        project_name=project, user_domain_id="default",project_domain_id="default")
sess = session.Session(auth=auth)

For keystone v3 you have to set project and user domain_name or domain_id. You can use the domain_id "default".

Or you use v2.

My example with keystonev3 ( slightly different approach, approach for the keytoneclient, but actually almost the same thing )
from keystoneclient.v3 import client
project = "admin"
domain = "default"
user = "admin"
password = 'xxxxxxxxxxxxxxx''
auth_url = 'http://aa.bb.cc.dd:35357/v3'
auth = client.Client(auth_url=auth_url,username=user, password=password,
                        project_name=project, user_domain_id="default",project_domain_id="default")
sess = session.Session(auth=auth)

For keystone v3 you have to set project and user domain_name or domain_id. You can use the domain_id "default".

Or you use v2.

For v3 the default domain is set for everything, that does not have another domain defined. And the cloud admin (superuser) is resident in the default domain too.

My example with keystonev3 ( slightly different approach for the keytoneclient, but almost the same thing )
from keystoneclient.v3 import client
project = "admin"
domain = "default"
user = "admin"
password = 'xxxxxxxxxxxxxxx''
auth_url = 'http://aa.bb.cc.dd:35357/v3'
auth = client.Client(auth_url=auth_url,username=user, password=password,
                        project_name=project, user_domain_id="default",project_domain_id="default")
sess = session.Session(auth=auth)