python-novaclient does not send an Accept header when authentication with KeyStone

Bug #904436 reported by justinsb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Low
Matt Stephenson

Bug Description

When authenticating with keystone, the python novaclient does not send an Accept header. Some KeyStone implementations may choose to deliver XML in response.

It should send add a header like Accept: application/json

e.g.

POST /v2.0/tokens HTTP/1.1
Host: 192.168.2.99:5000
Content-Length: 112
content-type: application/json
accept-encoding: gzip, deflate
user-agent: python-novaclient

{"auth": {"tenantName": "novaadmin", "passwordCredentials": {"username": "novaadmin", "password": "secret"}}}

Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
tags: added: python-novaclient
Changed in nova:
assignee: nobody → Matt Stephenson (mattstep)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/3727

Changed in nova:
status: Confirmed → In Progress
Brian Waldon (bcwaldon)
Changed in nova:
milestone: none → essex-4
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/3727
Committed: http://github.com/openstack/python-novaclient/commit/fe4fa9daef26508c1e614e0a570b32e03821ee88
Submitter: Jenkins
Branch: master

commit fe4fa9daef26508c1e614e0a570b32e03821ee88
Author: Matt Stephenson <email address hidden>
Date: Thu Feb 2 16:37:55 2012 -0800

    Add Accept: applicaton/json header to all service requests. Fixes bug 904436

    Change-Id: I5f7c78f0ea516a7a96c32b1f745686e130c2b9af

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
Thierry Carrez (ttx)
affects: nova → python-novaclient
Changed in python-novaclient:
milestone: 2012.1 → none
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.