I think this no longer affect Cinder and Manila, tested in devstack both
for both project, take manila for example:
```python
@wsgi.Controller.api_version('2.7', '2.21')
@wsgi.action('reset_status')
def share_reset_status(self, req, id, body):
print('this is method one')
return self._reset_status(req, id, body)
@wsgi.Controller.api_version('2.22')
@wsgi.action('reset_status')
def share_reset_status(self, req, id, body):
print('this is method two')
return self._reset_status(req, id, body)
```
these method could be triggered by specifying different mircoversion:
```cmd
curl -i -X POST
http://10.229.50.225:8786/v2/96bdd0edecc442a1b90454bb2ccfe31b/shares/1a3a0430-bc54-4bd2-a367-f851fe9b8347/action
-H "X-Openstack-Manila-Api-Version: 2.22" -H "X-Auth-Token:
d79a5605ebc049f78a85a145778b0632" -H "Content-Type: application/json" -H
"Accept: application/json" -H "User-Agent: python-manilaclient" -d
'{"reset_status": {"status": "error"}}'
```
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1512403
Title:
API actions can not be versioned
To manage notifications about this bug go to:
https://bugs.launchpad.net/manila/+bug/1512403/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs