RemoteFS Config Improvements¶
RemoteFS drivers (NFS, GlusterFS, etc.) are currently configured by adding a list of shares to a text config file which is referenced by cinder.conf. This means that one driver instance manages a handful of storage locations for the driver. This work will a) have these drivers configured like most other Cinder drivers are, and b) leverage the Cinder scheduler for selection between different storage backends rather than having the driver act as a pseudo-scheduler.
- The configuration system for NFS/GlusterFS/etc drivers:
is different from other drivers
is more complex than necessary
limits functionality such as migration
Replace the <x>_shares_config setting with settings that can be used to login to the storage platforms. This means that an nfs_shares_config file such as:
192.168.1.10:/export1 -o sync
192.168.1.11:/export2 -o vers=nfs4
would become, in cinder.conf:
address = 192.168.1.10
export_path = /export1
options = -o sync
address = 192.168.1.11
export_path = /export2
options = -o vers=nfs4
Each Cinder backend will then only manage one export rather than a handful of exports. This brings the RemoteFS drivers closer to how other Cinder drivers operate.
Leave things as they are today. (Not desirable.)
Data model impact¶
REST API impact¶
Other end user impact¶
It will be possible to use Cinder volume migration to move volumes between all NFS exports when previously this was not always possible (since the different exports were managed by the same driver instance).
Other deployer impact¶
nfs_shares_config, glusterfs_shares_config, etc., will be deprecated (but still functional for Kilo). Setting the new options will cause these settings to be ignored.
- Primary assignee:
- Other contributors:
Other interested parties?
Create new options for address, export, mount options
Mark options and code to be removed in L as deprecated in Kilo
The NFS driver and GlusterFS drivers will be gaining CI during the Kilo cycle which will cover this.
Manual testing should cover both the current and new configuration paths.
New configuration options and possibly guide changes for configuring the NFS driver.