Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

You need to source an RC file containing the openstack credentials, e.g.:

[root@undercloud ~]# keystone tenant-create --name test
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
[root@undercloud ~]# keystone token-get
Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]
[root@undercloud ~]# source overcloudrc
[root@undercloud ~]# source /home/stack/overcloudrc
[root@undercloud ~]# keystone token-get
+-----------+----------------------------------+
|  Property |              Value               |
+-----------+----------------------------------+
|  expires  |       2017-04-26T00:53:38Z       |
|     id    | 2f9c9756f06c4ddcbdd973befffcd320 |
| tenant_id | cb0d5805d72a4f2a89ff260b15629799 |
|  user_id  | 51d00a69b58c4c47ac2eb651033ec8f1 |
+-----------+----------------------------------+

If this is a new setup, then see the prerequisites section here: https://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-services.html

  • Andreas