Ask Your Question
0

Not able to access users using keystone api v2.0 in mitaka.

asked 2017-02-04 08:24:14 -0500

hemen gravatar image

updated 2017-02-05 03:21:27 -0500

I have managed to enable keystone API v2.0 with Mitaka by adding default_domain_id in keystone.conf. However when I try to do user-list using

keystone user-list

It shows me an error of The request you have made requires authentication. (HTTP 401) my openrc file contains following code.

export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=root
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0/
export OS_IDENTITY_API_VERSION=2.0
export OS_IMAGE_API_VERSION=2
export OS_REGION_NAME=regionOne

If I run following openrc. I am not getting any error but user-list but user list is empty.

export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=root
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://controller:35357/v2.0/
export OS_IDENTITY_API_VERSION=2.0
export OS_IMAGE_API_VERSION=2
export OS_REGION_NAME=regionOne
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0
export OS_SERVICE_TOKEN=1649b3af04ce0d62265b

please let me know what am I doing wrong.

edit retag flag offensive close merge delete

Comments

Perhaps the OS_PROJECT_NAME in the first openrc confuses keystone.

Bernd Bausch gravatar imageBernd Bausch ( 2017-02-04 08:41:02 -0500 )edit

@bernd-bausch Even after changing OS_PROJECT_NAME to admin. The problem remains the same

hemen gravatar imagehemen ( 2017-02-04 13:05:25 -0500 )edit

check this link https://ask.openstack.org/en/question... you might find something helpful. Can you please elaborate your question with some more information.

sunilkms123 gravatar imagesunilkms123 ( 2017-02-05 22:33:54 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-02-09 01:34:44 -0500

hemen gravatar image

You need to restart apache2 after you change default_domain_id in keystone.conf. Keystone v2.0 becomes working after that.

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: 2017-02-04 08:24:14 -0500

Seen: 104 times

Last updated: Feb 09 '17