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