When share is deleted in the backend, user is unable to delete
share because of error thrown in update_access(). Make backend raise
ShareResourceNotFound exception in case share not found during
"update_access" operation, because share manager expects it for
proper handling of share deletion, thus allowing share to be
deleted in this case, without having to use force-delete.
After add ShareResourceNotFound exception, it will need a parameter
named share id(share['id']), so add share id to share info in
create_share_from_snapshot function.
Reviewed: https:/ /review. openstack. org/320257 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=548975ee2d3 72f8374697e3d83 8e0b62cf2c6310
Committed: https:/
Submitter: Jenkins
Branch: master
commit 548975ee2d372f8 374697e3d838e0b 62cf2c6310
Author: zhongjun <email address hidden>
Date: Tue May 24 15:26:01 2016 +0800
Huawei: Fix exception in update_access not found
When share is deleted in the backend, user is unable to delete ceNotFound exception in case share not found during
share because of error thrown in update_access(). Make backend raise
ShareResour
"update_access" operation, because share manager expects it for
proper handling of share deletion, thus allowing share to be
deleted in this case, without having to use force-delete.
After add ShareResourceNo tFound exception, it will need a parameter share_from_ snapshot function.
named share id(share['id']), so add share id to share info in
create_
Change-Id: I9756ff882e6960 b07f5f0abac9405 7c687830ad0
Closes-Bug: #1585035