Fixed bug 2069125: Manila driver error with ONTAP SVM-scoped user

Fixed the issue for the NetApp driver in the ZAPI workflow where a
Vserver-scoped user failed to add rules for a share when the
Vserver LIF was not configured with Kerberos.

Closes-Bug: #2069125
Change-Id: I8544efbdac207c54d75c55ee4a039c5324433794
(cherry picked from commit 232627db3b39163cfbef00d1e625fcd9a524253a)
(cherry picked from commit 44df1ec42ddc044592b6bdcbe685311677bbbceb)
(cherry picked from commit 78b4978992b60b9be5170753d3076b439b81bb42)
(cherry picked from commit 0e3523e1168e632618dc3ed550869e42b3979aaa)
(cherry picked from commit 356071ba7060487a2d6658ab75c9b7b4d1d0149f)
(cherry picked from commit 2aba4ca70e7f4b01c7b65c62b91b603a3ef9ddbe)
This commit is contained in:
agireesh 2024-06-26 17:36:01 +05:30 committed by Carlos Eduardo
parent 68608563da
commit b2b152d93c
2 changed files with 18 additions and 1 deletions

@ -22,6 +22,7 @@ import re
import time
from oslo_log import log
from oslo_utils import excutils
from oslo_utils import strutils
from oslo_utils import units
import six
@ -1893,7 +1894,15 @@ class NetAppCmodeClient(client_base.NetAppBaseClient):
}
}
}
result = self.send_request('kerberos-config-get', api_args)
result = None
# Catch the exception in case kerberos is not configured with LIF.
try:
result = self.send_request('kerberos-config-get', api_args)
except netapp_api.NaApiError as e:
with excutils.save_and_reraise_exception() as exc_context:
if "entry doesn't exist" in e.message:
exc_context.reraise = False
return False
attributes = result.get_child_by_name('attributes')
kerberos_info = attributes.get_child_by_name(

@ -0,0 +1,8 @@
---
fixes:
- |
NetApp driver `bug #2069125
<https://bugs.launchpad.net/manila/+bug/2069125>`_:
Fixed the issue for the NetApp ONTAP driver in the ZAPI workflow,
where certain vserver accounts failed to add access rules for a share
when the vserver network interface was not configured with kerberos.