manila/manila
Rodrigo Barbieri 51d9649a48 Fix delete when share not found in update_access
Whenever drivers throw exceptions during update_access,
share cannot be deleted, not even with force-delete.
Some drivers already do not throw exception in delete_share
in such cases, but update_access should still throw exception
if share is not found when allow_access or deny_access
are called.
This patch adds possibility for driver throwing a
ShareResourceNotFound exception to let the manager
know share does not exist in backend anymore.
Drivers that already handle this case in delete_share
(by not throwing exception) only need to change update_access.
Additionally, adding possibility of share being completely
deletable if force-delete is specified in API call.

Closes-bug: #1550377
Change-Id: Iccce421f60234bc031f01370319a8918104b099b
2016-03-14 17:43:29 -03:00
..
api Move Share Migration code to Data Service 2016-03-03 09:34:29 -03:00
cmd Moved CORS middleware configuration into oslo-config-generator 2016-03-03 16:13:20 +00:00
common Merge "Moved CORS middleware configuration into oslo-config-generator" 2016-03-07 20:32:44 +00:00
compute Use existing "insecure" options when creating nova/cinder clients 2016-02-12 12:20:42 +01:00
consistency_group Add space to message in manila/consistency_group/api.py 2015-12-17 06:56:43 +00:00
data Move Share Migration code to Data Service 2016-03-03 09:34:29 -03:00
db Move Share Migration code to Data Service 2016-03-03 09:34:29 -03:00
hacking Fix issue in hacking with underscore imports 2016-02-05 08:01:50 +01:00
network LXC/LXD driver 2016-03-02 18:55:22 +04:00
scheduler Move Share Migration code to Data Service 2016-03-03 09:34:29 -03:00
share Fix delete when share not found in update_access 2016-03-14 17:43:29 -03:00
testing Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
tests Fix delete when share not found in update_access 2016-03-14 17:43:29 -03:00
volume Use existing "insecure" options when creating nova/cinder clients 2016-02-12 12:20:42 +01:00
__init__.py Removed ignored checks from tox.ini and fixed pep8 issues 2016-02-14 14:56:55 +02:00
context.py Define context.roles with base class 2016-02-25 19:35:04 +00:00
exception.py Merge "Add share driver for Tegile IntelliFlash Arrays" 2016-03-03 17:14:01 +00:00
i18n.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
manager.py Reuse 'periodic_task' from oslo_service 2015-07-20 19:38:19 +03:00
opts.py Add share driver for Tegile IntelliFlash Arrays 2016-03-03 01:13:54 -08:00
policy.py Use oslo_policy lib instead of oslo-incubator code 2015-04-21 13:05:42 +03:00
quota.py Using dict.items() is better than six.iteritems(dict) 2016-01-19 22:22:48 +08:00
rpc.py Drop use of 'oslo' namespace package 2015-04-29 16:51:33 +03:00
service.py Trivial Fix: fix missing import 2016-01-21 19:36:47 +08:00
test.py Using dict.items() is better than six.iteritems(dict) 2016-01-19 22:22:48 +08:00
utils.py Move Share Migration code to Data Service 2016-03-03 09:34:29 -03:00
version.py Remove vim headers 2014-10-06 15:00:27 +02:00
wsgi.py Moved CORS middleware configuration into oslo-config-generator 2016-03-03 16:13:20 +00:00