Extended server attributes can show wrong hypervisor_hostname

Bug #1135506 reported by Hans Lindgren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Hans Lindgren

Bug Description

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.

Tags: baremetal
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/23163
Committed: http://github.com/openstack/nova/commit/0a22d9dd01dab78ff68829fd2b0651592c8d56b4
Submitter: Jenkins
Branch: master

commit 0a22d9dd01dab78ff68829fd2b0651592c8d56b4
Author: Hans Lindgren <email address hidden>
Date: Thu Feb 28 11:00:29 2013 +0100

    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

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-rc1 → 2013.1
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.