keystone api:get someting wrong

Asked by mnimonster

I want to operate keystone api . And read the <OpenStack Identity Service Developer Guide API 2.0>ducument.
http://docs.openstack.org/api/openstack-identity-service/2.0/content/

But it's really not tell us how to operate against the Keystone using SSL over HTTP (HTTPS) on TCP port 443.

And When I use http://192.168.1.151:5000/v2.0/users
it shows below:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/eventlet/wsgi.py", line 336, in handle_one_response
    result = self.application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 203, in __call__
    return app(environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 299, in __call__
    response = request.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 299, in __call__
    response = request.get_response(self.application)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1086, in get_response
    application, catch_exc_info=False)
  File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1055, in call_application
    app_iter = application(self.environ, start_response)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 147, in __call__
    resp = self.call_func(req, *args, **self.kwargs)
  File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 210, in call_func
    return self.func(req, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 300, in __call__
    return self.process_response(request, response)
  File "/usr/lib/python2.7/dist-packages/keystone/middleware/core.py", line 149, in process_response
    raise exception.Error(message=response.body)
Error: <html> <head> <title>404 Not Found</title> </head> <body> <h1>404 Not Found</h1> The resource could not be found.<br /><br /> </body> </html>

Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Identity (keystone) Edit question
Assignee:
No assignee Edit question
Solved by:
Joseph Heck
Solved:
Last query:
Last reply:
Revision history for this message
Best Joseph Heck (heckj) said :
#1

hi mnimonster -

the guide doesn't share anything around enabling SSL - and the error you posted in the question appears to be very unrelated. Adam Young has some pieces in his blog about running Keystone (http://adam.younglogic.com/2012/04/keystone-httpd/) - and we have some files in the keystone repository for helping run keystone under Apache, with Apache HTTPD doing the SSL work.

Revision history for this message
mnimonster (teddy-liu) said :
#2

Thanks Joseph Heck, that solved my question.