Re: [Openstack] weird behavior of keystone+apache+mod_wsgi

2014-11-15 Thread Boris Bobrov
On Saturday 15 November 2014 14:42:56 Li Ma wrote:
> On 2014/11/15 17:40, Boris Bobrov wrote:
> > On Saturday 15 November 2014 12:25:23 Li Ma wrote:
> >> 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
> >> 
> >> And I curl to get keystone versions, the result is weird.
> >> 
> >> Here's what keystone+apache shows:
> >> [...]
> >> Here's what keystone shows:
> >> [...]
> > 
> > Very interesting. We have this bug in MOS for simillar (if not the same)
> > issue and I thought it is fixed in "master" branch --
> > https://bugs.launchpad.net/mos/6.0.x/+bug/1382570
> > 
> > Where did you get your keystone from?
> 
> I'm using Icehouse 2014.1. Thanks for your information.
> 

OK, I've found this bug on vanilla keystone -- 
https://bugs.launchpad.net/keystone/+bug/1343579 . It was fixed and was fixed 
in 
2014.2.

Hope that helps!

-- 
С наилучшими пожеланиями,
Boris

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] weird behavior of keystone+apache+mod_wsgi

2014-11-15 Thread Li Ma


On 2014/11/15 17:40, Boris Bobrov wrote:

On Saturday 15 November 2014 12:25:23 Li Ma wrote:

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

And I curl to get keystone versions, the result is weird.

Here's what keystone+apache shows:
[...]
Here's what keystone shows:
[...]

Very interesting. We have this bug in MOS for simillar (if not the same) issue
and I thought it is fixed in "master" branch --
https://bugs.launchpad.net/mos/6.0.x/+bug/1382570

Where did you get your keystone from?


I'm using Icehouse 2014.1. Thanks for your information.

Li Ma

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] weird behavior of keystone+apache+mod_wsgi

2014-11-15 Thread Steve Martinelli
Li Ma  wrote on 11/15/2014 04:25:23 AM:

> From: Li Ma 
> To: "openstack@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@lists.openstack.org
> Unsubscribe : 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> 
___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


Re: [Openstack] weird behavior of keystone+apache+mod_wsgi

2014-11-15 Thread Boris Bobrov
On Saturday 15 November 2014 12:25:23 Li Ma wrote:
> 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
> 
> And I curl to get keystone versions, the result is weird.
> 
> Here's what keystone+apache shows:
> [...]
> Here's what keystone shows:
> [...]

Very interesting. We have this bug in MOS for simillar (if not the same) issue 
and I thought it is fixed in "master" branch -- 
https://bugs.launchpad.net/mos/6.0.x/+bug/1382570

Where did you get your keystone from?

-- 
С наилучшими пожеланиями,
Boris

___
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack


[Openstack] weird behavior of keystone+apache+mod_wsgi

2014-11-15 Thread Li Ma
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


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@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack