b719d0ffa6
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 |
||
---|---|---|
bin | ||
contrib | ||
doc | ||
etc | ||
manila | ||
tools | ||
.gitignore | ||
.gitreview | ||
.testr.conf | ||
CONTRIBUTING.md | ||
HACKING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
babel.cfg | ||
openstack-common.conf | ||
pylintrc | ||
requirements.txt | ||
run_tests.sh | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
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