no check audit state when updating audit state

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

Bug Description

we can update audit state other than audit state machine is defined as of now.
we should check audit state when updating existing audit.

aditi sharma (adi-sky17)
Changed in watcher:
status: New → Confirmed
assignee: nobody → aditi sharma (adi-sky17)
Revision history for this message
aditi sharma (adi-sky17) wrote :
Revision history for this message
Hidekazu Nakamura (nakamura-h) wrote :

thanks, aditi.

I already proposed code, which is not displayed here.
https://review.openstack.org/#/c/429995/
but i did not see validation check of action plan you checked.

aditi sharma (adi-sky17)
Changed in watcher:
assignee: aditi sharma (adi-sky17) → nobody
Revision history for this message
aditi sharma (adi-sky17) wrote :

@Hidekazu just follow the link
https://github.com/openstack/watcher/blob/master/watcher/api/controllers/v1/action_plan.py#L493
there are allowed patch transitions for action plan, otherwise what you have propsed is also doing the same thing.

Thanks for the patch

Changed in watcher:
milestone: none → ocata-rc-final
assignee: nobody → Hidekazu Nakamura (nakamura-h)
importance: Undecided → Medium
status: Confirmed → Fix Committed
Changed in watcher:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

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

commit 0d83354c5740bd9b63ec126383da03bd16ab5427
Author: Hidekazu Nakamura <email address hidden>
Date: Tue Feb 7 11:39:28 2017 +0900

    Add checking audit state

    This patch adds checking audit state when updating an existing audit
    in accordance with audit state machine.

    Closes-Bug: #1662406

    Change-Id: I20610c83169b77f141974a5cebe33818a4bf0728

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/434901

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (stable/ocata)

Reviewed: https://review.openstack.org/434901
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=ed3224835aea5f184c1e6941563854a77f0621b5
Submitter: Jenkins
Branch: stable/ocata

commit ed3224835aea5f184c1e6941563854a77f0621b5
Author: Hidekazu Nakamura <email address hidden>
Date: Tue Feb 7 11:39:28 2017 +0900

    Add checking audit state

    This patch adds checking audit state when updating an existing audit
    in accordance with audit state machine.

    Closes-Bug: #1662406

    Change-Id: I20610c83169b77f141974a5cebe33818a4bf0728
    (cherry picked from commit 0d83354c5740bd9b63ec126383da03bd16ab5427)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.0.1

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/watcher 1.1.0

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