2716 Commits

Author SHA1 Message Date
Jenkins
d8c82fecd3 Merge "Update documentation regarding Ceilometer API V2" 2015-12-04 13:47:49 +00:00
Vincent Françoise
ec81ee9339 Created a glossary to lay down Watcher terminology
As of now, we do not have a single source of truth
when it comes to the terminology describing the various components
Watcher is made of. Hence, this is an attempt to formalize it into
a single document.

Change-Id: Iffbbe9148e53c88e38297fa9e81b8b024cce4099
2015-12-04 14:23:09 +01:00
Jean-Emile DARTOIS
556368567d Update documentation regarding Ceilometer API V2
Today, the watcher Decision Engine is not relying on Ceilometer V2 API
to query the metrics necessary for the optimization algorithm.
This patchset update the documentation to use Ceilometer API with
watcher

Change-Id: I62cf0ea7b1766b00601f3dcbbbfe20b4a9567570
2015-12-04 14:21:09 +01:00
Jean-Emile DARTOIS
da4c9125f7 Fixed missing attribute in the data model
Querying compute.node.* with Ceilometer requires some additional
information in the cluster data model in order to build the
resource_id. This patchset add the attribute hostname and change
the query.

Change-Id: Ifcefcd70a6d0f5967ab4f638ce077e38ef214f64
Closes-Bug: #1521559
2015-12-04 12:14:25 +01:00
Jenkins
ee82531314 Merge "Code refactoring - Watcher Applier package" 2015-12-03 14:54:49 +00:00
Jenkins
1961f41739 Merge "Removed py26 support" 2015-12-03 13:43:17 +00:00
Jenkins
2a06c2b7cc Merge "Fixed doc generation warning" 2015-12-03 13:28:38 +00:00
Gábor Antal
398195ab98 Removed py26 support
as of mitaka, the infra team won't have the resources available to
reasonably test py26, also the oslo team is dropping py26 support from
their libraries. sine we rely on oslo for a lot of our work, and depend
on infra for our CI, we should drop py26 support too.

Change-Id: I8aec07a1149ad7232c3d6db2f3c274ec9ce11a66
Closes-Bug: #1522363
2015-12-03 13:24:06 +01:00
Vincent Françoise
289c79e52f Code refactoring - Watcher Applier package
This patchset is there to change the code structure.
The objective is to flatten the project file tree by merging
'api/' and 'framework/' into a single package. This also contains
some tidy ups in package naming (like using only singular nouns).

This should only affect file/folder names and their subsequent
import paths wherever they were used.

Change-Id: Id7b37667c613086d8ef3cd1f367c4219bf026fc7
2015-12-03 12:08:18 +01:00
Jenkins
6d17426675 Merge "Fixed tense consistency (used past) in statuses" 2015-12-03 11:06:37 +00:00
Vincent Françoise
c178b79f57 Removed old (and unused) openstack/oslo libs
Since all oslo libs are now using the new versions installed using
pip, there is no need to keep the watcher/openstack/common/ folder.

Implements: blueprint make-watcher-use-graduated-oslo-lib
Change-Id: I9e08b4a50c6b15a4d51a7f53fdd615d6c28fdce7
2015-12-02 17:48:07 +01:00
Vincent Françoise
f555e66d75 Fixed doc generation warning
The BaseStrategy interface was moved to another location but the
documentation wasn't updated accordingly, so here I updated this
import path.
As an extra, I also updated the description of the Solution which
also had an outdated import path.

Closes-Bug: #1522034
Change-Id: I8cd43e84db6945391db06ec6dfe82ce02eccc7f4
2015-12-02 16:55:12 +01:00
Jenkins
8db19fea72 Merge "add missing keystoneclient dependency" 2015-12-02 11:44:31 +00:00
Jean-Emile DARTOIS
03db8bec6d add missing keystoneclient dependency
Change-Id: Ia3dbc70366b370103128b6f86a0cec20a55a8dcb
2015-12-02 11:36:15 +00:00
Jenkins
8018f74a81 Merge "Removed 'watcher_messaging' to use oslo.messaging" 2015-12-02 11:16:53 +00:00
Jenkins
2737791a58 Merge "Added priority level to Nop action" 2015-12-02 10:25:08 +00:00
Vincent Françoise
1cf4e15276 Added priority level to Nop action
Change-Id: I166e9cc80b1d9e326c9d65b47e38da26dffb5004
Closes-Bug: #1521898
2015-12-02 11:04:07 +01:00
Jenkins
6ffdbf6b91 Merge "Improve OpenStack clients API" 2015-12-01 16:32:04 +00:00
Vincent Françoise
8756c70060 Removed 'watcher_messaging' to use oslo.messaging
The old 'watcher_messaging' section of the Watcher configuration file
has now been replaced by the more standard oslo.configuration one.

DocImpact

Change-Id: Ie027df023e6133f3188e57b42846083f28c282bd
2015-12-01 16:02:03 +01:00
Jean-Emile DARTOIS
1300309264 Improve OpenStack clients API
Change-Id: I53137dcbd38dc7846acbad4364e02a9fb77a4c19
2015-12-01 16:00:47 +01:00
Jenkins
44cfa11b0e Merge "Added 'dummy' entrypoint within watcher_strategies" 2015-12-01 11:15:09 +00:00
Vincent Françoise
9078e1e138 Added 'dummy' entrypoint within watcher_strategies
This should make our 'dummy' strategy available for use.
I also removed all previously defined default goals, which means
that they will have to define it themselves from now on.
This can also be useful for future integration tests.

Change-Id: I6c43eba941022a88851a199b56a6c20f017b9e71
DocImpact
Closes-Bug: #1520178
2015-11-30 16:06:45 +01:00
Jenkins
2a573593a5 Merge "Added LaunchActionPlanCommand's init super call" 2015-11-30 10:23:45 +00:00
Gábor Antal
6e1e445e55 Fixed tense consistency (used past) in statuses
In several places in Watcher, there are statuses which corresponds
to a status in the respective life cycle. There were used past tense
everywhere, except "SUCCESS" which was written in present tense.

So I searched for all the occurences of this state, and replaced them
with their past tense form.

Change-Id: Ic41def96d1a608da06a1e394e24704d4f06ab32a
Closes-Bug: #1520276
2015-11-27 19:10:00 +01:00
Gábor Antal
193c1924cc Added LaunchActionPlanCommand's init super call
Added the missing super() call in the LaunchActionPlanCommand class
__init__() method, as it was requested.

Change-Id: I6d8cc7880b1e979f94acd3fdd84e3f6d1a90a032
Closes-Bug: #1520521
2015-11-27 17:46:27 +01:00
Vincent Françoise
5107345c93 Explained KEYSTONE_SERVICE_PROJECT_NAME variable
The objective is to make it more explicit that the 'service' project
is referring to the keystone service.
This changeset also updated the documentation to stay under the
limit of 80 per line.

Change-Id: I22430585e3e8999f27c2c2d48398a70298da9850
2015-11-27 17:41:55 +01:00
Jenkins
a809b8d52c Merge "Added missing super call in DefaultApplier's init" 2015-11-27 16:36:11 +00:00
Gábor Antal
4ee06a4417 Added missing super call in DefaultApplier's init
Added the missing super() call in the DefaultApplier class
__init__() method, as it was requested.

Change-Id: I58be9671e9635d800d63480043e2e4cd752d45fd
Closes-Bug: #1520524
2015-11-27 17:25:02 +01:00
Jenkins
9d153e13a3 Merge "AMQP Channel have to be set espacially to 'watcher'" 2015-11-27 15:42:12 +00:00
David TARDIVEL
aa1b1da759 AMQP Channel have to be set espacially to 'watcher'
Default channel used is named 'openstack'. But Watcher AMQP topics are
bound to 'watcher' channel. So, on RCPClient init, we have to set
the channel name to 'watcher' for the target.

Change-Id: Ifdbb187f1ee60f898ef0340e0c037891350ce815
Closes-Bug: #1520599
2015-11-27 16:13:03 +01:00
Vincent Françoise
5f8a601c63 Updated the config sample file generation command
Following the update of the project requirements, we should now
use the oslo.config namespace of oslo.log when generating ou
Watcher config sample file.

Change-Id: I7a1f3d555534b40c041b7f042f19fae231b7e80c
Closes-Bug: #1518297
2015-11-27 15:46:49 +01:00
Vincent Françoise
eb3870a4b3 Code refactoring - Watcher Decision Engine package
This patchset is there to change the code structure.
The objective is to flatten the project file tree by merging
'api/' and 'framework/' into a single package. This also contains
some tidy ups in package naming (like using only singular nouns).

This should only affect file/folder names and their subsequent
import paths wherever they were used.

Change-Id: Ie903ba20ca5cf03b0b42efa60131d1b919b0c2c9
2015-11-26 12:06:28 +01:00
Jenkins
6e81a31bd8 Merge "Update requirements from OS Global Requirements." 2015-11-25 14:58:59 +00:00
Vincent Françoise
3a03eb930c Strategy plugins documentation
Following https://review.openstack.org/#/c/245903, this patchset
documents the implementation and integration of custom Strategies
with Watcher.

Change-Id: I573758695d67d523834f145824b6f6cfdd8997fe
2015-11-24 18:02:06 +01:00
David TARDIVEL
7c8acebcb2 Update requirements from OS Global Requirements.
Update requirements.txt and test-requirements.txt from Global Requirements
defined into openstack/requirements project (stable/liberty).

Change-Id: I9ecbf5a7fb2c38624cc4f52b13515f8af75a4889
Closes-Bug: #1513118
2015-11-24 15:56:53 +01:00
Jenkins
7c52a1448d Merge "Update configuration file sample." 2015-11-23 17:23:59 +00:00
Vincent Françoise
f8a80938ef Made Decision Engine extensible via stevedore
The objective for this is to give the ability to extend the default
set of placement algorithms (i.e. strategies) currently available
in Watcher using Stevedore.

Now, you can add your new strategy as an entry point under the
'[watcher_strategies]' section.

Change-Id: I4aecf629015e41b0389d07e47220333e50bbbe1a
2015-11-23 17:38:03 +01:00
Jean-Emile DARTOIS
827563608f Integration of Ceilometer in Watcher
In current implementation is not easy to use ceilometer.
Watcher must query metrics from the Telemetry v2 API to allow an easiest integration with OpenStack components (especially devstack).

blueprint telemetry-integration
Change-Id: Ide515472f1d160925d9f4aabf48c96dea4f6bc05
2015-11-23 15:29:28 +01:00
David TARDIVEL
b754dd0095 Update configuration file sample.
Configuration file sample must be synchronized with source code updates,
and especially with bug/1516701 fix.

Change-Id: I8773539c88340a4cde0015c7a5c7c7204a47609b
2015-11-23 12:34:42 +01:00
Jean-Emile DARTOIS
6a55914b05 Fix config loading when running the watcher-api
This regression was caused when we upgrade the version of olso.
Unfortunately this issue wasn't picked up with the unit tests as
the cmds doesn't have unit tests yet.

Error message: "watcher-api fail with NoSuchOptError: no such option:debug"

This patchset implements unit tests for:

- 'watcher-api' command
- 'watcher-db-manage' command (and sub-command)
- 'watcher-applier' command

Change-Id: I2bea8aee28dec913ebc45f2824bf474f86652642
2015-11-23 10:49:21 +01:00
Jenkins
4d2d73aa98 Merge "Avoid dividing zero" 2015-11-19 09:01:27 +00:00
Lin Yang
0e0461de74 Fix tiny typo on configuration doc
Typically the project name for the services is "service", not
"services".

Change-Id: I4414befff39663f1c205daef381d719042d938af
2015-11-18 04:08:49 +08:00
Zhenzan Zhou
a6db530c77 Avoid dividing zero
Some flavors may set disk size 0 byte, so disk_capacity may be 0.

Change-Id: I0f2cfd5ce9f64cd94e7b6ded7865384cb2b1e190
Closes-Bug: #1517033
2015-11-17 22:04:32 +08:00
Kevin_Zheng
8920fe0649 Should use watcher/common/context.py for consistency
Use watcher/common/context.py in watcher/common/service.py
for consistency

Change-Id: I0dc99e04a3e936c3da38598bd9aac469d79a793b
2015-11-17 14:32:04 +08:00
Kevin_Zheng
f7ac53c04c Update policy.py
Update watcher/openstack/common/policy.py to keep
up with other openstack components.

Change-Id: Ia6cd00363e0fbf0c72a24b3bb9bb5468e17a71e9
2015-11-17 11:32:33 +08:00
David TARDIVEL
c7e5dc5dcd Watcher notification listener is associated with an executor which integrates
the listener with a specific I/O handling framework. blocking executor should be
the default one.

Change-Id: I10431fefa5f9d4dff3f8482a38c534f1263e67e8
2015-11-14 19:23:35 +01:00
David TARDIVEL
cef629eef3 Update Rabbit MQ server configuration extract.
Change-Id: I827ca80cea9f20d326d9cc74d4cf8554a23e8fbd
2015-11-13 19:58:35 +01:00
Jenkins
2ae17a11eb Merge "Use a single command to create the 3 watcher endpoints." 2015-11-16 10:53:27 +00:00
David TARDIVEL
1fa2d93928 Use a single command to create the 3 watcher endpoints.
--internalurl, --publicurl and --adminurl options are now
mandatory for creation of service endpoints into Keystone, by
using openstack CLI.

Change-Id: Ic5da04e20931de77e747a8bace8833a1850d9dae
Closes-Bug: #1515413
2015-11-13 19:35:11 +01:00
wangxiyuan
57be02dcd2 Use i18n directly
We should use i18n directly rather than openstack/common.

Change-Id: I64d3abce4ee2747b670bc921ffbb03d76defd42c
2015-11-13 16:55:34 +08:00