26 Commits

Author SHA1 Message Date
Jenkins
1fa93eeb8f Merge "Add auto_trigger support" 2017-01-16 10:18:55 +00:00
DeepaJon
17a144e2f8 Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8 encoding in the
watcherclient/*
doc/source/conf.py

Change-Id: Ic74c9c57f52f7bf021dfa25d4de069b57e5cb474
2017-01-11 14:23:40 +05:30
licanwei
658fd038f3 update audit create '--interval' description
update audit create '--interval' description

Change-Id: I03779a8fe446c051397f02cfb2d73bda804706fe
2017-01-10 18:02:55 +01:00
Jenkins
de54d5b8ba Merge "Add unit for continuous audit's interval." 2017-01-10 16:27:10 +00:00
ericxiett
d08c0e3ef1 Add unit for continuous audit's interval.
End user does not get the unit of 'interval' when use command
``watcher audit create -h``. This patch adds unit for the option
'interval'. Aslo use single quotes.

Change-Id: I9e3df031822f2f2704a3c661c6a5953d7e0caae5
Closes-Bug: #1653322
2017-01-03 08:07:10 +08:00
licanwei
bf7085fabd use 'auto' instead of None
In cli cmds:watcher audit create,
the Strategy is None if no --strategy
It's better to use default instead of None
watcher audit create -g thermal_optimization
+-------------+--------------------------------------+
| Field       | Value                                |
+-------------+--------------------------------------+
| UUID        | 2bc3001d-683a-48ee-b2f2-766cb8d6329e |
| Created At  | 2016-12-22T08:41:21.173601+00:00     |
| Updated At  | None                                 |
| Deleted At  | None                                 |
| State       | PENDING                              |
| Audit Type  | ONESHOT                              |
| Parameters  | {}                                   |
| Interval    | None                                 |
| Goal        | thermal_optimization                 |
| Strategy    | None                                 |
| Audit Scope | []                                   |
+-------------+--------------------------------------+

Change-Id: I5798df81303c425ed0e26e401589e6680b945bf6
2016-12-22 17:52:29 +08:00
Alexander Chadin
6e291f0f13 Add auto_trigger support
This patch set adds support of auto-triggering for action plans.
You can use it by adding new attribute '--auto-trigger' to
watcher audit create command.

Change-Id: I2e4ee53f9f639cb3248c0e4dcc7b9716ff1fc352
Partially-Implements: blueprint automatic-triggering-audit
Depends-On: I36b7dff8eab5f6ebb18f6f4e752cf4b263456293
2016-12-16 17:01:46 +00:00
David.T
c8bf47d72d Remove obsolete object attributes
As we are about to version the Watcher objects, we need to make sure
that upcoming model/object modifications are additive in order to
avoid having to bump the major version of the API. Therefore,
this changeset removes 2 unused DB fields: extra in Audit Template
object and deadline in Audit object.

Change-Id: Ib9750d2dee8b565bd837341f826999b64c4e2cc3
Partially-Implements: blueprint watcher-versioned-objects
2016-11-14 10:03:37 +00:00
Alexander Chadin
c185f32ebb Add support for Audit Scope
This patch set adds audit scope support in python-watcherclient.

Change-Id: I2a94320bec0fd7051a38bee1c872148e39f69d0c
Partially-Implements: blueprint define-the-audit-scope
2016-10-07 12:30:44 +03:00
David.T
6e858233dc Add again parameters as Audit creation attributes
'parameters' option for audit creation was removed due to
a bad merge conflict resolution.

Change-Id: I37848ca7c1e8d6cd03996a5a81471edd9802b673
Closes-Bug: #1617320
2016-08-26 16:02:42 +02:00
licanwei
008b50ea67 remove redundant ')'
There is more one ')' in the class UpdateAudit
help=_("Operation: 'add'), 'replace', or 'remove'."))

Change-Id: Ifdce30981fd63f3fb95520c49740b4bf67c23778
2016-08-15 15:29:05 +08:00
Jenkins
b836d83bc2 Merge "Add goal_id, strategy_id and host_aggregate CLI options to audit" 2016-08-04 16:07:40 +00:00
Prashanth Hari
6fbcfc794a Add goal_id, strategy_id and host_aggregate CLI options to audit
Add goal_id, strategy_id and host_aggregate CLI options to audit
so that an audit doesn't lose important information when an audit
template is deleted. Also, user can input a specific strategy to
accomplish a goal for an audit.

Partially-Implements: blueprint persistent-audit-parameters
Depends-On: I7b3eae4d0752a11208f5f92ee13ab1018d8521ad
Change-Id: Ied1da980f358343316ee726b0781188107bfba8d
2016-08-04 14:09:44 +00:00
zte-hanrong
aa90c536b3 Optimiz the help information for audit type parameter.
I want to create a audit from audit template, I don't know correct
audit type value I can use. So I optimize the help information for
audit create shell command.

Change-Id: Idee3bb2e62c9cdb9bf70cced4acbc4df4f8a968c
2016-08-04 16:41:51 +08:00
Alexandr Stavitskiy
e2586130e1 Fix for importing osc-lib instead openstackclient
This patch set stop importing from the python-openstackclient and
start importing from osc-lib.

Change-Id: I6e4000565e48467f3e32a9cc408ab8a04b9c5f8a
Closes-Bug: #1604047
2016-07-19 18:52:42 +03:00
Vladimir Ostroverkhov
918d2f0bbd Add support continuously-optimization
This patch set adds support for interval
field to python-watcherclient

Depends-On: I5f4ec97b2082c8a6b3ccebe36b2a343fa4a67d19
Implements: blueprint continuously-optimization

Change-Id: I1152c9c6d9379e250ba46adbc58789d8b13bfd5a
2016-07-12 07:20:28 +00:00
Edwin Zhai
bde259e38c Enable strategy parameter
Print strategy parameter spec and add new cmd line for parameters
input

Partially-implements: optimization-threshold

Change-Id: If2b8976c6d504754d9db46bb77d3c4ce04b1e2cf
2016-07-07 11:14:56 +02:00
digambar
75dd8dc561 Fix field type to audit_type
There's a number of places where a field of an object is named "type",
which isn't good thing. Actually type is keyword in python, so wherever
I found type used in models/api/object/test, I have fixed it to
audit_type in the audit files

Change-Id: Ic09458b455820787f5483e48aed940a2196b297e
Closes-Bug: #1533392
2016-07-06 21:55:53 +05:30
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
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
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
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
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
David.T
03d12fd030 Sync with oslo-incubator
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
2016-01-12 15:52:32 +00:00
David TARDIVEL
3957331e52 push initial version
Change-Id: Ifecc2c7dd6bd859ba6ef327fddd891982382df3b
2015-06-04 14:59:34 +02:00