cthulhu: spelling, log boilerplate errors in pool_request_factory.py

Signed-off-by: Dan Mick <dan.mick@inktank.com>
cthulhu: set appropriate min_size on pool create/update

Use an algorithm similar to Ceph's: requested min_size or
default, compare to size, use whichever is smaller; or if
no requested *or* default, use size - size/2.

On update, only recalculate min_size if size or min_size is given.

Fixes: #8820
Signed-off-by: Dan Mick <dan.mick@inktank.com>
tests: try several pool min_size updates relative to size

Signed-off-by: Dan Mick <dan.mick@inktank.com>
doc: note special handling of min_size in pool create/modify

Signed-off-by: Dan Mick <dan.mick@inktank.com>
doc: missing module level in manhole notes

Signed-off-by: Dan Mick <dan.mick@inktank.com>
doc: update restapi docs

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Merge pull request #194 from ceph/wip-8820

Squashed series from wip-8820
fix calamari-ctl initialize error "TEMPLATE_DIRS setting must be a tuple"

When setting calamari according to "http://calamari.readthedocs.org/en/latest/development/dev_env.html", by executing "CALAMARI_CONFIG=dev/calamari.conf calamari-ctl initialize", error happens.
Log in /tmp shows: "ImproperlyConfigured: The TEMPLATE_DIRS setting must be a tuple. Please fix your settings.".
Cause: TEMPLATE_DIRS here in settings.py is one element tuple which should have a comma.
Environment: Python 2.7.6, Ubuntu Trusty.

Signed-off-by: Xan Peng xanpeng@gmail.com

Closes #196