Ask Your Question
0

Ocata - Discovering versions from the identity service failed

asked 2017-08-10 11:38:38 -0600

Elangovan Anganann gravatar image

Below error comes when I try to run "openstack token issue" command. If I restart httpd service, "openstack token issue" command runs successfully for some time. Then, again the same problem occurs.

[root@controller1 ~ (admin)]# openstack token issue
Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
Service Unavailable (HTTP 503)

Even curl command is not responding.

[root@controller1 ~ (admin)]# curl http://10.0.0.12:35357/v3

When I restart httpd, everything works for some time. After some time, same issue as described above happens.

[root@controller1 ~ (admin)]# systemctl restart httpd

[root@controller1 ~ (admin)]# curl http://10.0.0.12:35357/v3
{"version": {"status": "stable", "updated": "2017-02-22T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.8", "links": [{"href": "http://10.0.0.12:35357/v3/", "rel": "self"}]}}

[root@controller1 ~ (admin)]# openstack token issue
+------------+---------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                     |
+------------+---------------------------------------------------------------------------------------------------------------------------+
| expires    | 2017-08-10T17:29:06+0000                                                                                                  |
| id         | gAAAAABZjInSp0NlbMOcMg7JSr7QQgp13eNrESOuEiki1ANFBYwlYjwBIj7rfLR01PvYFz968R7oGxEv3L4YPSMNcsLXFebVagJeBYW2                  |
|            | -qb5APOYhdGPPVdUmIYL0QegG3ogaJTAY-cWAaPolwe421IFFxvwVIDRGe-fiykah0b9zkPLEEY70IY                                           |
| project_id | 96c9b397c67047269b9a59470cf35622                                                                                          |
| user_id    | 35e74dfcd02946d1ae95467f14c3bfb8                                                                                          |
+------------+---------------------------------------------------------------------------------------------------------------------------+

I don't see any errors logged in /var/log/httpd/keystone.log (or) /var/log/keystone/keystone.log NOTE: I enabled debug=true in /etc/keystone/keystone.conf

Any idea why this happens?

edit retag flag offensive close merge delete

Comments

1

It simply means that Keystone is not accessible. It may not be running, or Apache is not running, or something prevents HTTP requests from getting through to Keystone.

So, when this happens next time, before restarting Apache, check if Apache is running, healthy and accessible.

Bernd Bausch gravatar imageBernd Bausch ( 2017-08-10 23:31:57 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-08-30 23:26:14 -0600

I have the same issue

root@controller:/var/log/mysql# openstack token issue
Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL. Unable to establish connection to http://controller.jesusdev.com:35357/v3/auth/tokens (http://controller.jesusdev.com:35357/...): HTTPConnectionPool(host='controller.jesusdev.com', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<requests.packages.urllib3.connection.httpconnection object="" at="" 0x7fc480b60a50="">: Failed to establish a new connection: [Errno 111] Connection refused',))

Can anyone help me?

edit flag offensive delete link more

Comments

It simply means that Keystone is not accessible. It may not be running, or Apache is not running, or something prevents HTTP requests from getting through to Keystone.

So, when this happens next time, before restarting Apache, check if Apache is running, healthy and accessible.

Bernd Bausch gravatar imageBernd Bausch ( 2019-08-31 01:20:16 -0600 )edit

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-08-10 11:38:38 -0600

Seen: 4,561 times

Last updated: Aug 10 '17