'audit create' failed when stale actionplan with 'ONGOING' state

Bug #1735340 reported by licanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Invalid
High
licanwei

Bug Description

If a 'ONGOING 'actionplan was interrupted,such as the Applier exit and restart because of unexcepted exception.
The actionplan will still have the state of 'ONGOING', never clould be changed.
Unfortunately, we can't create new audit successfully because of the stale 'ONGOING' actionplan.
https://github.com/openstack/watcher/blob/master/watcher/decision_engine/audit/base.py#L130

stack@ubuntudbs:/home/code/devstack$ watcher audit show be1d9cc8-1912-4bd7-afec-a50ccdcf9738
+---------------+--------------------------------------+
| Field | Value |
+---------------+--------------------------------------+
| UUID | be1d9cc8-1912-4bd7-afec-a50ccdcf9738 |
| Name | dummy-2017-11-30T06:21:14.377188 |
| Created At | 2017-11-30T06:21:14+00:00 |
| Updated At | 2017-11-30T06:21:15+00:00 |
| Deleted At | None |
| State | CANCELLED |
| Audit Type | ONESHOT |
| Parameters | {} |
| Interval | None |
| Goal | dummy |
| Strategy | auto |
| Audit Scope | [] |
| Auto Trigger | False |
| Next Run Time | None |
+---------------+--------------------------------------+

licanwei (li-canwei2)
Changed in watcher:
importance: Undecided → High
assignee: nobody → licanwei (li-canwei2)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to watcher (master)

Fix proposed to branch: master
Review: https://review.openstack.org/526293

Changed in watcher:
status: New → In Progress
Revision history for this message
Alexander Chadin (joker946) wrote :

Your proposed patch would be part of HA active-passive mode. I'll contact you to discuss it.

Changed in watcher:
milestone: none → rocky-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on watcher (master)

Change abandoned by licanwei (<email address hidden>) on branch: master
Review: https://review.openstack.org/526293
Reason: https://review.openstack.org/#/c/578102/

Changed in watcher:
status: In Progress → Invalid
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.