glusterfs_native: relocate module under glusterfs

Having a driver in the top level of the drivers
directory was against source tree placement
conventions. It was especially weird because
all other GlusterFS related code lived in
a dedicated subdirectory.

Partially implements bp gluster-code-cleanup

Change-Id: I52d717ab6396454c2e7a9b62aa00ea443b26d5cc
This commit is contained in:
Csaba Henk 2016-02-16 22:15:29 +01:00
parent 21cc6fea34
commit 1fda615f6f
5 changed files with 12 additions and 9 deletions

View File

@ -72,7 +72,7 @@ Manila driver configuration setting
The following parameters in manila's configuration file need to be set: The following parameters in manila's configuration file need to be set:
- `share_driver` = - `share_driver` =
manila.share.drivers.glusterfs_native.GlusterfsNativeShareDriver manila.share.drivers.glusterfs.glusterfs_native.GlusterfsNativeShareDriver
- `glusterfs_servers` = List of GlusterFS servers which provide volumes - `glusterfs_servers` = List of GlusterFS servers which provide volumes
that can be used to create shares. The servers are expected to be of that can be used to create shares. The servers are expected to be of
distinct Gluster clusters (ie. should not be gluster peers). Each server distinct Gluster clusters (ie. should not be gluster peers). Each server
@ -138,10 +138,10 @@ Known Restrictions
- For manila to use GlusterFS volumes, the name of the trashcan directory in - For manila to use GlusterFS volumes, the name of the trashcan directory in
GlusterFS volumes must not be changed from the default. GlusterFS volumes must not be changed from the default.
The :mod:`manila.share.drivers.glusterfs_native.GlusterfsNativeShareDriver` Module The :mod:`manila.share.drivers.glusterfs.glusterfs_native.GlusterfsNativeShareDriver` Module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. automodule:: manila.share.drivers.glusterfs_native .. automodule:: manila.share.drivers.glusterfs.glusterfs_native
:noindex: :noindex:
:members: :members:
:undoc-members: :undoc-members:

View File

@ -59,7 +59,7 @@ mkdir: CommandFilter, mkdir, root
rm: CommandFilter, rm, root rm: CommandFilter, rm, root
# manila/share/drivers/glusterfs.py: 'mount', '-t', 'glusterfs', '%s', '%s' # manila/share/drivers/glusterfs.py: 'mount', '-t', 'glusterfs', '%s', '%s'
# manila/share/drivers/glusterfs_native.py: 'mount', '-t', 'glusterfs', '%s', '%s' # manila/share/drivers/glusterfs/glusterfs_native.py: 'mount', '-t', 'glusterfs', '%s', '%s'
mount: CommandFilter, mount, root mount: CommandFilter, mount, root
# manila/share/drivers/glusterfs.py: 'gluster', '--xml', 'volume', 'info', '%s' # manila/share/drivers/glusterfs.py: 'gluster', '--xml', 'volume', 'info', '%s'
@ -72,11 +72,11 @@ ip: CommandFilter, ip, root
# manila/network/linux/interface.py: 'ovs-vsctl', 'add-port', '%s', '%s' # manila/network/linux/interface.py: 'ovs-vsctl', 'add-port', '%s', '%s'
ovs-vsctl: CommandFilter, ovs-vsctl, root ovs-vsctl: CommandFilter, ovs-vsctl, root
# manila/share/drivers/glusterfs_native.py: 'find', '%s', '-mindepth', '1', '!', '-path', '%s', '!', '-path', '%s', '-delete' # manila/share/drivers/glusterfs/glusterfs_native.py: 'find', '%s', '-mindepth', '1', '!', '-path', '%s', '!', '-path', '%s', '-delete'
# manila/share/drivers/glusterfs_native.py: 'find', '%s', '-mindepth', '1', '-delete' # manila/share/drivers/glusterfs/glusterfs_native.py: 'find', '%s', '-mindepth', '1', '-delete'
find: CommandFilter, find, root find: CommandFilter, find, root
# manila/share/drivers/glusterfs_native.py: 'umount', '%s' # manila/share/drivers/glusterfs/glusterfs_native.py: 'umount', '%s'
umount: CommandFilter, umount, root umount: CommandFilter, umount, root
# GPFS commands # GPFS commands

View File

@ -107,6 +107,9 @@ MAPPING = {
'manila.share.drivers.netapp.common.NetAppDriver', 'manila.share.drivers.netapp.common.NetAppDriver',
'manila.share.drivers.hp.hp_3par_driver.HP3ParShareDriver': 'manila.share.drivers.hp.hp_3par_driver.HP3ParShareDriver':
'manila.share.drivers.hpe.hpe_3par_driver.HPE3ParShareDriver', 'manila.share.drivers.hpe.hpe_3par_driver.HPE3ParShareDriver',
'manila.share.drivers.glusterfs_native.GlusterfsNativeShareDriver':
'manila.share.drivers.glusterfs.glusterfs_native.'
'GlusterfsNativeShareDriver',
} }
QUOTAS = quota.QUOTAS QUOTAS = quota.QUOTAS

View File

@ -27,7 +27,7 @@ from manila import context
from manila import exception from manila import exception
from manila.share import configuration as config from manila.share import configuration as config
from manila.share.drivers.glusterfs import common from manila.share.drivers.glusterfs import common
from manila.share.drivers import glusterfs_native from manila.share.drivers.glusterfs import glusterfs_native
from manila import test from manila import test
from manila.tests import fake_utils from manila.tests import fake_utils