Add a new EVENT type to audit type and change the microversion
to 1.4
Partially Implements: blueprint event-driven-optimization-based
Change-Id: Ia9608534d12f6877f9b93e88fa75fe9457c29347
Removes old cliutils.py file that contains methods provided by osc_lib
and remove prettytable dependency that was only required by cliutils.py
Depends-on: I8bc3330a456f8bb76a17c4277a094a64fe9be449
Change-Id: Ib9eedafb211c205ff8b7dd18a9fc87e1f0b2739f
This patch set updates watcher api command argument.
1. os_watcher_api_version to os_infra_optim_api_version
2. OS_WATCHER_API_VERSION to OS_INFRA_OPTIM_API_VERSION
This patch set also updated --os-infra-optim-api-version help message.
Change-Id: I2502377b350b8cabfeba80c68f0569d567d24b3a
Add new start_time and end_time fields when audit create
Partially Implements: blueprint add-start-end-time-for-continuous-audit
Change-Id: I37d1bd13649dfb92ce7526f04b25054ed088c4f2
Currently, watcher start actionplan command uses update request
to start the action plan.
PATCH /v1/action_plans
This Patch Set will send the request to new API for action plan start
POST /v1/action_plans/action_plan_uuid/start
Depends-on: I5353e4aa58d1675d8afb94bea35d9b953514129a
Change-Id: I15291efa994daf719342d764f6179ca7699d8b08
Related-Bug: #1756274
This patch removes retries from python-watcherclient in case
watcher-api responded with conflict case.
Change-Id: I830abe0a3cd67484e165a0a42d5a57b75ed4dac6
Closes-Bug: #1725088
Now for wrap input it will take only postive integers as an input and
if any negative numbers are give it will give output as "Wrap argument
should be a positive integer".
Change-Id: I375dab0bdd53ee464f5634162472000119f247cb
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can
use dict.items instead, as it will return
iterators in PY3 as well. And dict.items/keys
will more readable. 2.In py2, the performance
about list should be negligible, see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html
Change-Id: Ic6af69d5b4b36f3dd02aab0f9c446aa54970f388
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining __eq__(),
one should also define __ne__() so that the operators will behave as
expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__
Change-Id: I6b43b9ac33b4f6e6331b390366e68f2a5bbb997c
This patch set adds audit scope support in python-watcherclient.
Change-Id: I2a94320bec0fd7051a38bee1c872148e39f69d0c
Partially-Implements: blueprint define-the-audit-scope
In this changeset, I refactored some of the code to now support
the creation of a watcher client using a Keystone session as it was
already possible in most other OS projects.
Change-Id: I3462daeaac9103138366a0fcaa2fc46729bbd8ce
Related-Bug: #1625643
Closes-Bug: #1623070
This patch set fixes error while importing of ConnectionRefused
exception class.
Change-Id: I4aee677ccc25334ba9bd12633b1c487db2b1dd3e
Closes-Bug: #1602214
Client prints 'None' when data is None , and client also prints
'None' when data is a string 'None'. But string 'None' is different
to None. To clear the confusion, Client should print '-' instead of
'None' when data is None. Nova Client and Cinder Client has cleared
the confusion.
Change-Id: I6a8908fcb2df39d7f2c5fc4055cc41779d668d6c
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
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
In this changeset I added the support for the refactored /goals API.
Partially Implements: blueprint get-goal-from-strategy
Change-Id: Idbf8ced7ad9fbe6246e27791890e9b6a3ec0dc9c
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
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
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
Most of librairies available under openstack/common folder are
now deployed by using oslo dedicated package. So we can remove
them and point to new python package.
Moreover, According to the November agreement in Oslo team,
apiclient and clituils will be removed from Oslo incubator.
We should keep the local copy by ourselfs
Change-Id: I3abc09d1c512df1f5cb868ed462a7900260705ce
Implements: blueprint make-watcherclient-use-graduated-oslo-lib