Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19fdd1557e | ||
|
|
641989b424 | ||
|
|
8814c09087 | ||
|
|
eb4f46b703 | ||
|
|
2f33dd10c0 | ||
|
|
1a197ab801 |
@@ -2,3 +2,4 @@
|
|||||||
host=review.openstack.org
|
host=review.openstack.org
|
||||||
port=29418
|
port=29418
|
||||||
project=openstack/watcher.git
|
project=openstack/watcher.git
|
||||||
|
defaultbranch=stable/newton
|
||||||
|
|||||||
@@ -171,12 +171,12 @@ This component is responsible for computing a set of potential optimization
|
|||||||
:ref:`Actions <action_definition>` in order to fulfill
|
:ref:`Actions <action_definition>` in order to fulfill
|
||||||
the :ref:`Goal <goal_definition>` of an :ref:`Audit <audit_definition>`.
|
the :ref:`Goal <goal_definition>` of an :ref:`Audit <audit_definition>`.
|
||||||
|
|
||||||
It first reads the parameters of the :ref:`Audit <audit_definition>` from the
|
It first reads the parameters of the :ref:`Audit <audit_definition>` to know
|
||||||
associated :ref:`Audit Template <audit_template_definition>` and knows the
|
the :ref:`Goal <goal_definition>` to achieve.
|
||||||
:ref:`Goal <goal_definition>` to achieve.
|
|
||||||
|
|
||||||
It then selects the most appropriate :ref:`Strategy <strategy_definition>`
|
Unless specified, it then selects the most appropriate :ref:`strategy
|
||||||
from the list of available strategies achieving this goal.
|
<strategy_definition>` from the list of available strategies achieving this
|
||||||
|
goal.
|
||||||
|
|
||||||
The :ref:`Strategy <strategy_definition>` is then dynamically loaded (via
|
The :ref:`Strategy <strategy_definition>` is then dynamically loaded (via
|
||||||
`stevedore <http://docs.openstack.org/developer/stevedore/>`_). The
|
`stevedore <http://docs.openstack.org/developer/stevedore/>`_). The
|
||||||
@@ -290,7 +290,7 @@ the Audit parameters from the
|
|||||||
:ref:`Watcher Database <watcher_database_definition>`. It instantiates the
|
:ref:`Watcher Database <watcher_database_definition>`. It instantiates the
|
||||||
appropriate :ref:`strategy <strategy_definition>` (using entry points)
|
appropriate :ref:`strategy <strategy_definition>` (using entry points)
|
||||||
given both the :ref:`goal <goal_definition>` and the strategy associated to the
|
given both the :ref:`goal <goal_definition>` and the strategy associated to the
|
||||||
parent :ref:`audit template <audit_template_definition>` of the :ref:`Audit
|
parent :ref:`audit template <audit_template_definition>` of the :ref:`audit
|
||||||
<audit_definition>`. If no strategy is associated to the audit template, the
|
<audit_definition>`. If no strategy is associated to the audit template, the
|
||||||
strategy is dynamically selected by the Decision Engine.
|
strategy is dynamically selected by the Decision Engine.
|
||||||
|
|
||||||
|
|||||||
@@ -5,11 +5,12 @@
|
|||||||
hide methods
|
hide methods
|
||||||
hide stereotypes
|
hide stereotypes
|
||||||
|
|
||||||
table(goal) {
|
table(goals) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
name : String[63]
|
name : String[63]
|
||||||
display_name : String[63]
|
display_name : String[63]
|
||||||
|
efficacy_specification : JSONEncodedList, nullable
|
||||||
|
|
||||||
created_at : DateTime
|
created_at : DateTime
|
||||||
updated_at : DateTime
|
updated_at : DateTime
|
||||||
@@ -18,12 +19,13 @@ table(goal) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table(strategy) {
|
table(strategies) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
foreign_key(goal_id : Integer)
|
foreign_key(goal_id : Integer)
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
name : String[63]
|
name : String[63]
|
||||||
display_name : String[63]
|
display_name : String[63]
|
||||||
|
parameters_spec : JSONEncodedDict, nullable
|
||||||
|
|
||||||
created_at : DateTime
|
created_at : DateTime
|
||||||
updated_at : DateTime
|
updated_at : DateTime
|
||||||
@@ -32,7 +34,7 @@ table(strategy) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table(audit_template) {
|
table(audit_templates) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
foreign_key("goal_id : Integer")
|
foreign_key("goal_id : Integer")
|
||||||
foreign_key("strategy_id : Integer, nullable")
|
foreign_key("strategy_id : Integer, nullable")
|
||||||
@@ -50,14 +52,17 @@ table(audit_template) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table(audit) {
|
table(audits) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
foreign_key("audit_template_id : Integer")
|
foreign_key("goal_id : Integer")
|
||||||
|
foreign_key("strategy_id : Integer, nullable")
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
audit_type : String[20]
|
audit_type : String[20]
|
||||||
state : String[20], nullable
|
state : String[20], nullable
|
||||||
deadline :DateTime, nullable
|
deadline : DateTime, nullable
|
||||||
interval : Integer, nullable
|
interval : Integer, nullable
|
||||||
|
parameters : JSONEncodedDict, nullable
|
||||||
|
host_aggregate : Integer, nullable
|
||||||
|
|
||||||
created_at : DateTime
|
created_at : DateTime
|
||||||
updated_at : DateTime
|
updated_at : DateTime
|
||||||
@@ -66,9 +71,10 @@ table(audit) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table(action_plan) {
|
table(action_plans) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
foreign_key("audit_id : Integer, nullable")
|
foreign_key("audit_id : Integer, nullable")
|
||||||
|
foreign_key("strategy_id : Integer")
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
first_action_id : Integer
|
first_action_id : Integer
|
||||||
state : String[20], nullable
|
state : String[20], nullable
|
||||||
@@ -81,7 +87,7 @@ table(action_plan) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table(action) {
|
table(actions) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
foreign_key("action_plan_id : Integer")
|
foreign_key("action_plan_id : Integer")
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
@@ -97,7 +103,7 @@ table(action) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
table(efficacy_indicator) {
|
table(efficacy_indicators) {
|
||||||
primary_key(id: Integer)
|
primary_key(id: Integer)
|
||||||
foreign_key("action_plan_id : Integer")
|
foreign_key("action_plan_id : Integer")
|
||||||
uuid : String[36]
|
uuid : String[36]
|
||||||
@@ -112,12 +118,27 @@ table(efficacy_indicator) {
|
|||||||
deleted : Integer
|
deleted : Integer
|
||||||
}
|
}
|
||||||
|
|
||||||
"goal" <.. "strategy" : Foreign Key
|
table(scoring_engines) {
|
||||||
"goal" <.. "audit_template" : Foreign Key
|
primary_key(id: Integer)
|
||||||
"strategy" <.. "audit_template" : Foreign Key
|
uuid : String[36]
|
||||||
"audit_template" <.. "audit" : Foreign Key
|
name : String[63]
|
||||||
"action_plan" <.. "action" : Foreign Key
|
description : String[255], nullable
|
||||||
"action_plan" <.. "efficacy_indicator" : Foreign Key
|
metainfo : Text, nullable
|
||||||
"audit" <.. "action_plan" : Foreign Key
|
|
||||||
|
created_at : DateTime
|
||||||
|
updated_at : DateTime
|
||||||
|
deleted_at : DateTime
|
||||||
|
deleted : Integer
|
||||||
|
}
|
||||||
|
|
||||||
|
"goals" <.. "strategies" : Foreign Key
|
||||||
|
"goals" <.. "audit_templates" : Foreign Key
|
||||||
|
"strategies" <.. "audit_templates" : Foreign Key
|
||||||
|
"goals" <.. "audits" : Foreign Key
|
||||||
|
"strategies" <.. "audits" : Foreign Key
|
||||||
|
"action_plans" <.. "actions" : Foreign Key
|
||||||
|
"action_plans" <.. "efficacy_indicators" : Foreign Key
|
||||||
|
"strategies" <.. "action_plans" : Foreign Key
|
||||||
|
"audits" <.. "action_plans" : Foreign Key
|
||||||
|
|
||||||
@enduml
|
@enduml
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 56 KiB |
@@ -12,7 +12,7 @@ oslo.concurrency>=3.8.0 # Apache-2.0
|
|||||||
oslo.cache>=1.5.0 # Apache-2.0
|
oslo.cache>=1.5.0 # Apache-2.0
|
||||||
oslo.config>=3.14.0 # Apache-2.0
|
oslo.config>=3.14.0 # Apache-2.0
|
||||||
oslo.context>=2.9.0 # Apache-2.0
|
oslo.context>=2.9.0 # Apache-2.0
|
||||||
oslo.db>=4.10.0 # Apache-2.0
|
oslo.db!=4.13.1,!=4.13.2,>=4.10.0 # Apache-2.0
|
||||||
oslo.i18n>=2.1.0 # Apache-2.0
|
oslo.i18n>=2.1.0 # Apache-2.0
|
||||||
oslo.log>=1.14.0 # Apache-2.0
|
oslo.log>=1.14.0 # Apache-2.0
|
||||||
oslo.messaging>=5.2.0 # Apache-2.0
|
oslo.messaging>=5.2.0 # Apache-2.0
|
||||||
|
|||||||
9
tox.ini
9
tox.ini
@@ -1,16 +1,17 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.8
|
||||||
envlist = py35,py34,py27,pep8
|
envlist = py35,py34,py27,pep8
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
whitelist_externals = find
|
whitelist_externals = find
|
||||||
install_command = pip install -U {opts} {packages}
|
install_command =
|
||||||
|
constraints: pip install -U --force-reinstall -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/newton} {opts} {packages}
|
||||||
|
pip install -U {opts} {packages}
|
||||||
setenv =
|
setenv =
|
||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
|
||||||
commands =
|
commands =
|
||||||
find . -type f -name "*.pyc" -delete
|
find . -type f -name "*.pyc" -delete
|
||||||
find . -type d -name "__pycache__" -delete
|
find . -type d -name "__pycache__" -delete
|
||||||
|
|||||||
@@ -272,4 +272,4 @@ def prepare_service(argv=(), conf=cfg.CONF):
|
|||||||
conf.log_opt_values(LOG, logging.DEBUG)
|
conf.log_opt_values(LOG, logging.DEBUG)
|
||||||
|
|
||||||
gmr.TextGuruMeditation.register_section(_('Plugins'), opts.show_plugins)
|
gmr.TextGuruMeditation.register_section(_('Plugins'), opts.show_plugins)
|
||||||
gmr.TextGuruMeditation.setup_autorun(version)
|
gmr.TextGuruMeditation.setup_autorun(version, conf=conf)
|
||||||
|
|||||||
Reference in New Issue
Block a user