openstack client token and domain authentication

asked 2016-12-15 21:02:27 -0500

updated 2016-12-15 21:03:39 -0500

I installed Devstack master. My goal is to experiment with domain admins. I created a domain and a user in that domain as follows:

openstack domain create mydomain
openstack user create --domain mydomain --password pw mydomainadmin
openstack role add admin --user mydomainadmin --domain mydomain

Since I can't find out how to authenticate using the openstack client, I do that with curl, successfully. I now have a token. Then:

openstack --os-auth-url http://localhost:5000/v3 --os-token <my token> token issue
Password: <the fact I get a password prompt doesn't look good, but I enter a password>
__init__() got an unexpected keyword argument 'token'

I have two questions.

  1. What combination of domain, user and other information do I have to give the openstack client so that it authenticates this domain-level user? Obviously I can authenticate using curl.
  2. How can I make the --os-token option work?
edit retag flag offensive close merge delete


For 2) I have provided something, so that is about mandatory--os-url For 1 - I think you should try with username+password+domain set via parameters or environment varaibles. What error do you see?

volenbovsky gravatar imagevolenbovsky ( 2016-12-16 04:43:30 -0500 )edit