_build_instance_node error for building Compute CDM

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

Bug Description

10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 ERROR watcher.decision_engine.scheduling [re
q-ba138b87-3555-4ee8-b759-32d37decd407 None None] 'id': KeyError: 'id'
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling Tra
ceback (most recent call last):
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling F
ile "/opt/stack/watcher/watcher/decision_engine/scheduling.py", line 74, in _sync
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling
 timed_sync()
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling F
ile "/opt/stack/watcher/watcher/decision_engine/scheduling.py", line 62, in _timed_sync
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling
 sync_func()
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling F
ile "/opt/stack/watcher/watcher/decision_engine/model/collector/base.py", line 192, in synchronize
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling
 self.cluster_data_model = self.execute()
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling F
ile "/opt/stack/watcher/watcher/decision_engine/model/collector/nova.py", line 174, in execute
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling
 return builder.execute()
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling F
ile "/opt/stack/watcher/watcher/decision_engine/model/collector/nova.py", line 480, in execute
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling self._add_virtual_layer()
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling File "/opt/stack/watcher/watcher/decision_engine/model/collector/nova.py", line 307, in _add_virtual_layer
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling self._add_virtual_servers()
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling File "/opt/stack/watcher/watcher/decision_engine/model/collector/nova.py", line 315, in _add_virtual_servers
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling instance = self._build_instance_node(inst)
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling File "/opt/stack/watcher/watcher/decision_engine/model/collector/nova.py", line 341, in _build_instance_node
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling flavor = self.nova_helper.get_flavor(instance.flavor["id"])
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling KeyError: 'id'
10月 10 15:56:11 w001 watcher-decision-engine[5668]: 2017-10-10 15:56:11.550 TRACE watcher.decision_engine.scheduling

Revision history for this message
Hidekazu Nakamura (nakamura-h) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to watcher (master)

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

commit 7d33bf88131845ca796ad09cce7fe435c056fbb5
Author: Hidekazu Nakamura <email address hidden>
Date: Tue Oct 10 17:21:05 2017 +0900

    Fix _build_instance_node for building Compute CDM

    As of Nova API microversion 2.47, response of GET /servers/detail has flavor
    which contains a subset of the actual flavor information used to create the
    server instance, represented as a nested dictionary.

    Since current watcher nova default api version is 2.53(Pike), This patch
    follows the API response change.

    Change-Id: Ia575950f0702afa1d093f03ca8ddedd3c410b7de
    Closes-Bug: #1722462

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

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