Neuton client always returns 204 code for delete action

Bug #1284543 reported by Evgeny Fedoruk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Expired
Undecided
Unassigned

Bug Description

Neuton client always returns 204 code for delete action which is not always correct.
In case of deleting Vip (or pool), LBaaS back-end driver may want to return 202 code and monitor the deletion completion later.

neutron/api/v2/resource.py:Resource class has action return status codes hard coded (create=201, delete=204)

Probably each Resource should define its return codes for actions.

Tags: lbaas
tags: added: lbaas
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

I'm not sure this is the right approach to follow.
Instead, the drivers should be fixed in order to provide exactly same API experience.
User would expect uniform behavior, regardless of the chosen provider.
At some point we'll get rid of providers in favor of flavors, in this case there will be no direct correspondence between the flavor and the driver, so user will not be able to expect any specific return code.

Changed in neutron:
status: New → Incomplete
Revision history for this message
Evgeny Fedoruk (evgenyf) wrote :

If I understand you right, driver should control the return code and not the client or any other entity in between.
In this case I agree.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
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.