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

This commit is contained in:
Zuul 2024-06-26 23:25:59 +00:00 committed by Gerrit Code Review
commit 43131973e0
2 changed files with 18 additions and 1 deletions

View File

@ -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
from oslo_utils import uuidutils
@ -2053,7 +2054,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(

View File

@ -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.