GPFS: Changing default value of NFS server type

Spectrum Scale provide NFS service with Ganesha server
by default (protocol node). So altering the default value
of NFS server for easiness.

Implements: blueprint gpfs-nfs-server-type-default-value-change

Change-Id: I2e3adeca58505c2da4a5675f7342bb2a174078cc
This commit is contained in:
digvijay2016 2017-06-07 17:24:13 +05:30
parent ff9f489580
commit 32a5a088a9
3 changed files with 11 additions and 5 deletions

View File

@ -66,9 +66,9 @@ gpfs_share_opts = [
default='$state_path/mnt', default='$state_path/mnt',
help='Base folder where exported shares are located.'), help='Base folder where exported shares are located.'),
cfg.StrOpt('gpfs_nfs_server_type', cfg.StrOpt('gpfs_nfs_server_type',
default='KNFS', default='CES',
help=('NFS Server type. Valid choices are "KNFS" (kernel NFS) ' help=('NFS Server type. Valid choices are "CES" (Ganesha NFS) '
'or "CES" (Ganesha NFS).')), 'or "KNFS" (Kernel NFS).')),
cfg.ListOpt('gpfs_nfs_server_list', cfg.ListOpt('gpfs_nfs_server_list',
help=('A list of the fully qualified NFS server names that ' help=('A list of the fully qualified NFS server names that '
'make up the OpenStack Manila configuration.')), 'make up the OpenStack Manila configuration.')),

View File

@ -75,7 +75,7 @@ mmcesnfslsexport:nfsexports:HEADER:version:reserved:reserved:Path:Delegations:Cl
self.mock_object(gpfs.os.path, 'exists', mock.Mock(return_value=True)) self.mock_object(gpfs.os.path, 'exists', mock.Mock(return_value=True))
self._driver._helpers = { self._driver._helpers = {
'KNFS': self._helper_fake 'CES': self._helper_fake
} }
self.share = fake_share.fake_share(share_proto='NFS', self.share = fake_share.fake_share(share_proto='NFS',
host='fakehost@fakehost#GPFS') host='fakehost@fakehost#GPFS')
@ -216,7 +216,7 @@ mmcesnfslsexport:nfsexports:HEADER:version:reserved:reserved:Path:Delegations:Cl
def test_setup_helpers(self): def test_setup_helpers(self):
self._driver._helpers = {} self._driver._helpers = {}
CONF.set_default('gpfs_share_helpers', ['KNFS=fakenfs']) CONF.set_default('gpfs_share_helpers', ['CES=fakenfs'])
self.mock_object(gpfs.importutils, 'import_class', self.mock_object(gpfs.importutils, 'import_class',
mock.Mock(return_value=self._helper_fake)) mock.Mock(return_value=self._helper_fake))
self._driver._setup_helpers() self._driver._setup_helpers()

View File

@ -0,0 +1,6 @@
---
other:
- |
Changing the default value of 'gpfs_nfs_server_type' configuration
parameter from KNFS to CES as Spectrum Scale provide NFS service with
Ganesha server by default.