diff options
author | Hans Lindgren <hanlind@kth.se> | 2013-02-28 11:00:29 +0100 |
---|---|---|
committer | Hans Lindgren <hanlind@kth.se> | 2013-03-10 13:51:06 +0100 |
commit | 0a22d9dd01dab78ff68829fd2b0651592c8d56b4 (patch) | |
tree | 77bf41e208c335ee29a183c8cef2acbb3419d867 /nova/context.py | |
parent | 92482459963e21cb692c0515450abc81d69e40ed (diff) | |
download | nova-0a22d9dd01dab78ff68829fd2b0651592c8d56b4.tar.gz nova-0a22d9dd01dab78ff68829fd2b0651592c8d56b4.tar.xz nova-0a22d9dd01dab78ff68829fd2b0651592c8d56b4.zip |
Extended server attributes can show wrong hypervisor_hostname
When using the extended server status (EXT-SRV-STS) extension, it might
produce the wrong hypervisor_hostname on multi-node drivers like baremetal.
The db query used is incorrect and in fact not needed anymore, since the info
is already available in the instance dict itself.
This patch resolves the issue by instead using instance['node'] directly
and further removes the no longer used compute_node_get_by_host query.
Resolves bug 1135506.
Change-Id: I641c4f59a088754fe68378ae4bf217c59056b1d1
Diffstat (limited to 'nova/context.py')
0 files changed, 0 insertions, 0 deletions