Ask Your Question

How to list the tenant and users in keystone without exporting OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT?

asked 2014-02-03 06:02:49 -0500

ebyenjoys gravatar image


I am working with openstack keysone and each time i reboot my keystone node, i am not able to list my keystone users or tenants and i am getting the following message.

 Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

When i export OS_SERVICE_TOKEN and OS_SERVICE_ENDPOINT,the issue get solved How would i permanently fix this? Kindly help.

edit retag flag offensive close merge delete


Hope issue is resolved. Please confirm. We will close this request post your confirmation.

dheeru gravatar imagedheeru ( 2014-02-04 22:17:52 -0500 )edit

Can I close this request ? Can you accept my ans by clicking right tick mark next to my answer ?

dheeru gravatar imagedheeru ( 2014-02-10 11:41:08 -0500 )edit

yes,finally done with your help sir :)

ebyenjoys gravatar imageebyenjoys ( 2014-03-07 22:44:16 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-03 06:26:00 -0500

dheeru gravatar image

It is about preparing your keystonerc file and sourcing it. You can include this your locarc file. You can refer the following link.

You can check sections starting with

You can also set your --os-* variables in your environment to simplify command-line usage. Set up a keystonerc file with the admin credentials and admin endpoint
edit flag offensive delete link more


Hello dheeru,i defined the credentials in bashrc and it works for me. Thanks alot :)

ebyenjoys gravatar imageebyenjoys ( 2014-02-06 15:43:53 -0500 )edit

This is cool. can you accept the ans by clicking on right tick mark next to my ans. Please click only once. After this I will close this request.

dheeru gravatar imagedheeru ( 2014-02-07 00:37:02 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-02-03 06:02:49 -0500

Seen: 1,441 times

Last updated: Feb 03 '14