[Unity]: Failed to enabled ACE for share

It is no need to enable ACE when creating CIFS share, so
remove this process.

Change-Id: Id9d248857c9a02eca486185d41b1fc22520d0919
Closes-bug: #1841035
This commit is contained in:
Yong Huang 2020-04-26 16:47:22 +00:00
parent 3b36160199
commit 47b90fa8fb
3 changed files with 10 additions and 10 deletions

View File

@ -47,15 +47,7 @@ class UnityClient(object):
:return: UnityCifsShare object
"""
try:
share = resource.create_cifs_share(share_name)
try:
# bug on unity: the enable ace API has bug for snap
# based share. Log the internal error if it happens.
share.enable_ace()
except storops_ex.UnityException:
msg = ('Failed to enabled ACE for share: {}.')
LOG.exception(msg.format(share_name))
return share
return resource.create_cifs_share(share_name)
except storops_ex.UnitySmbShareNameExistedError:
return self.get_share(share_name, 'CIFS')

View File

@ -43,9 +43,10 @@ from manila import utils
7.0.2 - Bugfix: failed to delete CIFS share if wrong access was set
8.0.0 - Supports manage/unmanage share server/share/snapshot
9.0.0 - Implements default filter function
9.0.1 - Bugfix: remove enable ace process when creating cifs share
"""
VERSION = "9.0.0"
VERSION = "9.0.1"
LOG = log.getLogger(__name__)
SUPPORTED_NETWORK_TYPES = (None, 'flat', 'vlan')

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Dell EMC Unity Driver: Fixes `bug 1841035
<https://bugs.launchpad.net/manila/+bug/1841035>`__ to avoid lots of error
messages displayed in logs.