API actions can not be versioned
Bug #1512403 reported by
Valeriy Ponomaryov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Low
|
Unassigned | ||
cinder (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Manila has functionality of API versioning only for resources, but not actions with resources. So, it is impossible to make several versions of some action using same name of method or name of action as required by versioning functionality.
For the moment, versioning of actions can be achieved by usage of different names and methods for different versions. It is some kind of ugly when we have lots of them.
Another approach is having a single method, single action name, and check API version in request parameter to decide the method behavior.
tags: | added: api versioning |
description: | updated |
Changed in manila: | |
assignee: | nobody → Valeriy Ponomaryov (vponomaryov) |
milestone: | none → mitaka-2 |
Changed in manila: | |
assignee: | Valeriy Ponomaryov (vponomaryov) → nobody |
milestone: | mitaka-2 → none |
Changed in manila: | |
importance: | Undecided → Low |
no longer affects: | cinder (Ubuntu) |
Changed in cinder (Ubuntu): | |
status: | New → Fix Released |
Changed in manila: | |
status: | Confirmed → Fix Released |
Changed in cinder: | |
status: | New → Invalid |
To post a comment you must log in.
This is a known issue, and the Nova author acknowledged it was intentional but ugly.
https:/ /github. com/openstack/ manila/ blob/master/ manila/ api/openstack/ wsgi.py# L977
It is an issue in Manila's admin actions module, where we had to pick non-overlapping names for the versioned methods.