[Openstack] weird behavior of keystone+apache+mod_wsgi
Steve Martinelli
stevemar at ca.ibm.com
Sat Nov 15 09:58:07 UTC 2014
Li Ma <skywalker.nick at gmail.com> wrote on 11/15/2014 04:25:23 AM:
> From: Li Ma <skywalker.nick at gmail.com>
> To: "openstack at lists.openstack.org" <openstack at lists.openstack.org>
> Date: 11/15/2014 04:32 AM
> Subject: [Openstack] weird behavior of keystone+apache+mod_wsgi
>
> Hi all, I just set up keystone with apache(2.2.15) and mod_wsgi. It runs
> perfectly.
> But when I tested my own application, it threw an exception of 404 Not
> Found, because it accessed the url: http://192.168.242.10:/35357/v2.0
Might be nothing, but you have an extra slash in the url you posted.
It should be http://192.168.242.10:35357/v2.0 not
http://192.168.242.10:/35357/v2.0
Can you show the curl output when you hit http://192.168.242.10:35357/v2.0
?
Did you change the keystone-paste.ini file around?
Though the bug Boris mentions looks like a match (
https://bugs.launchpad.net/mos/6.0.x/+bug/1382570).
>
> And I curl to get keystone versions, the result is weird.
>
> Here's what keystone+apache shows:
> # curl -i -X GET http://192.168.242.10:35357/ -H
> "Content-Type:application/json"
> HTTP/1.1 300 Multiple Choices
> Date: Sat, 15 Nov 2014 09:18:14 GMT
> Server: Apache/2.2.15 (Red Hat)
> Vary: X-Auth-Token
> Content-Length: 346
> Connection: close
> Content-Type: application/json
>
> {"versions": {"values": [{"status": "stable", "updated":
> "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json",
> "type": "application/vnd.openstack.identity-v3+json"}, {"base":
> "application/xml", "type":
> "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links":
> [{"href": "http://localhost:35357/v3/", "rel": "self"}]}]}}
>
> Here's what keystone shows:
> # curl -i -X GET http://192.242.10:35357/ -H
"Content-Type:application/json"
> HTTP/1.1 300 Multiple Choices
> Vary: X-Auth-Token
> Content-Type: application/json
> Content-Length: 948
> Date: Sat, 15 Nov 2014 09:21:18 GMT
>
> {"versions": {"values": [{"status": "stable", "updated":
> "2013-03-06T00:00:00Z", "media-types": [{"base": "application/json",
> "type": "application/vnd.openstack.identity-v3+json"}, {"base":
> "application/xml", "type":
> "application/vnd.openstack.identity-v3+xml"}], "id": "v3.0", "links":
> [{"href": "http://localhost:35357/v3/", "rel": "self"}]}, {"status":
> "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base":
> "application/json", "type":
> "application/vnd.openstack.identity-v2.0+json"}, {"base":
> "application/xml", "type":
> "application/vnd.openstack.identity-v2.0+xml"}], "id": "v2.0", "links":
> [{"href": "http://localhost:35357/v2.0/", "rel": "self"}, {"href":
> "http://docs.openstack.org/api/openstack-identity-service/2.0/content/",
> "type": "text/html", "rel": "describedby"}, {"href":
> "http://docs.openstack.org/api/openstack-identity-service/2.0/
> identity-dev-guide-2.0.pdf",
> "type": "application/pdf", "rel": "describedby"}]}]}}
>
> _______________________________________________
> Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to : openstack at lists.openstack.org
> Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141115/43050c85/attachment.html>
More information about the Openstack
mailing list