
When running a delete CG operation on a MySQL DB engine we'll get an error from the DB: "You can't specify target table 'consistencygroups' for update in FROM clause". This is caused by a non standard behavior only in MySQL, as SQLite and PostgreSQL work as expected, on filter `cg_creating_from_src` that checks that we are not using the CG we are trying to delete to create another CG at this very moment, CGs that were previously created from this CG are not considered. This patch changes the way we perform the filter using a select subquery as a workaround for MySQL unexpected behavior and updates devref to warn about this unexpected MySQL behavior. Change-Id: Ic10de411ffeceb00f1e8525906995bd8b2f49777 Closes-Bug: #1588487
Building the docs
Dependencies
- Sphinx
-
You'll need sphinx (the python one) and if you are using the virtualenv you'll need to install it in the virtualenv specifically so that it can load the cinder modules.
pip install Sphinx
- Graphviz
-
Some of the diagrams are generated using the
dot
language from Graphviz.sudo apt-get install graphviz
Use make
Just type make:
% make
Look in the Makefile for more targets.
Manually
Generate the code.rst file so that Sphinx will pull in our docstrings:
% ./generate_autodoc_index.sh > source/code.rst
Run `sphinx_build`:
% sphinx-build -b html source build/html
Use tox
The easiest way to build the docs and avoid dealing with all dependencies is to let tox prepare a virtualenv and run the build_sphinx target inside the virtualenv:
% cd ..
% tox -e docs
The docs have been built
Check out the build directory to find them. Yay!