When unsupported microversion requested, a microversion header returned with unsupported version

Bug #1646357 reported by Alex Xu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Low
Alex Xu
masakari
Confirmed
Low
Dinesh Bhor

Bug Description

When request a unsupported microversion, the 409 returned. But it includes that unsupport microversion in the header 'Openstack-Api-Version'.

curl -g -i -X GET http://hp-pc:8774/v2.1/servers/detail -H "OpenStack-API-Version: compute 2.50" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: 5e3c15ceb02f4e78a3b3a35b98a6d48a"

HTTP/1.1 406 Not Acceptable
Openstack-Api-Version: compute 2.50
X-Openstack-Nova-Api-Version: 2.50
Vary: OpenStack-API-Version
Vary: X-OpenStack-Nova-API-Version
Content-Type: application/json; charset=UTF-8
Content-Length: 123
X-Compute-Request-Id: req-1d511dd3-6882-443f-979b-e0812bd84f57
Date: Thu, 01 Dec 2016 05:59:58 GMT

That looks like strange. We can remove that header when 406 returned.

Tags: api
Alex Xu (xuhj)
Changed in nova:
assignee: nobody → Alex Xu (xuhj)
status: New → In Progress
importance: Undecided → Low
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in masakari:
assignee: nobody → Dinesh Bhor (dinesh-bhor)
Tushar Patil (tpatil)
Changed in masakari:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/405118
Reason: This review is > 4 weeks without comment, and is not mergable in it's current state. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on masakari (master)

Change abandoned by Dinesh Bhor (<email address hidden>) on branch: master
Review: https://review.openstack.org/406931

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.