47 Commits

Author SHA1 Message Date
Ben Nemec
19c0a0b468 Switch to autodoc_default_options
autodoc_default_flags was deprecated and is now triggering a warning
that breaks our builds. Switch to the equivalent autodoc_default_options
configuration, which essentially turns the flags into dict keys that
map to None[1]: 'Setting None is equivalent to giving the option name
in the list format (i.e. it means “yes/true/on”).'

Change-Id: I573f19a054e535a90db8bb16a02b2c7f28d8e6d1
1: http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#confval-autodoc_default_options
2018-09-18 00:37:30 +00:00
Doug Hellmann
bb234731d3 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Decode the output of subprocess in doc/source/conf.py so that we always
have a string.

Change-Id: I17601d56b6e6d9d300bb07d8982a7bbde637822e
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 16:18:21 -04:00
Andreas Jaeger
e7afb739bf Add doc/requirements.txt
Fix doc building with new PTI changes and job updates.

Add a doc/requirements.txt file with all needed dependencies.

Change-Id: Ic7963520aeb0b9c463c4f9b5675589308720d6f8
2017-12-20 12:14:08 +01:00
Akihiro Motoki
ee6f82d9d5 doc: use list-table for driver support tables
list-table is easier to be maintained.

In addition, we avoid too long lines.
We no longer have too long lines which doc8 complains,
so doc8 ignore_path can be dropped.

Change-Id: I574391295288ef9e33744aa608c2f2930a6e46f8
2017-07-10 12:44:29 +00:00
Akihiro Motoki
2ca15fedbe rearrange existing documentation to fit the new standard layout
Change-Id: If03b33fc1393c3a04d7d155b31e8377dc9e09360
2017-07-10 12:41:52 +00:00
Akihiro Motoki
38bcf7bbdb Switch from oslosphinx to openstackdocstheme
Change-Id: Id5e2952676e89f768e13b4ffc2f238eb012ec324
2017-07-07 02:54:25 +00:00
Akihiro Motoki
cf12457896 Turn on warning-is-error in doc build
- Update sphinx so that warning-is-error option is available
- Fix sphinx warnings
- Install python modules required for automodule into docs env
- Fix docstring warning in tooz/coordination.py
- pbr warnerrors is no longer needed in favor of sphinx warning-is-error

Change-Id: I5d54c452522b6ee00884d7d17105af22b4c95189
2017-07-07 02:52:30 +00:00
Julien Danjou
ba62597183 doc: update heartbeat doc to use start_heart=True
Change-Id: I5560b1ec1da7922586e5544d55b5e508c70a33fc
2017-04-27 16:40:57 +02:00
Julien Danjou
9ad740fa1e Add partitioner implementation
Add a new object called `Partitioner' which is based on the consistent
hashring implementation of tooz.hashring. The coordinator API allows to
create such an object and to use it to dispatch objects ownership across
several workers.

Change-Id: Iae8c861d5b6c15b714f1ec3bd7090d15dd468421
2017-01-01 19:03:40 +01:00
Julien Danjou
f3dddcffdd Stop making tooz.utils depending on tooz.coordination
Change-Id: I5fdb1174ae1a2a84412f3b3159ad5835b2f7359f
2017-01-01 18:47:16 +01:00
Julien Danjou
e29ca79ed9 Add a hashring implementation
This is a consistent hash ring implementation based on the one that can
be found in Nova, Ironic, Ceilometer and Aodh.

Change-Id: I5d2f4efcd354a187747fa645482db2029a1a14b7
2016-12-07 23:40:35 +01:00
Julien Danjou
04866ab9c3 Move ToozError to root module
Change-Id: I73b1c5a37b75991f79d8a5fb383c605689503333
2016-12-07 23:40:35 +01:00
Joshua Harlow
170680e93c Add docs for new consul driver
Change-Id: Ica007008d95cf2c9e5917b7258b793179ed63e1d
2016-06-13 14:16:03 -07:00
Jenkins
6daa485eeb Merge "Ensure etcd is in developer and driver docs" 2016-06-09 07:16:02 +00:00
Victor Morales
0f4e1198fd Fix coordinator typo
s/coordinataor/coordinator

Change-Id: I42e679663fca9577a0fa48962460083bcf4954c5
2016-05-24 14:33:12 -05:00
Joshua Harlow
601fb264c5 Ensure etcd is in developer and driver docs
Change-Id: I2da690a7ea93646e38d86f90168571abaab69067
2016-05-12 22:32:30 -07:00
Jenkins
349834f39c Merge "Add programatic introspection of drivers characteristic(s)" 2016-01-08 17:02:01 +00:00
Joshua Harlow
a3f22fe90c Add programatic introspection of drivers characteristic(s)
Change-Id: Icf187db9ba7d076b1a0f3cc9343acb0eaa1862cb
2016-01-07 12:38:15 -08:00
Jenkins
dbde7f4787 Merge "etcd: driver with lock support" 2016-01-04 14:54:23 +00:00
Julien Danjou
d2529173ec etcd: driver with lock support
Change-Id: Ibac90b9b2a751eb4f502e2f8b723e5608dcaad18
2015-12-29 10:02:05 +01:00
Joshua Harlow
ed7cf36f5b Remove tested under 2.6 from docs
We haven't tested under 2.6 in a while so remove
it from being mentioned in the docs.

Change-Id: I2bba68f1b2a2c7d51ecaac1a75808ec957bb0db1
2015-12-19 17:40:57 -08:00
Joshua Harlow
24621a5d20 Spice up the driver summary/info page
Start to organize this page with a more helpful structure
that will allow people to read it and figure out which driver
best fits there usage (and to help people decide which ones
don't).

Change-Id: I871d2eb7e7493a6633f7738ff063042d39690364
2015-12-17 13:06:17 -08:00
Joshua Harlow
8482fad4ff Include changelog/history in docs
Change-Id: Ic68fc583338c48f829cd36c21e1c2fe654022bf5
2015-09-24 15:06:05 -07:00
Jay Clark
3fca529ea3 Changes to add driver list to the documentation.
Change-Id: Ic3c8273813c5147ca9203e761d4ade43d3c2ad31
2015-08-26 15:01:41 +00:00
Joshua Harlow
5dc4f3d107 Update compatibility matrix due to file drivers new abilities
This also fixes the redis driver matrix since it now does have
leadership support.

Change-Id: I8f2f075a3d70df75b649dc3f5715ab22953d659f
2015-06-27 09:46:54 -07:00
Vilobh Meshram
a5e7d57c1e Typo in Locking doc
Fixes typo in the developer doc for lock.

Change-Id: I5bc682d162e9a5c648168ff39e8fffe78b99e04f
2015-04-28 11:28:53 -07:00
Joshua Harlow
a890d34265 Add exception docs to developer docs
Change-Id: Ie58db0660f5dad1b5bf14edf4512226648829980
2015-04-15 08:56:47 -07:00
Joshua Harlow
6569329e9b Beef up the docstrings on the various drivers
Change-Id: I1ca05629cc5f28c1248767bb18384a29801bece2
2015-04-08 12:35:07 -07:00
Joshua Harlow
5dc82132ed Denote that 2.6 testing is still happening
Since we run 2.6 CI tests (and the setup.cfg
classifiers so we support 2.6); we might as well mention
this in the docs.

Change-Id: I9b59378f717f7df280c429a53d0a83c129327481
2015-04-01 14:31:29 -07:00
Joshua Harlow
bb00a5beee Add a driver feature compatibility matrix
Change-Id: I8c5e58fbfa6da53a334ca43829d02d765f85a3fd
2015-03-09 18:34:00 -07:00
Julien Danjou
405dfec672 Add a file based driver
Change-Id: Ie299a8a27045526c27907cdf97b8a240325d908c
2015-01-16 10:31:13 +01:00
Chris Dent
886aa622b0 Update sentinel support to allow multiple sentinel hosts
Multiple sentinel hosts are now allowed by listing the additional
hosts as multiple 'sentinel_fallback' parameters. These are combined
with the first sentinel host to create a list that is provided to
Sentinel class constructor.

This provides safety in the case when the first (or any other) sentinel
host goes down.

Tests are run twice: once with fallbacks, once without.

Change-Id: Ie0a134f02617e8552a87c8bcd49996daaba07f4e
2015-01-12 14:18:53 +00:00
Chris Dent
a2216e383e Add support for an optional redis-sentinel
If sentinel support is desired then the connection URI should take
the form:

   redis://<sentinel host>:<sentinel port>?sentinel=<master name>

This will be parsed to connect to a Sentinel server to discover a
master. The response will be used to make a connection to the
current master.

The setup-sentinel-env.sh script will exit with an error if either
the redis-server or sentinel cannot be found. When the script is
done it will clean up the mess it makes.

Change-Id: I205ed88c72587d9f5f916d344c44192bee2aa41a
2015-01-07 12:16:59 +01:00
Jenkins
7debf06f04 Merge "Add create/join/leave group support in IPC driver" 2014-12-26 10:45:50 +00:00
Joshua Harlow
4c2996525f A few more documentation tweaks
- Capitalize tooz where appropriate.
- Adjust contents to be an actual header.
- Add a footnote that states tooz can be generally useful
  for anyone (and not just openstack projects); this was taken
  from taskflows similar footnote.

Change-Id: I9b4e0304483e2c7155f4d5107fd2967ed2c8d1a4
2014-12-18 13:19:30 -08:00
Jenkins
80162be3db Merge "Update links + python version supported" 2014-12-18 20:03:09 +00:00
Julien Danjou
1ac3e8314b Add create/join/leave group support in IPC driver
Change-Id: I8f8767c02e4b64c873a3a5d6c198148ea50baf6b
2014-12-15 10:21:06 +01:00
Joshua Harlow
836fec02da Add driver autogenerated docs
Start to add/build a developer oriented doc that
can be further refined to explain to developers how
to use the different tooz drivers (and what the varying
drivers capabilities are).

Change-Id: I49f6bf5b397d6bc5426c074f6196c764c8938d23
2014-12-09 21:25:20 -08:00
Joshua Harlow
7b93dc7182 Update links + python version supported
Use the right git link and the tested python versions.

Change-Id: Id1b244671e3aec982bdf713a38ff8fae22ac8dfe
2014-12-09 16:40:20 -08:00
Joshua Harlow
1b45419b3e Switch to using oslosphinx
Adjust the docs to generate in the common OpenStack
format using the common OpenStack theme.

Also adjust the copyright to now be the 'OpenStack
Foundation' instead of being 'eNovance' now that
this code is under the openstack repositories.

Change-Id: I4026e80a1c98a8052d306d104bc92c70a3a36c3e
2014-12-08 17:22:13 -08:00
Jenkins
e96fa3e2bc Merge "doc: add locking" 2014-11-18 18:39:48 +00:00
Julien Danjou
3d89198c18 doc: add missing new drivers
Change-Id: I3cd71e773e6a063f2eebc5f0f24e22cc2bae030b
2014-11-18 16:29:01 +01:00
Julien Danjou
2d008d05a6 doc: add locking
Change-Id: I1de6356700a8fb2903b7627fd890a6a5532c256d
2014-11-18 15:35:32 +01:00
Joshua Harlow
781fb760a6 Add doc8 to the py27 test running
To ensure the docs are style checked add in doc8 to the
py27 tox environment so that the docs will be checked.

This also adjusts the one issue that was found in one
of the rst files.

Change-Id: Iea38d4ac53d9c5255e0694a840c38b04530890ce
2014-09-16 16:44:41 -07:00
Julien Danjou
3981a3a300 Switch to a custom NotImplemented error
Some code in the drivers might actually raise the standard
NotImplemented error, and that would be a bug to skip a test if that was
the case. In that case we want the test to fail.

So let's switch to a custom exception that is used to skip the test if
it's raised.

Change-Id: Ideafee0b1f008ff32724fb98d6a477bd3976104d
2014-09-12 11:20:17 +02:00
Julien Danjou
f3e11e40f9 coordination: add IPC driver
For now it only supports locking.

Change-Id: Iccbc1da162e70d0186131adc0ac9cfeb20f7a647
2014-08-04 15:03:06 +02:00
Julien Danjou
fc85db067a Add documentation
Change-Id: Ib236d2061f5f375f7314993db7e6fc38d0f8750b
2014-07-18 15:08:14 +02:00