I've got a FAILED response by running a DUMMY audit

Bug #1521898 reported by David TARDIVEL
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
High
Vincent Françoise

Bug Description

The default Watcher configuration defines a DUMMY goal I tried to use to run an audit:

$ template_id=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`
$ watcher audit-template-create $template_id DUMMY
$ watcher audit-create -t ONESHOT -a $template_id

root@console_0_0_1:~# watcher audit-list
+--------------------------------------+---------+----------------------------------+--------+
| UUID | Type | Audit Template Name | State |
+--------------------------------------+---------+----------------------------------+--------+
| ff699b6c-f42b-4876-a8ba-4de8823b639c | ONESHOT | BhPX5UujhhiCdHOTPYB6hfFBzL3zcwGA | FAILED |
+--------------------------------------+---------+----------------------------------+--------+

by debugging, I have a KeyError exception here:

(Pdb) n
> /usr/local/lib/python2.7/dist-packages/watcher/decision_engine/planner/default.py(127)schedule()
-> description="{0}".format(
(Pdb) n
> /usr/local/lib/python2.7/dist-packages/watcher/decision_engine/planner/default.py(128)schedule()
-> action))
(Pdb) n
> /usr/local/lib/python2.7/dist-packages/watcher/decision_engine/planner/default.py(131)schedule()
-> priority = priority_primitives[primitive['action_type']]
(Pdb) n
KeyError: ('NOP',)
> /usr/local/lib/python2.7/dist-packages/watcher/decision_engine/planner/default.py(131)schedule()
-> priority = priority_primitives[primitive['action_type']]
(Pdb)

Changed in watcher:
assignee: David TARDIVEL (david-tardivel) → Vincent Françoise (vincent-francoise)
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/252310

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/252310
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=1cf4e1527699777aea5a8a76d8685ab975fd450b
Submitter: Jenkins
Branch: master

commit 1cf4e1527699777aea5a8a76d8685ab975fd450b
Author: Vincent Françoise <email address hidden>
Date: Wed Dec 2 11:04:07 2015 +0100

    Added priority level to Nop action

    Change-Id: I166e9cc80b1d9e326c9d65b47e38da26dffb5004
    Closes-Bug: #1521898

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