64 Commits

Author SHA1 Message Date
Daniel Pawlik
a6aed1772d Add license file
License file is the same as in Watcher project.

Change-Id: I4d20e5c269298b60ac9c169c996cd92b24fc502f
2016-07-04 18:04:10 +00:00
OpenStack Proposal Bot
63a1039fb2 Updated from global requirements
Change-Id: I499eefd614f64eb6bd167aa93ecbe892b78d297e
2016-06-30 18:50:11 +00:00
Chihiro Yokoyama
9d3a6c51b1 Remove tempest-lib
tempest-lib is still referenced in test-requirements.txt
although it is deprecated and also unused.

Change-Id: I13796eb7fc6360cac5f0898ebc8dbb8515dc6733
Closes-Bug: #1590867
2016-06-27 09:53:21 +00:00
OpenStack Proposal Bot
8bcdf13d7f Updated from global requirements
Change-Id: I0c1760cdfcea5c85031a08dd9631aaa54880842f
2016-06-23 15:38:14 +00:00
Edwin Zhai
f9fb0875e0 Revert "Add support continuously-optimization"
This reverts commit 888a58fd2a62628d970e7088d4f74e4642bacc17.
Will restore it once related changes in watcher get merged.

Change-Id: Icdde1678598867c5e1ce68c8bd4c189f7a37bedc
Closes-Bug: #1595368
2016-06-23 02:36:39 +00:00
Vladimir Ostroverkhov
d36d835d08 Replaced UUID of goal with name
This patch updated the CLI to display the name of the goal
associated to an strategy (instead UUID).
Related-Bug: #1590416.

Change-Id: Ia8bd0c18d63461da2336a690364f034d0f7f2343
2016-06-20 11:24:34 +03:00
Jenkins
20931e2ce7 Merge "Updated CLI to display efficacy related fields" 2016-06-15 08:59:32 +00:00
Jenkins
fb84ae9b25 Merge "Add support continuously-optimization" 2016-06-13 12:05:08 +00:00
Antoine Cabot
e64e597aa6 Remove useless index on root doc page
Change-Id: I37a882cd6725220d7fe99604f067030d50aed019
2016-06-10 10:47:22 +02:00
Vincent Francoise
f9aac4fc9f Updated CLI to display efficacy related fields
In this changeset, I updated the CLI as followed:

- The 'efficacy_specification' field is now shown by the
  'goal list --detail' and the 'goal show <goal>' subcommands.
- Both the 'global_efficacy' and the 'efficacy_indicators' fields
  are now displayed when issuing 'actionplan list --detail' or
  'actionplan show <action_plan_uuid>'.

Change-Id: I47462d0af92318773ec9284828180b62166ca936
Partially-Implements: blueprint efficacy-indicator
2016-06-08 15:03:17 +02:00
OpenStack Proposal Bot
0f276e483b Updated from global requirements
Change-Id: Ic2ef241b1026929ba8af14ca4b3a1322a9c4cdfd
2016-06-01 13:54:46 +00:00
Vladimir Ostroverkhov
888a58fd2a Add support continuously-optimization
This patch set adds support for period
field to python-watcherclient

Change-Id: I777429f9d2d596bea506664e8614da7e78a31904
Implements: blueprint continuously-optimization
2016-05-27 18:29:21 +03:00
David.T
89cfc55870 Update Watcher CLI documentation
I updated, in this patchset, some examples of wacher CLI, because
option format has changed (we have no more '-' character in
keywords)
I added a new page for the openstack client + our watcher plugin.

Change-Id: Ia2ae148e4357eb64c8e3df1f3036dc992e85714c
0.23.0
2016-05-27 08:19:17 +00:00
David.T
4c19084cb1 Use goal name as strategy list filter
In this changeset, I updated the CLI to be able to use now
the goal name as a filter parameter of the command
strategy list.

Change-Id: I507bb1c37c845f56db537735f00a6d82a696908e
Partial-Bug: #1573582
2016-05-27 10:04:07 +02:00
Vincent Francoise
bc572e70dc Replaced UUID of goal and strategy with name
In this changeset, I updated the CLI to now display the names of
the goal and strategy associated to an audit template
(instead of their UUIDs).

Change-Id: I57e83f23ed2240048d8ef07a629aec6ef13970e8
Closes-Bug: #1573582
2016-05-26 12:54:39 +02:00
Vincent Francoise
544db1951f Flatten the project structure
In this changeset, I flattened the project structure by removing
the 'osc' package as it is now shared by both the OSC plugin and by
the 'watcher' command.

Closes-Bug: #1570467
Partially Implements: blueprint openstackclient-plugin

Change-Id: I867fd23c3a27cfc925dcc28f8dd158cb690c5659
2016-05-24 17:47:47 +02:00
Vincent Francoise
1b14be868e Switch Watcher CLI to an OSC-compatible version
In this changeset, I switched the watcher command line to now use
the OpenStackClient code to avoid code duplication.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I2e0df6a96f4c7c59d33b92c01962f65129bfc7cc
2016-05-24 15:50:11 +02:00
Vincent Francoise
e8236aaf65 OpenStackClient plugin for action
In this changeset, I implemented the 'action' commands.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I3e454d4bb13a392a96787cce3eddcfa7aec4c9e8
2016-05-24 15:50:10 +02:00
Vincent Francoise
0260775f30 OpenStackClient plugin for action plan
In this changeset, I implemented the 'actionplan' commands.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I932321b75981a35a20abd749cfdbe793a52416d7
2016-05-24 15:49:35 +02:00
Vincent Francoise
3b79b58f68 OpenStackClient plugin for audit
In this changeset, I implemented the 'audit' commands.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I49693a8e5715952415b416815d9bec09cff22517
2016-05-24 15:49:12 +02:00
Vincent Francoise
d9c558107e OpenStackClient plugin for audit template
In this changeset, I implemented the 'audittemplate' commands.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I2dc2963c21a6bb05d67122e0c1ba2f6fed9b401a
2016-05-24 15:48:14 +02:00
Vincent Francoise
0be6832e6b OpenStackClient plugin for strategy
In this changeset, I implemented the 'strategy' commands.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I3b2db3d2820961ae9c946ec4c8088bf7c503a433
2016-05-24 15:47:46 +02:00
Vincent Francoise
5586bbdff3 OpenStackClient plugin for goal
In this changeset, I implemented the OpenStackClient plugin which
allows Watcher to be used via the "openstack" unified CLI.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I1e0a3830eb15a9bd5014bbbf45962627d21fe7fa
2016-05-24 15:47:11 +02:00
Vincent Francoise
cbc578998a Tidy up
In this changeset, I do some tidy up so I can later on make it
easier to refactor the lot.

Partially Implements: blueprint openstackclient-plugin

Change-Id: I566101fb951b9489481a3e6c1a4008c80b14f6fd
2016-05-24 15:45:12 +02:00
Dougal Matthews
94af770a6d Use the correct capitalization of OpenStack
Change-Id: I97387a8fdfe3870e5a7548a027906e5a43dd353b
2016-05-18 11:47:56 +01:00
Vincent Francoise
d2c22f0353 Support for refactored /audit_templates endpoint
In this changeset, I updated the Watcher CLI to support the new
goal_uuid and strategy_uuid fields that were introduced.

Partially Implements: blueprint get-goal-from-strategy

Change-Id: I27b239361dd7df7e18d996e31da64d9477d172cc
2016-05-12 12:02:05 +00:00
Vincent Francoise
c5a5b7dad7 Added Strategy support in Watcher CLI
In this changeset, I add the support for the /strategies endpoint.

Partially Implements: blueprint get-goal-from-strategy

Change-Id: I63dbbaefee18e7ae6db180478aae89ac4c09d2cc
2016-05-12 12:01:41 +00:00
Vincent Francoise
e6ca4e54a7 Updated CLI for new /goals API
In this changeset I added the support for the refactored /goals API.

Partially Implements: blueprint get-goal-from-strategy

Change-Id: Idbf8ced7ad9fbe6246e27791890e9b6a3ec0dc9c
2016-05-12 10:03:20 +00:00
David.T
e0d1e5facf Add PrettyTable module
This package was previously imported by a keystoneclient package.
but that is no longer true.

Change-Id: I9b1933de3c57566596d780ce4f2fcb9adf05680b
2016-05-12 11:25:07 +02:00
Vincent Francoise
35c4e93a09 Fixed audit creation bug in CLI
This changeset fixes the issue with the audit creation.

Change-Id: Ic1fd34f1f1db0e45e205a2d19b5d3538efe89925
Closes-Bug: #1573686
2016-04-22 18:13:49 +02:00
Jenkins
567b74ad0a Merge "Add audit-template name checking in CLI" 2016-04-19 09:00:37 +00:00
Larry Rensing
f306a61ece Removed unused 'alarm' field
The 'alarm' field is currently unused, so it has been removed.

Change-Id: I5262dbf65f730ef6974f76186f26e26e3b69a677
Closes-Bug: #1550261
2016-04-18 15:16:00 +00:00
Alexander Chadin
0aaaf13278 Add audit-template name checking in CLI
This patch set allows to send audit_template_uuid as uuid type only.
If audit_template argument given as name, watcherclient will send request
to get audit template uuid.

Change-Id: Idf5f07ca08f2e5d871dc2163c32fbda9ed338a99
Related-Bug: #1532843
2016-04-14 16:13:07 +03:00
OpenStack Proposal Bot
e17dbab7c6 Updated from global requirements
Change-Id: Ib088ed427674d30d52ca1b28fc11647147beef78
2016-04-13 12:48:52 +00:00
Alexander Chadin
3640fc4a0b Rename TRIGGERED state as PENDING
Following the change in Watcher, this patchset updates the
Watcher CLI to support this change. Also it updates README.rst
to pass python 3.4 ascii-tests.

Change-Id: Idfcf99ee3d6b5b7342f1bbc4f726e6edd82fc77c
Closes-Bug: #1548377
Related-Bug: #1554347
0.21.1 0.22.0
2016-03-21 12:17:18 +00:00
OpenStack Proposal Bot
15511203d8 Updated from global requirements
Change-Id: Ife3d32cf3d7054ce9e6e5f7c8f849652a6ba2267
2016-02-20 22:00:57 +00:00
OpenStack Proposal Bot
f390f3526f Updated from global requirements
Change-Id: Ia6f12d87f376841faebcab42ac70a72f6f222985
2016-02-19 02:37:27 +00:00
Jenkins
0ce454f3b3 Merge "Replace deprecated LOG.warn with LOG.warning" 2016-02-18 08:21:48 +00:00
Jenkins
5b4729dcbe Merge "Removed host_aggregate filter for Audit Template" 2016-02-15 09:29:58 +00:00
Tin Lam
a36b42afef Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It is still used in a few places.
This replaces it with the non-deprecated LOG.warning.

Change-Id: I7ed615a24dcb4eff919d747d8f30625d6d4db0ee
Partial-Bug:#1508442
2016-02-14 17:45:11 -06:00
Vincent Francoise
9699fc5f70 Removed host_aggregate filter for Audit Template
Although it was proposed via python-watcherclient, the feature was not
implemented on the Watcher API. As the notion of host aggregate is
currently unused in Watcher, decision was made to only implement the
filtering of goal within the Watcher API whilst removing the
host_aggregate filter from the Watcher client.
Thus, this patchset removes the 'host_aggregate' parameter from the
client.

Change-Id: I014e4b0d5e734ea9ef869c3ad33908a2c0d2aa40
Related-Bug: #1510189
2016-02-12 15:49:26 +00:00
Vincent Francoise
51a3b3fe3f Removed useless '--name' in audit-template-list
This bug outlined that a --name option of the audit-template-list
subcommand was not working properly. But the goal of this command
would have been equivalent to using 'audit-template-show'. That's
why I simply removed it from our client.

Change-Id: I57bb0c88bcf373304e59109cd7557052ef7a980b
Closes-Bug: #1510190
2016-02-11 15:21:42 +01:00
Taylor Peoples
b30fad9965 Sync with openstack/requirements master branch
In order to accept the requirements contract defined in
openstack/requirements, we need to sync with the master branch of that
project's global-requirements.txt and test-requirements.txt files.

Most of the changes are just version changes and nothing major.  The
only major changes are:

1) Removing httpretty and therefore needing to update the test_shell.py
file which uses httpretty.  It seems like the code that was dependent on
httpretty is not even being ran as part of the UTs, so this code was
removed.

2) The twine dependency is removed, and therefore the pypi tox
environment was also removed.

Change-Id: I939856e9b0a32792bea45b42c489dc9bbbe62782
Closes-Bug: #1533283
2016-01-26 07:39:44 +01:00
Vincent Francoise
59c0dc667e Updated STARTING to TRIGGERED
Following https://review.openstack.org/269700, we now have to make the
same changes to the python-watcherclient project.

Change-Id: I894508dc3b04dd0f24101c5dfb396116f41dc23f
Related-Bug: #1533245
0.21.0
2016-01-25 15:56:18 +01:00
Jenkins
dee7be63d9 Merge "Sync Action resource fields" 2016-01-21 17:04:22 +00:00
Andreas Jaeger
3ef4a0cae0 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:23:35 +01:00
Jenkins
670a70ff5a Merge "Fix extraction of _LI _LW _LE _LC for translation" 2016-01-14 16:39:16 +00:00
Jean-Emile DARTOIS
926af3273a Fix extraction of _LI _LW _LE _LC for translation
In order to start translating we should gradually update the messages.
To fix this issue, we need to add _LI _LW _LE _LC in setup.cfg

Change-Id: I21bc850453b7b0f046c38ad724a17d0b8bb2e851
Related-Bug: #1534164
2016-01-14 14:58:23 +01:00
Antoine Cabot
a0f97ee02b Update Watcher documentation in README
Update the header of the README to align
description with launchpad and pypi.

Change-Id: Id724c5b314d8ac9e72ebe7e661e8ab74d6483047
Related-Bug: #1527654
2016-01-14 13:07:06 +00:00
David.T
740dcf7bc2 i18n - Make string translatable
Since internationalization should be enabled in Watcher CLI/SDK,
this patchset refactors the watcherclient codebase to wrap
previously untranslatable strings with i18n translation functions
so we can import them for translation into the .pot template file.

Change-Id: Ibb987e66b95e009e33b596add8c96ecb193a3773
Implements: blueprint support-translation
2016-01-13 11:01:26 +00:00