Ask Your Question
1

keystone throwing error with username password but works with os-token [closed]

asked 2015-03-09 09:05:59 -0600

mj gravatar image

Following OpenStack Juno Installation Guide for Ubuntu 14.04 keystone is working with os-endpoint and os-token but not working with username and password. I think I am missing some steps, need help

Fail Case:

ubuntu@arm64:~$ keystone --os-tenant-id 2e831cc2e2ea408895f27566126f91cf --os-username admin --os-password password --os-auth-url  http://controller:35357/v2.0 tenant-list
Expecting an endpoint provided via either --os-endpoint or env[OS_SERVICE_ENDPOINT]

Logs:

ubuntu@arm64:~$  keystone --os-endpoint http://controller:35357/v2.0 --os-token f113680ba630fae27de7 tenant-list
    WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
    +----------------------------------+---------+---------+
    |                id                |   name  | enabled |
    +----------------------------------+---------+---------+
    | 2e831cc2e2ea408895f27566126f91cf |  admin  |   True  |
    | f9d3c2a04b584a1ea086bdd0415eb98f | service |   True  |
    +----------------------------------+---------+---------+
        ubuntu@arm64:~$ keystone --os-endpoint http://controller:35357/v2.0 --os-token f113680ba630fae27de7 service-list        
    WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
    +----------------------------------+----------+----------+-------------+
    |                id                |   name   |   type   | description |
    +----------------------------------+----------+----------+-------------+
    | 430b1d12bf8947bd91f462ad2e31b20f | keystone | identity |             |
    | 0d5ceec4e7da4bf29b6abef35ec01f75 |   nova   | compute  |             |
    +----------------------------------+----------+----------+-------------+
    ubuntu@arm64:~$ keystone --os-endpoint http://controller:35357/v2.0 --os-token f113680ba630fae27de7 endpoint-list
    WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored).
    +----------------------------------+-----------+-----------------------------+-----------------------------+------------------------------+----------------------------------+
    |                id                |   region  |          publicurl          |         internalurl         |           adminurl           |            service_id            |
    +----------------------------------+-----------+-----------------------------+-----------------------------+------------------------------+----------------------------------+
    | 85bc83a92a064f28b47b5b5d5f576f6b | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:35357/v2.0 | 430b1d12bf8947bd91f462ad2e31b20f |
    +----------------------------------+-----------+-----------------------------+-----------------------------+------------------------------+----------------------------------+
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by mj
close date 2015-03-30 06:27:55.820978

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-03-09 10:33:33 -0600

bishoy gravatar image

Kindly note that using --os-auth-url is different than using Endpoint. you should provide an endpoint in the command or source it in the environment variables. This behavior is expected and it's not a problem. Using the --os-auth-url has it's valuables with other architectures which have the endpoint in a different host than the auth host. like for instance using regions.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-03-09 09:05:59 -0600

Seen: 270 times

Last updated: Mar 09 '15