45 Commits

Author SHA1 Message Date
Hervé Beraud
ae40b5560f Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I7cc35696d770e1bf9e87310e5a081e1abe719522
2020-06-02 20:54:24 +02:00
Eyal
ba5f71fecc Add new api vitrage status
To Check if vitrage is ready then you can check its
status some users don't want to check on every api call
if vitrage is ready, in that case you can check ad hoc

Change-Id: I0817016538a6b286816b99176339262c6453dc08
2019-07-01 13:10:03 +03:00
Eyal
0d93ef1d78 Add new api to list template versions supported
Will print also the status which can be CURRENT, SUPPORTED
or DEPRECATED

Change-Id: I6c7aa8ee92136b8cea9eb4e431f86381dc79206a
2019-06-10 15:14:18 +03:00
Eyal
c293cbd2d5 add a new service list api
Story: 2004897
Task: 29205
Change-Id: Iecb2ae810dd2a6a6b544c2ed7dbfe6288f393178
2019-02-12 14:31:14 +02:00
Idan Hefetz
3deddd8ce6 client support for resource api changes
- added support for query in resource list
 - changed call to resource list from GET to POST
 - added support for resource count new api

Story: 2004669
Task: 28652
Task: 28655

Depends-On: https://review.openstack.org/627309
Change-Id: Ib75b67c15c0a175e804fd020958fb7e50ec4df07
2018-12-30 09:23:54 +00:00
Anna Reznikov
76e7198fe9 support for alarm and RCA history
add new history api and pagination in current alarm list api

Change-Id: Ie5ee407855b6aae6e34f316dce12669cfc1c025c
Story: 2002670
Task:  23216
2018-07-26 09:48:25 +00:00
Zuul
293ea2757e Merge "support template add and delete" 2018-01-18 18:32:03 +00:00
Eyal
4d0d32f4ec pass the namespace to cliff CommandManager
since the upgrade to cliff passing None wont work

Change-Id: I52db440a82f2e4280ea8f59c11f4ba34566e1da4
2018-01-14 09:17:32 +02:00
idan kinory
91c90350d1 support template add and delete
support for template add and template delete
not in use until vitrage backend support the changes.

Change-Id: I07741ed100b9eb70b303567706b659d10a34b156
Implements: blueprint crud-templates
2018-01-11 10:20:14 +00:00
Zuul
0c398e3704 Merge "add support for webhooks" 2018-01-04 04:02:51 +00:00
Niv Oppenhaim
ad0cb386d3 add support for webhooks
Change-Id: Ic8f510da15e49df12d7a3d9c7d24c05958f378e6
Implements: blueprint configurable-notifications
2018-01-03 12:52:52 +00:00
Idan Hefetz
ed9c28867b add alarm show to client
Depends-On: Ia675c6d74ec947729d4520007eac1423cdf58ce9
Change-Id: I4be7ebc7e977ae8ea0a2daf86777ba08f1d4ad61
Implements: blueprint add-alarm-show-api
2018-01-03 08:53:52 +00:00
Tyler Smith
86f34ebb30 Changes to support new alarm counts api in vitrage
This change is to support the new api as introduced by the
alarm-counts-api blueprint.
- There is a new cli added as well to expose the new api:
  vitrage alarm count
- The bash completion file was also updated

Change-Id: I47b5b2cbb32c742ca15478ee294d341c0137e0b5
Depends-On: I6061b63c068580dcd25df5c624d9b3bd88f30cca
Implements: blueprint alarm-counts-api
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
2017-08-14 09:53:38 -04:00
Yujun Zhang
76d348e182 Add blank line to separate osprofiler prompt from results
Change-Id: I98511bd058174481f67df6c756123f9435b603d7
Closes-Bug: #1710471
2017-08-14 12:07:22 +08:00
Yujun Zhang
f5f89f2ae0 Move osprofiler help message to the end of output
Follow the convention of how osprofiler result is displayed in console.
Refer to implementation from nova
See https://github.com/openstack/python-novaclient/blob/master/novaclient/shell.py#L873

Change-Id: I946d634413e13e1861631a171ae2a939dbb9faa5
Implements: blueprint osprofiler-support
2017-07-25 23:04:03 +08:00
Eyal
a10e05f001 supprt keycloak first stage
Change-Id: Id5dff583834ce10b47ff77653f59947dea4bb7fe
2017-07-10 17:28:42 +03:00
Eyal
3d2c0c0c00 fix the condition to print for the osprofiler
print the info only if --profile was used
this fixes the tempest test failure in vitrage

Change-Id: I67f0e2d22007bafba7564adbe07c43585407c39c
2017-07-09 12:19:27 +03:00
Jenkins
dc04c2ae95 Merge "Add option --profile to trigger profiling" 2017-07-09 06:45:07 +00:00
Yujun Zhang
5fd2815577 Add option --profile to trigger profiling
Implements: blueprint osprofiler-support
Change-Id: Ia47981d6036b5425c880fc3daefb67389e99a5ec
2017-07-05 15:58:04 +08:00
Yujun Zhang
c5804d89de Add command for healthcheck
Change-Id: I874809435b9afbb7282b7012a8b720c30b523a2a
2017-07-05 15:22:32 +08:00
Eyal
b4687f9b10 make the import not relative
Change-Id: Ifea1d8ccdd5ceefffffc092e91a869ea75e324dd
2017-07-02 15:30:18 +03:00
Eyal
6327e9ee52 add option to connect without authentication
user can provide the user name , project id and endpoint
and connect directly to vitrage without connecting to keystone

the user should use the no-auth plugin for this

Change-Id: Id672ab974fb383c03ef8360b54a385b2f6aeae86
2017-06-28 11:49:54 +03:00
Eyal
471cc55dcd add validation for topology and post event for cli
* check that limit is a positive number in 'vitrage topology show'
* check that time is an iso8601 timestamp in 'vitrage event post'
* add tests to check this

Change-Id: If5c4b26578f865c68709027b6e815376e4ee9e1e
2017-06-27 15:18:50 +03:00
Ifat Afek
3f713d8da3 Support post event API.
Change-Id: Iabb54edfef6330625468c0b410b470a8120401c7
Implements: blueprint support-inspector-sb-api
2017-01-22 12:15:33 +00:00
Eyal
0d701694ad change api syntax for alarms list
change for 'alarms list' to 'alarm list'

Change-Id: I05408636ea1faa51ff6ee0425e7063645f74499a
2016-08-21 09:10:07 +03:00
liathartal
55a21d2fd8 add template show api
Change-Id: If84fea76667acf0735d38adf0073a53cb5f4775d
2016-07-03 12:18:38 +00:00
liathartal
4191c746fd template list - client side
Change-Id: Ib0a1ad7c18b05714348ba495ca113e73135a45a3
2016-06-21 10:52:51 +00:00
liathartal
bfc17530bd Template Validate API - client side
Change-Id: Iba0ca35f78d33e271504797ad56e2f201983be9e
2016-06-05 10:07:43 +00:00
Jenkins
0a05793dc3 Merge "change allow_abbrev to be false for argparse" 2016-03-22 10:39:25 +00:00
Eyal
f0ae82388d change allow_abbrev to be false for argparse
Change-Id: Ief1fb895ca76ea39f14463ae33243282a10f617d
2016-03-22 12:29:12 +02:00
Eyal
35243516fb add endpoint override option
Change-Id: I88ac9944ca1bc0b0c21cd34883665d5d4e2380d4
2016-03-22 12:12:50 +02:00
Eyal
a203e4ada2 remove redundant code
Change-Id: I4e2cc07355e01463032edf1b4e6bda6a4d2d3a0a
2016-02-28 10:23:59 +02:00
Eyal
c470c59c75 cosmetic change
Change-Id: Ifd8f03cce2d18c821a43a84cc535e41fa0d0bc3f
2016-02-11 15:41:37 +02:00
Eyal
13c8e61dd9 cosmetic change
change from double quote to single quote

Change-Id: Id0b3f6c88b4338e5c86577bd584594fefc8413ae
2016-02-08 15:40:43 +02:00
Eyal
d5f4cf07fe add rca api
Change-Id: I58c29e3fd99b5e9f5d686c3cbb57c19302dc0947
2016-02-01 15:47:11 +02:00
Eyal
80a4ba1cbe add alarms api
Change-Id: Ib1e9f13c5fd370ede384a02d93f9dc9e719ad5c3
2016-01-28 11:12:41 +02:00
Eyal
6db6113566 add show resource and list resources
Implements: blueprint vitrage-cli
Change-Id: I7b41f60321d4f3c119245e99b2c80ce4fc508f30
2016-01-21 12:13:13 +02:00
Eyal
63c432098a remove redundant mainfest.in file
Change-Id: I600cafd6aa500e61df4eda3bf5a4e67e826633dd
Implements: blueprint vitrage-cli
2015-12-17 11:00:49 +02:00
Eyal
d4f75a8254 initialize the client field
Change-Id: I4ab07a50f38fb43580e25ac5462170d5e7906ff1
Implements: blueprint vitrage-cli
2015-11-22 13:58:00 +02:00
Eyal
01bf1694c9 removed topology-list
there is only one topology at the moment
no need for id also

Change-Id: I65407bd8aef4ea5563023b492d63656759fae145
Implements: blueprint vitrage-cli
2015-11-22 10:00:06 +02:00
Eyal
ae3935d7a5 add more api
added topology show and topology list

Implements: blueprint vitrage-cli
Change-Id: Id630e19c240fef95692260235e67e36b970120c6
2015-11-19 15:33:53 +02:00
Eyal
3a20796127 small refactoring
extract methods to make it more readable

Implements: blueprint vitrage-cli
Change-Id: Ie061345f1c7b5ebe61f143b190c9378c7e12ee01
2015-11-18 15:43:16 +02:00
Eyal
37dbb2051b add more boilerplate files
Implements: blueprint vitrage-cli
Change-Id: I1390ad4dfa40fcbddebaee628d8d928f5aa2bd49
2015-11-17 16:19:25 +02:00
Eyal
287aa41c50 add initial files for shell
Implements: blueprint vitrage-cli
Change-Id: I555152c53f4b27d95a215cea0fedf782daa446cf
2015-11-16 17:13:18 +02:00
Eyal
021c848fbd initial skeleton
Change-Id: I3739597ef0dacad87a9313db819ad7c5cb9558f9
2015-11-15 17:05:23 +02:00