Custom Search

Thursday, May 2, 2013

keystone Invalid OpenStack Identity credentials

Error Log
------------
1)
Expecting authentication method via
  either a service token, --os-token or env[OS_SERVICE_TOKEN],
  or credentials, --os-username or env[OS_USERNAME].

2)
Invalid OpenStack Identity credentials


Solution
-----------
saju@saju-desktop:~/openstk_manual/horizon$
saju@saju-desktop:~/openstk_manual/horizon$ source .venv/bin/activate
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ keystone tenant-list
Expecting authentication method via
  either a service token, --os-token or env[OS_SERVICE_TOKEN],
  or credentials, --os-username or env[OS_USERNAME].

(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ export OS_SERVICE_TOKEN="my-dummy-token"
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ export OS_SERVICE_ENDPOINT=http://localhost:35357/v2.0
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ keystone tenant-list
Invalid OpenStack Identity credentials.

(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ export OS_SERVICE_TOKEN="ADMIN1"
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ keystone tenant-list
Invalid OpenStack Identity credentials.

(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ export OS_SERVICE_TOKEN="ADMIN"
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ keystone tenant-list

(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ keystone tenant-create --name=admin
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |                                  |
|   enabled   |               True               |
|      id     | 188fce18647d4a1a9f68d132f820b8cd |
|     name    |              admin               |
+-------------+----------------------------------+
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$ keystone tenant-list
+----------------------------------+-------+---------+
|                id                |  name | enabled |
+----------------------------------+-------+---------+
| 188fce18647d4a1a9f68d132f820b8cd | admin |   True  |
+----------------------------------+-------+---------+
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$
(.venv)saju@saju-desktop:~/openstk_manual/horizon$

1 comment:

  1. http://docs.openstack.org/trunk/openstack-compute/install/apt/content/setting-up-tenants-users-and-roles-manually.html

    ReplyDelete