scheduler of decision_engine doesn't work

Bug #1614511 reported by Alexander Chadin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
watcher
Fix Released
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)
Revision history for this message
Prashanth Hari (hvprash) wrote :

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

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

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

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
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/watcher 0.29.0

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.