'watcher audit delete' shouldn't delete an 'ONGOING' audit

Bug #1738358 reported by licanwei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
Medium
licanwei

Bug Description

When audit is 'ONGOING' state, 'watcher audit delete' shouldn't delete the audit.

https://docs.openstack.org/watcher/latest/architecture.html#audit-state-machine

stack@ubuntudbs:/home/code/devstack$ watcher audit list
+--------------------------------------+----------------------------------+------------+-----------+-------+----------+--------------+
| UUID | Name | Audit Type | State | Goal | Strategy | Auto Trigger |
+--------------------------------------+----------------------------------+------------+-----------+-------+----------+--------------+
| d0bf35b8-1699-4f37-b1b3-def553bc2a93 | dummy-2017-11-28T03:01:45.645450 | CONTINUOUS | ONGOING | dummy | dummy | False |
+--------------------------------------+----------------------------------+------------+-----------+-------+----------+--------------+
stack@ubuntudbs:/home/code/devstack$ watcher audit delete d0bf35b8-1699-4f37-b1b3-def553bc2a93
stack@ubuntudbs:/home/code/devstack$ watcher audit list

licanwei (li-canwei2)
Changed in watcher:
assignee: nobody → licanwei (li-canwei2)
importance: Undecided → Medium
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/528210

Changed in watcher:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

Reviewed: https://review.openstack.org/528210
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=a8fa969379a32349953d518df948a10f7c5c7381
Submitter: Zuul
Branch: master

commit a8fa969379a32349953d518df948a10f7c5c7381
Author: licanwei <email address hidden>
Date: Fri Dec 15 01:25:57 2017 -0800

    check audit state when deleting audit

    If audit is 'ONGOING' or 'PENDING', don't delete audit.

    Change-Id: Iac714e7e78e7bb5b52f401e5b2ad0e1d8af8bb45
    Closes-Bug: #1738358

Changed in watcher:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.7.0

This issue was fixed in the openstack/watcher 1.7.0 release.

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.