API: create operations should return 202

Bug #834013 reported by Salvatore Orlando
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Won't Fix
Low
Salvatore Orlando
quantum (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Precise by Yolanda Robla

Bug Description

API 'create' operations, according to the spec, should return HTTP status code 202.
They actually return HTTP status code 200.

This is due to the inability of the current wsgi framework to specify a status code when returning a non-empty response. Default HTTP status code is currently 200 (and that's the reason for which we get a 200 status code)

Related branches

Changed in quantum:
assignee: nobody → Salvatore Orlando (salvatore-orlando)
importance: Undecided → Low
milestone: none → diablo-rbp
Changed in quantum:
status: New → In Progress
dan wendlandt (danwent)
Changed in quantum:
status: In Progress → Fix Committed
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

Reopening this bug as we had to revert the Fix for compatibility with the Quantum Manager in nova

Changed in quantum:
status: Fix Committed → Confirmed
Revision history for this message
dan wendlandt (danwent) wrote :

Salv, is this a change you'd like to make with API v1.1? Otherwise, we can probably close this.

Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

The fix for bug #921743 also sorts this out.
API v1.0 --> 200
API v1.1 --> 202

Changed in quantum:
status: Confirmed → In Progress
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :
Revision history for this message
Salvatore Orlando (salvatore-orlando) wrote :

This is a "famous" bug that was solved and then reverted for nova integration in Diablo.
For some reason it was not merged back in Esssex, but now we definetely do not need it anymore - especially as the plan for removing v1 Api has been approved.

Changed in quantum:
status: In Progress → Invalid
status: Invalid → Won't Fix
Changed in quantum (Ubuntu):
status: New → Fix Released
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.