Merge "Fix 'Module index' broken HTTP link"
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -43,6 +43,7 @@ output/*/index.html
|
|||||||
|
|
||||||
# Sphinx
|
# Sphinx
|
||||||
doc/build
|
doc/build
|
||||||
|
doc/source/api
|
||||||
|
|
||||||
# pbr generates these
|
# pbr generates these
|
||||||
AUTHORS
|
AUTHORS
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ should implement:
|
|||||||
|
|
||||||
.. autoclass:: BaseStrategy
|
.. autoclass:: BaseStrategy
|
||||||
:members:
|
:members:
|
||||||
|
:noindex:
|
||||||
|
|
||||||
|
|
||||||
Add a new entry point
|
Add a new entry point
|
||||||
@@ -169,6 +170,7 @@ Here below is the abstract ``BaseClusterHistory`` class of the Helper.
|
|||||||
|
|
||||||
.. autoclass:: BaseClusterHistory
|
.. autoclass:: BaseClusterHistory
|
||||||
:members:
|
:members:
|
||||||
|
:noindex:
|
||||||
|
|
||||||
|
|
||||||
The following snippet code shows how to create a Cluster History class:
|
The following snippet code shows how to create a Cluster History class:
|
||||||
|
|||||||
@@ -264,13 +264,6 @@ Please, read `the official OpenStack definition of a Project <http://docs.openst
|
|||||||
|
|
||||||
.. _primitive_definition:
|
.. _primitive_definition:
|
||||||
|
|
||||||
Primitive
|
|
||||||
=========
|
|
||||||
|
|
||||||
.. watcher-term:: watcher.applier.primitives.base
|
|
||||||
|
|
||||||
.. _sla_definition:
|
|
||||||
|
|
||||||
SLA
|
SLA
|
||||||
===
|
===
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,15 @@ Watcher Manual Pages
|
|||||||
|
|
||||||
man/*
|
man/*
|
||||||
|
|
||||||
|
.. # NOTE(mriedem): This is the section where we hide things that we don't
|
||||||
|
# actually want in the table of contents but sphinx build would fail if
|
||||||
|
# they aren't in the toctree somewhere. For example, we hide api/autoindex
|
||||||
|
# since that's already covered with modindex below.
|
||||||
|
.. toctree::
|
||||||
|
:hidden:
|
||||||
|
|
||||||
|
api/autoindex
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
==================
|
==================
|
||||||
|
|||||||
10
setup.cfg
10
setup.cfg
@@ -62,6 +62,16 @@ watcher_workflow_engines =
|
|||||||
watcher_planners =
|
watcher_planners =
|
||||||
default = watcher.decision_engine.planner.default:DefaultPlanner
|
default = watcher.decision_engine.planner.default:DefaultPlanner
|
||||||
|
|
||||||
|
[pbr]
|
||||||
|
autodoc_index_modules = True
|
||||||
|
autodoc_exclude_modules =
|
||||||
|
watcher.db.sqlalchemy.alembic.env
|
||||||
|
watcher.db.sqlalchemy.alembic.versions.*
|
||||||
|
watcher.tests.*
|
||||||
|
watcher_tempest_plugin.*
|
||||||
|
watcher.doc
|
||||||
|
|
||||||
|
|
||||||
[build_sphinx]
|
[build_sphinx]
|
||||||
source-dir = doc/source
|
source-dir = doc/source
|
||||||
build-dir = doc/build
|
build-dir = doc/build
|
||||||
|
|||||||
2
tox.ini
2
tox.ini
@@ -20,12 +20,14 @@ commands =
|
|||||||
commands = flake8
|
commands = flake8
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
|
setenv = PYTHONHASHSEED=0
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = python setup.py testr --coverage --omit="watcher/tests/*" --testr-args='{posargs}'
|
commands = python setup.py testr --coverage --omit="watcher/tests/*" --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
|
setenv = PYTHONHASHSEED=0
|
||||||
commands = python setup.py build_sphinx
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
|
|||||||
@@ -49,12 +49,12 @@ class CeilometerClient(object):
|
|||||||
This query can be then used for querying resources, meters and
|
This query can be then used for querying resources, meters and
|
||||||
statistics.
|
statistics.
|
||||||
:Parameters:
|
:Parameters:
|
||||||
- `user_id`: user_id, has a priority over list of ids
|
- `user_id`: user_id, has a priority over list of ids
|
||||||
- `tenant_id`: tenant_id, has a priority over list of ids
|
- `tenant_id`: tenant_id, has a priority over list of ids
|
||||||
- `resource_id`: resource_id, has a priority over list of ids
|
- `resource_id`: resource_id, has a priority over list of ids
|
||||||
- `user_ids`: list of user_ids
|
- `user_ids`: list of user_ids
|
||||||
- `tenant_ids`: list of tenant_ids
|
- `tenant_ids`: list of tenant_ids
|
||||||
- `resource_ids`: list of resource_ids
|
- `resource_ids`: list of resource_ids
|
||||||
"""
|
"""
|
||||||
|
|
||||||
user_ids = user_ids or []
|
user_ids = user_ids or []
|
||||||
|
|||||||
@@ -76,9 +76,9 @@ class NovaClient(object):
|
|||||||
|
|
||||||
:param instance_id: the unique id of the instance to migrate.
|
:param instance_id: the unique id of the instance to migrate.
|
||||||
:param keep_original_image_name: flag indicating whether the
|
:param keep_original_image_name: flag indicating whether the
|
||||||
image name from which the original instance was built must be
|
image name from which the original instance was built must be
|
||||||
used as the name of the intermediate image used for migration.
|
used as the name of the intermediate image used for migration.
|
||||||
If this flag is False, a temporary image name is built
|
If this flag is False, a temporary image name is built
|
||||||
"""
|
"""
|
||||||
|
|
||||||
new_image_name = ""
|
new_image_name = ""
|
||||||
@@ -438,13 +438,13 @@ class NovaClient(object):
|
|||||||
|
|
||||||
It waits for this image to be in 'active' state before returning.
|
It waits for this image to be in 'active' state before returning.
|
||||||
It returns the unique UUID of the created image if successful,
|
It returns the unique UUID of the created image if successful,
|
||||||
None otherwise
|
None otherwise.
|
||||||
|
|
||||||
:param instance_id: the uniqueid of
|
:param instance_id: the uniqueid of
|
||||||
the instance to backup as an image.
|
the instance to backup as an image.
|
||||||
:param image_name: the name of the image to create.
|
:param image_name: the name of the image to create.
|
||||||
:param metadata: a dictionary containing the list of
|
:param metadata: a dictionary containing the list of
|
||||||
key-value pairs to associate to the image as metadata.
|
key-value pairs to associate to the image as metadata.
|
||||||
"""
|
"""
|
||||||
if self.glance is None:
|
if self.glance is None:
|
||||||
glance_endpoint = self.keystone. \
|
glance_endpoint = self.keystone. \
|
||||||
@@ -568,7 +568,7 @@ class NovaClient(object):
|
|||||||
|
|
||||||
:param instance: instance object.
|
:param instance: instance object.
|
||||||
:param status_list: tuple containing the list of
|
:param status_list: tuple containing the list of
|
||||||
status we are waiting for
|
status we are waiting for
|
||||||
:param retry: how many times to retry
|
:param retry: how many times to retry
|
||||||
:param sleep: seconds to sleep between the retries
|
:param sleep: seconds to sleep between the retries
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ class BasePlanner(object):
|
|||||||
:param solution: the solution given by the strategy to
|
:param solution: the solution given by the strategy to
|
||||||
:param audit_uuid: the audit uuid
|
:param audit_uuid: the audit uuid
|
||||||
:return: ActionPlan ordered sequence of change requests
|
:return: ActionPlan ordered sequence of change requests
|
||||||
such that all security, dependency,
|
such that all security, dependency, and performance
|
||||||
and performance requirements are met.
|
requirements are met.
|
||||||
"""
|
"""
|
||||||
# example: directed acyclic graph
|
# example: directed acyclic graph
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|||||||
@@ -92,13 +92,13 @@ class BaseSolution(object):
|
|||||||
"""Add a new Action in the Action Plan
|
"""Add a new Action in the Action Plan
|
||||||
|
|
||||||
:param action_type: the unique id of an action type defined in
|
:param action_type: the unique id of an action type defined in
|
||||||
entry point 'watcher_actions'
|
entry point 'watcher_actions'
|
||||||
:param applies_to: the unique id of the resource to which the
|
:param applies_to: the unique id of the resource to which the
|
||||||
`Action` applies.
|
`Action` applies.
|
||||||
:param input_parameters: An array of input parameters provided as
|
:param input_parameters: An array of input parameters provided as
|
||||||
key-value pairs of strings.
|
key-value pairs of strings. Each key-pair contains names and
|
||||||
Each key-pair contains names and values that match what was previously
|
values that match what was previously defined in the `Action`
|
||||||
defined in the `Action` type schema.
|
type schema.
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user