AttributeError when running 'watcher actionplan start'

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

Bug Description

If actionplan state is not RECOMMENDED, starting this actionplan will throw an AttributeError exception.

watcher actionplan start 144dab27-ba38-4918-9e14-f1b89226694d
type object 'exceptions.Exception' has no attribute 'StartError' (HTTP 500)

log:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 85, in callfunction
    result = f(self, *args, **kwargs)
  File "/home/code/watcher/watcher/api/controllers/v1/action_plan.py", line 581, in start
    raise Exception.StartError(
AttributeError: type object 'exceptions.Exception' has no attribute 'StartError'

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/586397

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/586397
Committed: https://git.openstack.org/cgit/openstack/watcher/commit/?id=abbb1317d3820fab49471605b960194f755ae2b1
Submitter: Zuul
Branch: master

commit abbb1317d3820fab49471605b960194f755ae2b1
Author: licanwei <email address hidden>
Date: Thu Jul 26 19:50:28 2018 -0700

    Fix AttributeError exception

    StartError is in exception, not Exception

    Change-Id: Iff6ea38a2d0173173719f1cd840d9f3789fcf023
    Closes-Bug: #1783924

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

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