Fix specification warnings
This patch set fixes all specification warnings and set warning-is-error flag to True. Change-Id: I9a6132cfd0d010db21c148be53b6bb5523eb6f5c
This commit is contained in:
parent
084bbbe3c1
commit
dc55d63222
@ -32,6 +32,7 @@ extensions = ['redirect',
|
|||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx.ext.viewcode',
|
'sphinx.ext.viewcode',
|
||||||
|
'sphinx.ext.mathjax',
|
||||||
'oslosphinx',
|
'oslosphinx',
|
||||||
'yasfb',
|
'yasfb',
|
||||||
]
|
]
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
oslosphinx
|
oslosphinx
|
||||||
pbr>=0.6,<1.0
|
pbr>=2.0.0,!=2.1.0 # Apache-2.0
|
||||||
sphinx>=1.1.2,<1.2
|
sphinx>=1.6.2 # BSD
|
||||||
testrepository>=0.0.18
|
testrepository>=0.0.18
|
||||||
testtools>=0.9.34
|
testtools>=1.4.0
|
||||||
yasfb>=0.5.1
|
yasfb>=0.5.1
|
||||||
doc8 # Apache-2.0
|
doc8 # Apache-2.0
|
||||||
|
@ -15,6 +15,7 @@ classifier =
|
|||||||
all_files = 1
|
all_files = 1
|
||||||
build-dir = doc/build
|
build-dir = doc/build
|
||||||
source-dir = doc/source
|
source-dir = doc/source
|
||||||
|
warning-is-error = 1
|
||||||
|
|
||||||
[pbr]
|
[pbr]
|
||||||
warnerrors = False
|
warnerrors = False
|
||||||
|
@ -89,13 +89,13 @@ probable difference in the number of node vcpus. Therefore we transform
|
|||||||
VM CPU utilization to overall host CPU utilization. The following pseudocode
|
VM CPU utilization to overall host CPU utilization. The following pseudocode
|
||||||
shows the right way of transforming:
|
shows the right way of transforming:
|
||||||
|
|
||||||
:math:`cpu_impact = cpu_util * vm_vcpus/host_vcpus`
|
:math:`cpu_{impact} = cpu_{util} * {vm_vcpus}/{host_vcpus}`
|
||||||
|
|
||||||
After that the load values of nodes are normalised and the new
|
After that the load values of nodes are normalised and the new
|
||||||
standard deviation is calculated with them.
|
standard deviation is calculated with them.
|
||||||
The total standard deviation is calculated as weighted arithmetic mean:
|
The total standard deviation is calculated as weighted arithmetic mean:
|
||||||
|
|
||||||
:math:`\sum weight_metric*sd_metric`, where:
|
:math:`\sum weight_{metric}*sd_{metric}`, where:
|
||||||
|
|
||||||
* weight_metric is the weight of metric. The value of weight is to be in
|
* weight_metric is the weight of metric. The value of weight is to be in
|
||||||
range(0, 1). Each weight of metric is set by `watcher input parameters`_.
|
range(0, 1). Each weight of metric is set by `watcher input parameters`_.
|
||||||
|
@ -70,7 +70,7 @@ number that will facilitate retro-compatibility whenever adding new fields.
|
|||||||
The basic structure for all notifications will be the same as the one that is
|
The basic structure for all notifications will be the same as the one that is
|
||||||
used in Nova for the `versioned-notification-api blueprint`_, i.e.:
|
used in Nova for the `versioned-notification-api blueprint`_, i.e.:
|
||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: none
|
||||||
|
|
||||||
{
|
{
|
||||||
"priority": "INFO",
|
"priority": "INFO",
|
||||||
|
@ -113,6 +113,7 @@ ironic node-create -d your_driver agent_ipmitool \
|
|||||||
-i ipmi_password=<ipmi_password> \
|
-i ipmi_password=<ipmi_password> \
|
||||||
-e compute_node=compute.node.id \
|
-e compute_node=compute.node.id \
|
||||||
-u ironic_node_uuid
|
-u ironic_node_uuid
|
||||||
|
|
||||||
compute.node.id is the compute node ID saved in CCDM
|
compute.node.id is the compute node ID saved in CCDM
|
||||||
(Compute Cluster Data Model)
|
(Compute Cluster Data Model)
|
||||||
|
|
||||||
@ -120,6 +121,7 @@ compute.node.id is the compute node ID saved in CCDM
|
|||||||
2) On watcher, build the Baremetal Cluster Data Model (BCDM) by
|
2) On watcher, build the Baremetal Cluster Data Model (BCDM) by
|
||||||
periodically requesting Ironic service.
|
periodically requesting Ironic service.
|
||||||
The Baremetal Cluster Data Model structure is shown as followings
|
The Baremetal Cluster Data Model structure is shown as followings
|
||||||
|
|
||||||
{
|
{
|
||||||
"uuid": "4f37180e-c310-4327-a286-d5ab9ffc6497",
|
"uuid": "4f37180e-c310-4327-a286-d5ab9ffc6497",
|
||||||
"power_state": "power on",
|
"power_state": "power on",
|
||||||
|
@ -129,7 +129,7 @@ Example :
|
|||||||
**Parse and validate workload grammar**
|
**Parse and validate workload grammar**
|
||||||
|
|
||||||
|
|
||||||
Use `TOSCA-Parser_ module to parse a TOSCA serialized workload
|
Use `TOSCA-Parser`_ module to parse a TOSCA serialized workload
|
||||||
grammar and validate it by applying values from telemetry
|
grammar and validate it by applying values from telemetry
|
||||||
or other metrics.
|
or other metrics.
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ without VMs. And when the workload increases watcher will trigger a "power on"
|
|||||||
request to fullfill the service requirements.
|
request to fullfill the service requirements.
|
||||||
|
|
||||||
This feature includes four sub-features:
|
This feature includes four sub-features:
|
||||||
|
|
||||||
* Build a new baremetal data model in Watcher.
|
* Build a new baremetal data model in Watcher.
|
||||||
* Add new actions "power on" and "power off" in Watcher.
|
* Add new actions "power on" and "power off" in Watcher.
|
||||||
* Implement a new strategy based on 'baremetal' and 'compute' data models,
|
* Implement a new strategy based on 'baremetal' and 'compute' data models,
|
||||||
|
@ -43,7 +43,7 @@ the Audit Scope to exclude VMs by metadata.
|
|||||||
|
|
||||||
Example -
|
Example -
|
||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: none
|
||||||
|
|
||||||
"scope": [
|
"scope": [
|
||||||
{"host_aggregates": [
|
{"host_aggregates": [
|
||||||
@ -135,7 +135,7 @@ Work Items
|
|||||||
----------
|
----------
|
||||||
* Platform owners or automations external to watcher will set the VM Metadata
|
* Platform owners or automations external to watcher will set the VM Metadata
|
||||||
|
|
||||||
.. code-block:: json
|
.. code-block:: none
|
||||||
|
|
||||||
# nova meta vm_name set optimize=True
|
# nova meta vm_name set optimize=True
|
||||||
|
|
||||||
@ -196,6 +196,5 @@ History
|
|||||||
N/A
|
N/A
|
||||||
|
|
||||||
.. _Audit: http://docs.openstack.org/developer/watcher/glossary.html#audit
|
.. _Audit: http://docs.openstack.org/developer/watcher/glossary.html#audit
|
||||||
.. _Strategy:
|
.. _Strategy: http://docs.openstack.org/developer/watcher/glossary.html#strategies
|
||||||
http://docs.openstack.org/developer/watcher/glossary.html#strategies
|
|
||||||
.. _Audit Scope: https://specs.openstack.org/openstack/watcher-specs/specs/newton/approved/define-the-audit-scope.html
|
.. _Audit Scope: https://specs.openstack.org/openstack/watcher-specs/specs/newton/approved/define-the-audit-scope.html
|
||||||
|
@ -127,6 +127,9 @@ Work Items
|
|||||||
method for all the tasks(actions) added in the flow. In the revert method of
|
method for all the tasks(actions) added in the flow. In the revert method of
|
||||||
action, current action state is checked and based on the action state
|
action, current action state is checked and based on the action state
|
||||||
(PENDING, ONGOING, SUCCEEDED) revert method will execute defined steps.
|
(PENDING, ONGOING, SUCCEEDED) revert method will execute defined steps.
|
||||||
|
|
||||||
|
.. code-block:: python
|
||||||
|
|
||||||
e.g. if action_state is PENDING:
|
e.g. if action_state is PENDING:
|
||||||
# update action_state to CANCELLED
|
# update action_state to CANCELLED
|
||||||
if action_state is ONGOING:
|
if action_state is ONGOING:
|
||||||
|
@ -126,6 +126,7 @@ Alternatives
|
|||||||
"event_type": "action_info.emit",
|
"event_type": "action_info.emit",
|
||||||
"message_id": "cbcf9f2c-7c53-4b4d-91ec-db49cca024b6"
|
"message_id": "cbcf9f2c-7c53-4b4d-91ec-db49cca024b6"
|
||||||
}
|
}
|
||||||
|
|
||||||
The implementation is as follows:
|
The implementation is as follows:
|
||||||
https://review.openstack.org/#/c/454638/
|
https://review.openstack.org/#/c/454638/
|
||||||
But in my test, The number of received notifications is often less than
|
But in my test, The number of received notifications is often less than
|
||||||
|
@ -104,6 +104,7 @@ Work Items
|
|||||||
----------
|
----------
|
||||||
|
|
||||||
* Remove voluptuous schemas
|
* Remove voluptuous schemas
|
||||||
|
|
||||||
As of now, voluptuous is used to:
|
As of now, voluptuous is used to:
|
||||||
- validate the input parameters of a Watcher action when it gets to the
|
- validate the input parameters of a Watcher action when it gets to the
|
||||||
Applier.
|
Applier.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user