Shared filesystem management project for OpenStack.
Go to file
Valeriy Ponomaryov b719d0ffa6 Replace string driver modes with boolean value
Due to unclear meanings of existing names for share drivers modes it was
decided to replace string driver modes with boolean value, since we have only
two possible values that will clearly say what it used for by name of opt.

This replacement includes following changes:
- String opt 'share_driver_mode' is replaced with
bool opt 'driver_handles_share_servers'. New bool opt does not have
default value and should be defined explicitly.
- Class ShareDriver (parent class for share drivers) now expects additional
argument 'driver_handles_share_servers' which is mandatory and should be
provided by child classes. Expected values are boolean or tuple/list/set of
booleans that says what modes are supported. Above new config opt will be
compared to these.
- Update interfaces 'setup_server' and 'teardown_server' of class ShareDriver.
These interfaces now consider driver modes and call new additional private
methods only when driver is enabled to mode with share servers handling.
These new private methods are '_setup_server' and '_teardown_server', they
should be redefined by child classes when share servers should be handled by
Manila.
- To get know current driver mode within child classes just call property
'driver_handles_share_servers'. It can not be changed by child classes and
returns value that is set by config opt with same name.
- Remove methods 'setup_server' and 'teardown_server' from all share drivers,
that do not support handling of share servers.
- Rename methods 'setup_server' and 'teardown_server' to appropriate
private methods for drivers that do support handling of share servers.
- Update unit tests related to all changed places.
- Make Devstack set new mandatory bool opt.

Implements bp rename-driver-modes

Change-Id: I33402959bc4bbc34cfd4d7308ad0a7bcff3669b5
2015-01-22 10:47:40 +00:00
bin Change default migration in "manila-manage db downgrade" command 2015-01-20 13:17:50 +02:00
contrib Replace string driver modes with boolean value 2015-01-22 10:47:40 +00:00
doc Merge "py3: use six.moves.range instead of xrange" 2015-01-08 01:01:01 +00:00
etc Merge "volume" and "share" rootwrap filters into one file 2015-01-05 21:06:42 +08:00
manila Replace string driver modes with boolean value 2015-01-22 10:47:40 +00:00
tools py3: use six.moves.urllib.parse instead of urlparse 2014-12-27 08:51:32 +08:00
.gitignore Add manila.conf.sample to .gitignore 2015-01-20 07:48:11 +00:00
.gitreview Move from stackforge to openstack 2014-09-19 21:23:02 +00:00
.testr.conf Use oslotest.base.BaseTestCase as test base class 2015-01-04 08:43:52 +01:00
CONTRIBUTING.md Workflow documentation is now in infra-manual 2014-12-16 13:13:49 +01:00
HACKING.rst Convert files to use _LE and friends 2014-10-31 09:47:59 +01:00
LICENSE Initialize from cinder 2013-08-08 10:34:06 -04:00
MANIFEST.in Initialize from cinder 2013-08-08 10:34:06 -04:00
README.rst Rename stackforge to openstack in docs 2014-09-20 09:20:11 +03:00
babel.cfg Initialize from cinder 2013-08-08 10:34:06 -04:00
openstack-common.conf Merge "Remove unused sslutils module" 2015-01-06 04:31:41 +00:00
pylintrc docs 2013-09-17 10:57:47 +03:00
requirements.txt Updated from global requirements 2015-01-15 02:17:04 +00:00
run_tests.sh Use lockutils from "oslo concurrency" lib 2014-12-26 15:19:46 +02:00
setup.cfg Set pbr 'warnerrors' option for doc build 2015-01-07 17:46:14 +01:00
setup.py Sync with global requirements 2014-07-14 11:15:21 +02:00
test-requirements.txt Fix metadata validation in share api 2014-12-12 18:39:28 +02:00
tox.ini Merge "Silence tox warning" 2014-10-27 01:24:45 +00:00

README.rst

The Choose Your Own Adventure README for Manila

You have come across an OpenStack shared filesystem service. It has identified itself as "Manila." It was abstracted from the Cinder project.

To monitor it from a distance: follow @openstack on twitter.

To tame it for use in your own cloud: read http://docs.openstack.org

To study its anatomy: read https://wiki.openstack.org/wiki/Manila

To dissect it in detail: visit http://github.com/openstack/manila

To taunt it with its weaknesses: use http://bugs.launchpad.net/manila

To watch it: http://jenkins.openstack.org

To hack at it: read HACKING.rst

To cry over its pylint problems: http://jenkins.openstack.org/job/manila-pylint/violations