[NetApp] Support NFS shares on windows

Set following 4 attributes when creating nfs shares:
    showmount:          enabled
    v3-ms-dos-client:   support
    v3-connection-drop: disable
    ejukebox-errors:    disable

Change-Id: I86c3de32d36940e85545fcb337723e4b3edce216
Closes-bug: 1901937
Co-authored-by: Maurice Escher <maurice.escher@sap.com>
This commit is contained in:
Chuan Miao 2019-02-21 10:40:42 +01:00 committed by Maurice Escher
parent 179b26f5dc
commit 5e01d9e292
No known key found for this signature in database
GPG Key ID: CC56DEC23EE46750
3 changed files with 13 additions and 0 deletions

View File

@ -1466,6 +1466,10 @@ class NetAppCmodeClient(client_base.NetAppBaseClient):
'is-nfsv3-enabled': nfs3,
'is-nfsv40-enabled': nfs40,
'is-nfsv41-enabled': nfs41,
'showmount': 'true',
'is-v3-ms-dos-client-enabled': 'true',
'is-nfsv3-connection-drop-enabled': 'false',
'enable-ejukebox': 'false',
}
self.send_request('nfs-service-modify', nfs_service_modify_args)

View File

@ -2462,6 +2462,10 @@ class NetAppClientCmodeTestCase(test.TestCase):
'is-nfsv3-enabled': 'true' if v3 else 'false',
'is-nfsv40-enabled': 'true' if v40 else 'false',
'is-nfsv41-enabled': 'true' if v41 else 'false',
'showmount': 'true',
'is-v3-ms-dos-client-enabled': 'true',
'is-nfsv3-connection-drop-enabled': 'false',
'enable-ejukebox': 'false',
}
self.client.send_request.assert_called_once_with(
'nfs-service-modify', nfs_service_modify_args)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
The NetApp cDOT driver now sets the required NFS options for clients running
Windows operating systems with NFSv3 support.