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

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