Fix Warnings generated while building of HTML docu
Same ID have been set to reference different RST blocks. To avoid this, I added the prefix 'archi_' within ID referencing architecture RST block. Bad indentation warnings have been fixed. Change-Id: I17f43f2f564ffd83fd5c345aed96fad06ee56b1d Partial-Bug: #1522034
This commit is contained in:
@@ -51,7 +51,7 @@ MongoDB,...) but will probably be more performant when using
|
|||||||
which are optimized for handling time series data, which are arrays of numbers
|
which are optimized for handling time series data, which are arrays of numbers
|
||||||
indexed by time (a datetime or a datetime range).
|
indexed by time (a datetime or a datetime range).
|
||||||
|
|
||||||
.. _watcher_api_definition:
|
.. _archi_watcher_api_definition:
|
||||||
|
|
||||||
Watcher API
|
Watcher API
|
||||||
-----------
|
-----------
|
||||||
@@ -63,13 +63,13 @@ It enables the :ref:`Administrator <administrator_definition>` of a
|
|||||||
:ref:`Cluster <cluster_definition>` to control and monitor the Watcher system
|
:ref:`Cluster <cluster_definition>` to control and monitor the Watcher system
|
||||||
via any interaction mechanism connected to this API:
|
via any interaction mechanism connected to this API:
|
||||||
|
|
||||||
- :ref:`CLI <watcher_cli_definition>`
|
- :ref:`CLI <archi_watcher_cli_definition>`
|
||||||
- Horizon plugin
|
- Horizon plugin
|
||||||
- Python SDK
|
- Python SDK
|
||||||
|
|
||||||
You can also read the detailed description of `Watcher API`_.
|
You can also read the detailed description of `Watcher API`_.
|
||||||
|
|
||||||
.. _watcher_applier_definition:
|
.. _archi_watcher_applier_definition:
|
||||||
|
|
||||||
Watcher Applier
|
Watcher Applier
|
||||||
---------------
|
---------------
|
||||||
@@ -111,7 +111,7 @@ If the :ref:`Action <action_definition>` fails, the
|
|||||||
previous state of the :ref:`Managed resource <managed_resource_definition>`
|
previous state of the :ref:`Managed resource <managed_resource_definition>`
|
||||||
(i.e. before the command was sent to the underlying OpenStack service).
|
(i.e. before the command was sent to the underlying OpenStack service).
|
||||||
|
|
||||||
.. _watcher_cli_definition:
|
.. _archi_watcher_cli_definition:
|
||||||
|
|
||||||
Watcher CLI
|
Watcher CLI
|
||||||
-----------
|
-----------
|
||||||
@@ -121,14 +121,14 @@ Watcher system in order to control it or to know its current status.
|
|||||||
|
|
||||||
Please, read `the detailed documentation about Watcher CLI <https://factory.b-com.com/www/watcher/doc/python-watcherclient/>`_
|
Please, read `the detailed documentation about Watcher CLI <https://factory.b-com.com/www/watcher/doc/python-watcherclient/>`_
|
||||||
|
|
||||||
.. _watcher_database_definition:
|
.. _archi_watcher_database_definition:
|
||||||
|
|
||||||
Watcher Database
|
Watcher Database
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
This database stores all the Watcher domain objects which can be requested
|
This database stores all the Watcher domain objects which can be requested
|
||||||
by the :ref:`Watcher API <watcher_api_definition>` or the
|
by the :ref:`Watcher API <archi_watcher_api_definition>` or the
|
||||||
:ref:`Watcher CLI <watcher_cli_definition>`:
|
:ref:`Watcher CLI <archi_watcher_cli_definition>`:
|
||||||
|
|
||||||
- :ref:`Audit templates <audit_template_definition>`
|
- :ref:`Audit templates <audit_template_definition>`
|
||||||
- :ref:`Audits <audit_definition>`
|
- :ref:`Audits <audit_definition>`
|
||||||
@@ -139,7 +139,7 @@ by the :ref:`Watcher API <watcher_api_definition>` or the
|
|||||||
The Watcher domain being here "*optimization of some resources provided by an
|
The Watcher domain being here "*optimization of some resources provided by an
|
||||||
OpenStack system*".
|
OpenStack system*".
|
||||||
|
|
||||||
.. _watcher_decision_engine_definition:
|
.. _archi_watcher_decision_engine_definition:
|
||||||
|
|
||||||
Watcher Decision Engine
|
Watcher Decision Engine
|
||||||
-----------------------
|
-----------------------
|
||||||
@@ -169,10 +169,10 @@ In order to compute the potential :ref:`Solution <solution_definition>` for the
|
|||||||
Audit, the :ref:`Strategy <strategy_definition>` relies on two sets of data:
|
Audit, the :ref:`Strategy <strategy_definition>` relies on two sets of data:
|
||||||
|
|
||||||
- the current state of the
|
- the current state of the
|
||||||
:ref:`Managed resources <managed_resource_definition>`
|
:ref:`Managed resources <managed_resource_definition>`
|
||||||
(e.g., the data stored in the Nova database)
|
(e.g., the data stored in the Nova database)
|
||||||
- the data stored in the
|
- the data stored in the
|
||||||
:ref:`Cluster History Database <cluster_history_db_definition>`
|
:ref:`Cluster History Database <cluster_history_db_definition>`
|
||||||
which provides information about the past of the
|
which provides information about the past of the
|
||||||
:ref:`Cluster <cluster_definition>`
|
:ref:`Cluster <cluster_definition>`
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
.. _watcher-db-manage:
|
.. _watcher-db-manage:
|
||||||
|
|
||||||
=============
|
=================
|
||||||
watcher-db-manage
|
watcher-db-manage
|
||||||
=============
|
=================
|
||||||
|
|
||||||
The :command:`watcher-db-manage` utility is used to create the database schema
|
The :command:`watcher-db-manage` utility is used to create the database schema
|
||||||
tables that the watcher services will use for storage. It can also be used to
|
tables that the watcher services will use for storage. It can also be used to
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ configuration file.
|
|||||||
$ watcher action-plan-list --audit <the_audit_uuid>
|
$ watcher action-plan-list --audit <the_audit_uuid>
|
||||||
|
|
||||||
- Have a look on the list of optimization :ref:`actions <action_definition>`
|
- Have a look on the list of optimization :ref:`actions <action_definition>`
|
||||||
contained in this new :ref:`action plan <action_plan_definition>`:
|
contained in this new :ref:`action plan <action_plan_definition>`:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
.. _contributing:
|
.. _contributing:
|
||||||
|
|
||||||
======================
|
=======================
|
||||||
Contributing to Watcher
|
Contributing to Watcher
|
||||||
======================
|
=======================
|
||||||
|
|
||||||
If you're interested in contributing to the Watcher project,
|
If you're interested in contributing to the Watcher project,
|
||||||
the following will help get you started.
|
the following will help get you started.
|
||||||
@@ -43,7 +43,7 @@ notifications of important events.
|
|||||||
|
|
||||||
|
|
||||||
Project Hosting Details
|
Project Hosting Details
|
||||||
-------------------------
|
-----------------------
|
||||||
|
|
||||||
Bug tracker
|
Bug tracker
|
||||||
http://launchpad.net/watcher
|
http://launchpad.net/watcher
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ Abstract Plugin Class
|
|||||||
Here below is the abstract ``BaseStrategy`` class that every single strategy
|
Here below is the abstract ``BaseStrategy`` class that every single strategy
|
||||||
should implement:
|
should implement:
|
||||||
|
|
||||||
.. automodule:: watcher.decision_engine.strategy.base
|
.. automodule:: watcher.decision_engine.strategy.strategies.base
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
.. autoclass:: BaseStrategy
|
.. autoclass:: BaseStrategy
|
||||||
|
|||||||
@@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
https://creativecommons.org/licenses/by/3.0/
|
https://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
==========
|
========
|
||||||
Glossary
|
Glossary
|
||||||
==========
|
========
|
||||||
|
|
||||||
.. glossary::
|
.. glossary::
|
||||||
:sorted:
|
:sorted:
|
||||||
@@ -262,7 +262,7 @@ specific domain.
|
|||||||
Please, read `the official OpenStack definition of a Project <http://docs.openstack.org/glossary/content/glossary.html>`_.
|
Please, read `the official OpenStack definition of a Project <http://docs.openstack.org/glossary/content/glossary.html>`_.
|
||||||
|
|
||||||
|
|
||||||
.. _primitive_definition
|
.. _primitive_definition:
|
||||||
|
|
||||||
Primitive
|
Primitive
|
||||||
=========
|
=========
|
||||||
|
|||||||
@@ -8,11 +8,7 @@
|
|||||||
Welcome to Watcher's developer documentation
|
Welcome to Watcher's developer documentation
|
||||||
============================================
|
============================================
|
||||||
|
|
||||||
Mission
|
.. include:: ../../README.rst
|
||||||
=======
|
|
||||||
|
|
||||||
Provide an auditing service for OpenStack to improve workload placement
|
|
||||||
on-the-go.
|
|
||||||
|
|
||||||
The developer documentation provided here is continually kept up-to-date based
|
The developer documentation provided here is continually kept up-to-date based
|
||||||
on the latest code, and may not represent the state of the project at any
|
on the latest code, and may not represent the state of the project at any
|
||||||
@@ -29,6 +25,7 @@ Introduction
|
|||||||
|
|
||||||
glossary
|
glossary
|
||||||
architecture
|
architecture
|
||||||
|
deploy/configuration
|
||||||
dev/environment
|
dev/environment
|
||||||
dev/contributing
|
dev/contributing
|
||||||
dev/plugins
|
dev/plugins
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
.. include:: ../../README.rst
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
..
|
|
||||||
Except where otherwise noted, this document is licensed under Creative
|
|
||||||
Commons Attribution 3.0 License. You can view the license at:
|
|
||||||
|
|
||||||
https://creativecommons.org/licenses/by/3.0/
|
|
||||||
|
|
||||||
========
|
|
||||||
Usage
|
|
||||||
========
|
|
||||||
|
|
||||||
To use watcher in a project::
|
|
||||||
|
|
||||||
import watcher
|
|
||||||
@@ -4,15 +4,15 @@
|
|||||||
|
|
||||||
https://creativecommons.org/licenses/by/3.0/
|
https://creativecommons.org/licenses/by/3.0/
|
||||||
|
|
||||||
=====================
|
====================
|
||||||
RESTful Web API (v1)
|
RESTful Web API (v1)
|
||||||
=====================
|
====================
|
||||||
|
|
||||||
Audit Templates
|
Audit Templates
|
||||||
===============
|
===============
|
||||||
|
|
||||||
.. rest-controller:: watcher.api.controllers.v1.audit_template:AuditTemplatesController
|
.. rest-controller:: watcher.api.controllers.v1.audit_template:AuditTemplatesController
|
||||||
:webprefix: /v1/audit_template
|
:webprefix: /v1/audit_templates
|
||||||
|
|
||||||
.. autotype:: watcher.api.controllers.v1.audit_template.AuditTemplateCollection
|
.. autotype:: watcher.api.controllers.v1.audit_template.AuditTemplateCollection
|
||||||
:members:
|
:members:
|
||||||
@@ -20,7 +20,6 @@ Audit Templates
|
|||||||
.. autotype:: watcher.api.controllers.v1.audit_template.AuditTemplate
|
.. autotype:: watcher.api.controllers.v1.audit_template.AuditTemplate
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
|
||||||
Audits
|
Audits
|
||||||
======
|
======
|
||||||
|
|
||||||
@@ -33,24 +32,22 @@ Audits
|
|||||||
.. autotype:: watcher.api.controllers.v1.audit.Audit
|
.. autotype:: watcher.api.controllers.v1.audit.Audit
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
|
||||||
Links
|
Links
|
||||||
=====
|
=====
|
||||||
|
|
||||||
.. autotype:: watcher.api.controllers.link.Link
|
.. autotype:: watcher.api.controllers.link.Link
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
Action Plans
|
||||||
ActionPlans
|
============
|
||||||
===========
|
|
||||||
|
|
||||||
.. rest-controller:: watcher.api.controllers.v1.action_plan:ActionPlansController
|
.. rest-controller:: watcher.api.controllers.v1.action_plan:ActionPlansController
|
||||||
:webprefix: /v1/action_plans
|
:webprefix: /v1/action_plans
|
||||||
|
|
||||||
.. autotype:: watcher.api.controllers.v1.action_plan.ActionPlan
|
.. autotype:: watcher.api.controllers.v1.action_plan.ActionPlanCollection
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
.. autotype:: watcher.api.controllers.v1.action_plan.ActionPlanCollection
|
.. autotype:: watcher.api.controllers.v1.action_plan.ActionPlan
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ class ActionPlansController(rest.RestController):
|
|||||||
:param sort_key: column to sort results by. Default: id.
|
:param sort_key: column to sort results by. Default: id.
|
||||||
:param sort_dir: direction to sort. "asc" or "desc". Default: asc.
|
:param sort_dir: direction to sort. "asc" or "desc". Default: asc.
|
||||||
:param audit_uuid: Optional UUID of an audit, to get only actions
|
:param audit_uuid: Optional UUID of an audit, to get only actions
|
||||||
for that audit.
|
for that audit.
|
||||||
"""
|
"""
|
||||||
return self._get_action_plans_collection(
|
return self._get_action_plans_collection(
|
||||||
marker, limit, sort_key, sort_dir, audit_uuid=audit_uuid)
|
marker, limit, sort_key, sort_dir, audit_uuid=audit_uuid)
|
||||||
@@ -307,13 +307,13 @@ class ActionPlansController(rest.RestController):
|
|||||||
"""Retrieve a list of action_plans with detail.
|
"""Retrieve a list of action_plans with detail.
|
||||||
|
|
||||||
:param action_plan_uuid: UUID of a action plan, to get only
|
:param action_plan_uuid: UUID of a action plan, to get only
|
||||||
:action_plans for that action.
|
action_plans for that action.
|
||||||
:param marker: pagination marker for large data sets.
|
:param marker: pagination marker for large data sets.
|
||||||
:param limit: maximum number of resources to return in a single result.
|
:param limit: maximum number of resources to return in a single result.
|
||||||
:param sort_key: column to sort results by. Default: id.
|
:param sort_key: column to sort results by. Default: id.
|
||||||
:param sort_dir: direction to sort. "asc" or "desc". Default: asc.
|
:param sort_dir: direction to sort. "asc" or "desc". Default: asc.
|
||||||
:param audit_uuid: Optional UUID of an audit, to get only actions
|
:param audit_uuid: Optional UUID of an audit, to get only actions
|
||||||
for that audit.
|
for that audit.
|
||||||
"""
|
"""
|
||||||
# NOTE(lucasagomes): /detail should only work agaist collections
|
# NOTE(lucasagomes): /detail should only work agaist collections
|
||||||
parent = pecan.request.path.split('/')[:-1][-1]
|
parent = pecan.request.path.split('/')[:-1][-1]
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ applied.
|
|||||||
Two approaches to dealing with this can be envisaged:
|
Two approaches to dealing with this can be envisaged:
|
||||||
|
|
||||||
- **fully automated mode**: only the :ref:`Solution <solution_definition>`
|
- **fully automated mode**: only the :ref:`Solution <solution_definition>`
|
||||||
with the highest ranking (i.e., the highest
|
with the highest ranking (i.e., the highest
|
||||||
:ref:`Optimization Efficiency <efficiency_definition>`)
|
:ref:`Optimization Efficiency <efficiency_definition>`)
|
||||||
will be sent to the :ref:`Watcher Planner <watcher_planner_definition>` and
|
will be sent to the :ref:`Watcher Planner <watcher_planner_definition>` and
|
||||||
translated into concrete :ref:`Actions <action_definition>`.
|
translated into concrete :ref:`Actions <action_definition>`.
|
||||||
|
|||||||
@@ -61,9 +61,7 @@ class WatcherTerm(rst.Directive):
|
|||||||
cls_path = self.arguments[0]
|
cls_path = self.arguments[0]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
module_name, obj_name = cls_path.rsplit(".", 1)
|
cls = importlib.import_module(cls_path)
|
||||||
module = importlib.import_module(module_name)
|
|
||||||
cls = getattr(module, obj_name)
|
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
raise self.error(exc)
|
raise self.error(exc)
|
||||||
|
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ API is proposed with some helper classes in order to :
|
|||||||
See `the full list of meter types <http://docs.openstack.org/admin-guide-cloud/telemetry-measurements.html>`_
|
See `the full list of meter types <http://docs.openstack.org/admin-guide-cloud/telemetry-measurements.html>`_
|
||||||
- simplify the development of a new :ref:`Strategy <strategy_definition>`
|
- simplify the development of a new :ref:`Strategy <strategy_definition>`
|
||||||
- avoid duplicating the same code in several
|
- avoid duplicating the same code in several
|
||||||
:ref:`Strategies <strategy_definition>`
|
:ref:`Strategies <strategy_definition>`
|
||||||
- have a better consistency between the different
|
- have a better consistency between the different
|
||||||
:ref:`Strategies <strategy_definition>`
|
:ref:`Strategies <strategy_definition>`
|
||||||
- avoid any strong coupling with any external metrics/events storage system
|
- avoid any strong coupling with any external metrics/events storage system
|
||||||
(the proposed API and measurement naming system acts as a pivot format)
|
(the proposed API and measurement naming system acts as a pivot format)
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ and enables the :ref:`Strategy <strategy_definition>` to request information
|
|||||||
such as:
|
such as:
|
||||||
|
|
||||||
- What compute nodes are in a given
|
- What compute nodes are in a given
|
||||||
:ref:`Availability Zone <availability_zone_definition>`
|
:ref:`Availability Zone <availability_zone_definition>`
|
||||||
or a given :ref:`Host Aggregate <host_aggregates_definition>` ?
|
or a given :ref:`Host Aggregate <host_aggregates_definition>` ?
|
||||||
- What :ref:`Instances <instance_definition>` are hosted on a given compute
|
- What :ref:`Instances <instance_definition>` are hosted on a given compute
|
||||||
node ?
|
node ?
|
||||||
|
|||||||
Reference in New Issue
Block a user