OpenStack: Debugging Keystone Authentication Service

From Define Wiki
Jump to navigation Jump to search

In short, the keystone service crapped out (Internal service error any time authenticating)

[root@controller01 keystone]# curl http://localhost:5000/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at 
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

To fix, I needed to add the following lines to the services and restart (I’m not sure why these are required but its fixed the problem for now – nothing wrong with UK setup though which is the exact same…)

[root@controller01 keystone]# grep config_file=/usr  /etc/glance/glance-api.conf /etc/glance/glance-registry.conf /etc/keystone/keystone.conf
/etc/glance/glance-api.conf:config_file=/usr/share/glance/glance-api-dist-paste.ini
/etc/glance/glance-registry.conf:config_file=/usr/share/glance/glance-registry-dist-paste.ini
/etc/keystone/keystone.conf:config_file=/usr/share/keystone/keystone-dist-paste.ini

Now problem resolved:

[root@controller01 keystone]# curl http://localhost:5000/
{"versions": {"values": [{"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://localhost:5000/v3/", "rel": "self"}]}, {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://localhost:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}]}}