An error occurred while running the cli cmd 'watcher audit create -g workload_balancing -s workload_stabilization'

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

Bug Description

2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base Traceback (most recent call last):
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/decision_engine/audit/base.py", line 114, in execute
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base solution = self.do_execute(audit, request_context)
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/decision_engine/audit/oneshot.py", line 24, in do_execute
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base audit, request_context)
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/decision_engine/strategy/context/base.py", line 45, in execute_strategy
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base solution = self.do_execute_strategy(audit, request_context)
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/decision_engine/strategy/context/default.py", line 68, in do_execute_strategy
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base return selected_strategy.execute()
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/decision_engine/strategy/strategies/base.py", line 158, in execute
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base self.pre_execute()
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/decision_engine/strategy/strategies/workload_stabilization.py", line 429, in pre_execute
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base self.periods = self.input_parameters.periods
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base File "/opt/stack/watcher_first/watcher/common/utils.py", line 62, in __getattr__
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base raise AttributeError(name)
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base AttributeError: periods
2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base

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

Changed in watcher:
status: New → In Progress
Changed in watcher:
importance: Undecided → High
milestone: none → ocata-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

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

commit a9ef9f3a94d341658a1add27fac78e44325a50f9
Author: licanwei <email address hidden>
Date: Thu Dec 8 13:34:03 2016 +0800

    update strategy table when parameters_spec changes

    At present, In the sync function, there is no check about the
    parameters_spec field in strategy table, if the parameters_spec
    field content has changed, Such as increased 'periods' parameter,
    strategy table will not be updated, the program will run abnormal.

    exception msg:
    2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base
    raise AttributeError(name)
    2016-12-05 11:11:39.138 TRACE watcher.decision_engine.audit.base
    AttributeError: periods

    Change-Id: I84709c246acbdf44ccac257b07a74084962bb628
    Closes-Bug: #1647521

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

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