Action plan continues to be recommended after updating continuous audit to oneshot

Bug #1659556 reported by Hidekazu Nakamura
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
watcher
Triaged
Medium
aditi sharma

Bug Description

Action plan continues to be recommended after updating continuous audit to oneshot.
Action plan expected to stop to be recommended because of oneshot mode.

The following is the operation:

hid-nakamura@w001:~$ watcher audit create -g dummy -s dummy -i 30 -t CONTINUOUS
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| UUID | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf |
| Created At | 2017-01-24T01:25:28.831493+00:00 |
| Updated At | None |
| Deleted At | None |
| State | PENDING |
| Audit Type | CONTINUOUS |
| Parameters | {u'para2': u'hello', u'para1': 3.2} |
| Interval | 30 |
| Goal | dummy |
| Strategy | dummy |
| Audit Scope | [] |
+-------------+--------------------------------------+
hid-nakamura@w001:~$ watcher audit list
+--------------------------------------+------------+---------+-------+----------+
| UUID | Audit Type | State | Goal | Strategy |
+--------------------------------------+------------+---------+-------+----------+
| 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CONTINUOUS | ONGOING | dummy | dummy |
+--------------------------------------+------------+---------+-------+----------+

hid-nakamura@w001:/opt/stack/python-watcherclient$ watcher actionplan list
+--------------------------------------+--------------------------------------+-------------+---------------------------+-----------------+
| UUID | Audit | State | Updated At | Global efficacy |
+--------------------------------------+--------------------------------------+-------------+---------------------------+-----------------+
| dc4ca01e-d81e-48df-8bae-914069b13969 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:26:08+00:00 | None |
| 8a7048f6-7b7b-48cd-971d-40aef7135ae4 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:26:38+00:00 | None |
| 75394acd-d5fe-4fe2-9edb-fd714c76926d | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:27:08+00:00 | None |
| 2371a5e0-9dd3-420f-acbd-edafd2beea2b | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:27:38+00:00 | None |
| 5ee48a84-6695-4258-9483-d10f6561ca17 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:28:08+00:00 | None |
| d3b65754-633e-4c6a-9275-06385aa53992 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:28:38+00:00 | None |
| 4937bba7-29a7-41dc-882d-26fe858f8839 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:29:08+00:00 | None |
| 8226cdcd-90b6-4cd0-b568-7577b11904a4 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | RECOMMENDED | 2017-01-24T01:29:08+00:00 | None |
+--------------------------------------+--------------------------------------+-------------+---------------------------+-----------------+

hid-nakamura@w001:/opt/stack/python-watcherclient$ watcher audit update 0ec275c3-7cbe-4e8c-9121-821378e3ebbf replace audit_type=ONESHOT
+--------------+--------------------------------------+
| Field | Value |
+--------------+--------------------------------------+
| UUID | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf |
| Created At | 2017-01-24T01:25:28+00:00 |
| Updated At | 2017-01-24T01:30:14.916332+00:00 |
| Deleted At | None |
| State | ONGOING |
| Audit Type | ONESHOT |
| Parameters | {u'para2': u'hello', u'para1': 3.2} |
| Interval | 30 |
| Goal | dummy |
| Strategy | dummy |
| Audit Scope | [] |
| Auto Trigger | False |
+--------------+--------------------------------------+

hid-nakamura@w001:/opt/stack/python-watcherclient$ watcher actionplan list
+--------------------------------------+--------------------------------------+-------------+---------------------------+-----------------+
| UUID | Audit | State | Updated At | Global efficacy |
+--------------------------------------+--------------------------------------+-------------+---------------------------+-----------------+
| dc4ca01e-d81e-48df-8bae-914069b13969 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:26:08+00:00 | None |
| 8a7048f6-7b7b-48cd-971d-40aef7135ae4 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:26:38+00:00 | None |
| 75394acd-d5fe-4fe2-9edb-fd714c76926d | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:27:08+00:00 | None |
| 2371a5e0-9dd3-420f-acbd-edafd2beea2b | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:27:38+00:00 | None |
| 5ee48a84-6695-4258-9483-d10f6561ca17 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:28:08+00:00 | None |
| d3b65754-633e-4c6a-9275-06385aa53992 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:28:38+00:00 | None |
| 4937bba7-29a7-41dc-882d-26fe858f8839 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:29:08+00:00 | None |
| 8226cdcd-90b6-4cd0-b568-7577b11904a4 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:29:38+00:00 | None |
| a50ad112-c612-45db-9cfc-8950682af70b | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | CANCELLED | 2017-01-24T01:30:08+00:00 | None |
| 0fcb33a8-2944-4daf-8dfe-416fa2fa4340 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | RECOMMENDED | 2017-01-24T01:30:08+00:00 | None |
| 6f497e8b-0ab9-452f-8882-b9423cc93563 | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | RECOMMENDED | 2017-01-24T01:30:38+00:00 | None |
| 2ce0c7fb-2488-4610-af0a-217d23a19a6d | 0ec275c3-7cbe-4e8c-9121-821378e3ebbf | RECOMMENDED | 2017-01-24T01:31:08+00:00 | None |
+--------------------------------------+--------------------------------------+-------------+---------------------------+-----------------+

Interval of oneshot audit should be None, but interval could not be changed to None.

description: updated
Changed in watcher:
importance: Undecided → Medium
Changed in watcher:
milestone: none → ocata-rc1
Changed in watcher:
milestone: ocata-rc1 → none
status: New → Triaged
aditi sharma (adi-sky17)
Changed in watcher:
assignee: nobody → aditi sharma (adi-sky17)
Revision history for this message
Alexander Chadin (joker946) wrote :

It should be fixed by API Validation blueprint

Revision history for this message
Dantali0n (dantalion) wrote :

Problem still exists, restarting the decision-engine service mitigates the issue.

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.