calling curl "HEAD" ops time out on /v3/auth/tokens

Bug #1370492 reported by Mike Abrams
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Medium
Unassigned

Bug Description

the following command works -->
'curl -H "x-auth-token:$TOKEN" -H "x-subject-token:$TOKEN" http://localhost:35357/v3/auth/tokens'

but this command does not work. it does not return (hangs indefinitely) -->
'curl -X HEAD -H "x-auth-token:$TOKEN" -H "x-subject-token:$TOKEN" http://localhost:35357/v3/auth/tokens'

Changed in keystone:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Lance Bragstad (lbragstad) wrote :

I was able to follow the call into routes

http://paste.openstack.org/show/112582/

tags: added: juno-rc-potential
Revision history for this message
Bert JW Regeer (xistence) wrote :

This was also posted to the WebOb issue tracker on Github, I responded there with my thoughts on this as someone that has spent quite a bit of time in WebOb guts ...

Do note that I am not a core developer for WebOb, and don't speak on behalf of the Pylons project, I simply speak as a developer that uses WebOb extensively along with the Pyramid web framework, and have a vested interest in OpenStack through my employer, hoping that this can get resolved :-)

See WebOb issue here:
https://github.com/Pylons/webob/issues/157

Changed in keystone:
importance: Low → Medium
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

Curl's man page:

This option only changes the actual word used in the HTTP request, it does not alter the way curl behaves. So for example if you want to make a proper HEAD request, using -X HEAD will not suffice. You need to use the -I, --head option.

Looks like -X HEAD is not sufficient.

Changed in keystone:
status: Confirmed → Invalid
Revision history for this message
Lance Bragstad (lbragstad) wrote :

I was able to confirm comment #3. -X HEAD doesn't work but using --head does. For example;

# Check Token with HEAD
curl -H "X-Auth-Token: tokentoken" \
     -H "X-Subject-Token: a343bdd3f6ef4be8b8a7a11b4311cf46" \
     -H "Content-Type: application/json" \
     --head http://localhost:5000/v3/auth/tokens/

works for me.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.