scheduler of decision_engine doesn't work

Bug #1614511 reported by Alexander Chadin on 2016-08-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Critical
Viacheslav

Bug Description

2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling [req-b52e33be-898e-4e84-a2db-d9110b3115d9 - - - - -] OS-EXT-STS:instance_state
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling Traceback (most recent call last):
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling File "/usr/lib/python2.7/site-packages/watcher/decision_engine/scheduling.py", line 69, in _sync
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling timed_sync()
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling File "/usr/lib/python2.7/site-packages/watcher/decision_engine/scheduling.py", line 57, in _timed_sync
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling sync_func()
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling File "/usr/lib/python2.7/site-packages/watcher/decision_engine/model/collector/base.py", line 169, in synchronize
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling self.cluster_data_model = self.execute()
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling File "/usr/lib/python2.7/site-packages/watcher/decision_engine/model/collector/nova.py", line 82, in execute
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling instance.state = getattr(v, 'OS-EXT-STS:instance_state')
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 180, in __getattr__
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling raise AttributeError(k)
2016-08-18 14:42:51.485 15501 ERROR watcher.decision_engine.scheduling AttributeError: OS-EXT-STS:instance_state

We need to change OS-EXT-STS:instance_state to OS-EXT-STS:vm_state regarding to this discussion

http://eavesdrop.openstack.org/irclogs/%23openstack-watcher/%23openstack-watcher.2016-08-18.log.html#t2016-08-18T12:10:02

Changed in watcher:
assignee: nobody → Viacheslav (samarin)
Prashanth Hari (hvprash) wrote :

This is a duplicate bug. I am already working on it - https://bugs.launchpad.net/watcher/+bug/1614291

Fix proposed to branch: master
Review: https://review.openstack.org/357231

Changed in watcher:
status: New → In Progress
Changed in watcher:
importance: Undecided → Critical
milestone: none → newton-3

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

commit 01164b0790d00c0f292bc3b859ba99dc93af991e
Author: Viacheslav Samarin <email address hidden>
Date: Thu Aug 18 16:31:07 2016 +0300

    Scheduler of decision_engine fix

    This patch set renames 'OS-EXT-STS:instance_state' to 'OS-EXT-STS:vm_state'
    for correct working of decision_engine scheduler.

    Change-Id: I20805a079a991d5f3b8565f52d5f7280c2389bee
    Closes-Bug: #1614511

Changed in watcher:
status: In Progress → Fix Released

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers