When the action plan is empty, it's state is incorrect

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

Bug Description

When the action plan is empty,it's state is still 'RECOMMENDED'. I think it's should be 'FAILED'.

[stack@tecs devstack(keystone_admin)]$watcher audit create -g server_consolidation -s basic
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| UUID | 8e90a9b2-8596-43ce-b173-ddeaf724df7d |
| Created At | 2016-09-01T06:46:53.024339+00:00 |
| Updated At | None |
| Deleted At | None |
| Deadline | None |
| State | PENDING |
| Audit Type | ONESHOT |
| Parameters | {} |
| Interval | None |
| Host Aggregate ID or Name | None |
| Goal | server_consolidation |
| Strategy | basic |
+---------------------------+--------------------------------------+
[stack@tecs devstack(keystone_admin)]$watcher audit list
+--------------------------------------+------------+-----------+----------------------+----------+
| UUID | Audit Type | State | Goal | Strategy |
+--------------------------------------+------------+-----------+----------------------+----------+
| 8e90a9b2-8596-43ce-b173-ddeaf724df7d | ONESHOT | SUCCEEDED | server_consolidation | basic |
+--------------------------------------+------------+-----------+----------------------+----------+
[stack@tecs devstack(keystone_admin)]$watcher actionplan list
+--------------------------------------+--------------------------------------+-------------+------------+-----------------+
| UUID | Audit | State | Updated At | Global efficacy |
+--------------------------------------+--------------------------------------+-------------+------------+-----------------+
| 94e03701-ba2e-47cd-978c-5328896e13bd | 8e90a9b2-8596-43ce-b173-ddeaf724df7d | RECOMMENDED | None | 0 % |
+--------------------------------------+--------------------------------------+-------------+------------+-----------------+
[stack@tecs devstack(keystone_admin)]$watcher action list

[stack@tecs devstack(keystone_admin)]$

licanwei (li-canwei2)
Changed in watcher:
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/364149

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

Reviewed: https://review.openstack.org/364149
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=a684e70b61a000ec8344cbc6cf7961859c300362
Submitter: Jenkins
Branch: master

commit a684e70b61a000ec8344cbc6cf7961859c300362
Author: licanwei <email address hidden>
Date: Thu Sep 1 16:58:56 2016 +0800

    When action plan is empty, its state is incorrect

    When the action plan is empty,its state is still 'RECOMMENDED'.
    I think it's should be 'SUCCEED'.
    Closes-Bug: #1619155

    Change-Id: Icd10707c7892089999f8b37775ca62bde47db0c4

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

This issue was fixed in the openstack/watcher 0.30.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.