Cannot filter audit by their audit_template_uuid

Bug #1533220 reported by Vincent Françoise
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
Vincent Françoise

Bug Description

We should be able to filter the audits by their audit template ids

Tags: api
Changed in watcher:
importance: Undecided → Medium
milestone: none → mitaka-3
Revision history for this message
Taylor Peoples (tpeoples) wrote :

Isn't this already supported? Or are you referring to specifically the "id" field of AuditTemplate vs uuid?

stack@vm:~/devstack$ watcher audit-template-list
+--------------------------------------+--------------+
| UUID | Name |
+--------------------------------------+--------------+
| 8f1d6159-93ef-4cfb-b2bf-008f2b835380 | tdp_template |
stack@vm:~/devstack$
stack@vm:~/devstack$ watcher audit-list --audit-template 8f1d6159-93ef-4cfb-b2bf-008f2b835380
+--------------------------------------+---------+---------------------+-----------+
| UUID | Type | Audit Template Name | State |
+--------------------------------------+---------+---------------------+-----------+
| db14ac5e-f365-4987-8725-1c089a1b4b81 | ONESHOT | tdp_template | SUCCEEDED |
+--------------------------------------+---------+---------------------+-----------+
stack@vm:~/devstack$
stack@vm:~/devstack$ watcher audit-list --audit-template tdp_template
+--------------------------------------+---------+---------------------+-----------+
| UUID | Type | Audit Template Name | State |
+--------------------------------------+---------+---------------------+-----------+
| db14ac5e-f365-4987-8725-1c089a1b4b81 | ONESHOT | tdp_template | SUCCEEDED |
+--------------------------------------+---------+---------------------+-----------+

I can also use a query parameter of ?audit_template=foo to do the same thing via REST.

summary: - Cannot filter audit by their audit_template_id
+ Cannot filter audit by their audit_template_uuid
Changed in watcher:
status: Confirmed → Incomplete
Revision history for this message
Vincent Françoise (vincent-francoise) wrote :

After redeploying another devstack I actually made it work. So I will put it as released

Changed in watcher:
status: Incomplete → Fix Released
Changed in watcher:
assignee: nobody → Vincent Françoise (vincent-francoise)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.