The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3.
Change-Id: I5f0980bf56c8f7b8f9e7f75c7641443e0354e3c1
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I564357caf5982a0db9be01c77e9e8c42bee932d6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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
Templates are written as yaml so why not show them
in the cli by default as yaml. User can still see it
in json using the flag -f json
Change-Id: I17c5b26b8ef2a0ae02886dbf703c29434ad89781
Vitrage can show and delete templates by name
So remove the constraints on using only uuid
in CLI for deleting templates
renamed the parameters also to be more clear
Change-Id: Iaf68f994bdceee4a01ca445bde935ca42077f541
Vitrage template add and template validate can now be called with either
a path or a string that holds the template yaml.
Change-Id: Ieaa372e92d201b46124163b164cc868ae35c86b2
Story: 2004055
Task: 27061
A new optional --params parameter was added to 'vitrage template add'
and 'vitrage template validate' APIs, to allow assigning actual values
to parameters in Vitrage templates.
Story: 2004056
Task: 29134
Depends-On: Iac163aaf6de0e029893386fc4274421df4706c4e
Change-Id: I144f6cb889be6e97e0d4cbcf1fe5820c8d38c716
you can view the graph in graphml format instead of json
using the "-f graphml" in cli command for topology and rca
Change-Id: If364ee51074e5e7e9dc32f54ccb0a06079f6b8ef
you can view the graph in dot format instead of json
using the "-f dot" in cli command for topology and rca
dot format is very common for visualization of graphs
there are many tools that support this format including
online visualizers
Story: 2004063
Task: 27070
Change-Id: I44779d5d46a6ca279e2766b0d3f8e7ca02706b84
- 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
support for template add and template delete
not in use until vitrage backend support the changes.
Change-Id: I07741ed100b9eb70b303567706b659d10a34b156
Implements: blueprint crud-templates
This gives more information and has better compatibility
Change-Id: Ia05320dd72822f517f13ddc79fe55721114344f5
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
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>
Yaml.load() return Python object may be dangerous if you receive
a YAML document from an untrusted source such as the Internet.
The function yaml.safe_load() limits this ability to simple
Python objects like integers or lists.
Reference:
https://security.openstack.org/guidelines/dg_avoid-dangerous-input-parsing-libraries.html
Change-Id: I021bd09d3bbc6d4b9c8965c59c7f4ec4895f8b8b