nova show returns wrong hypervisor_hostname

Bug #1044664 reported by Jian Wen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Jian Wen

Bug Description

Related table info:

mysql> select id, host, disabled from services;
+----+-----------+----------+
| id | host | disabled |
+----+-----------+----------+
| 1 | ivan-dev0 | 0 |
| 2 | ivan-dev0 | 0 |
| 3 | ivan-dev0 | 0 |
| 4 | ivan-dev0 | 0 |
| 5 | ivan-dev0 | 0 |
| 6 | ivan-dev2 | 0 |
| 7 | ivan-dev2 | 1 |
| 8 | ivan-dev2 | 1 |
+----+-----------+----------+
8 rows in set (0.00 sec)

mysql> select id, hypervisor_hostname, service_id from compute_nodes;
+----+---------------------+------------+
| id | hypervisor_hostname | service_id |
+----+---------------------+------------+
| 1 | ivan-dev0 | 1 |
| 3 | ivan-dev2 | 6 |
+----+---------------------+------------+
2 rows in set (0.00 sec)

Now we try to call db.compute_node_get_by_host

compute_node = db.compute_node_get_by_host(context, 'ivan-dev2')
# expect the print below outputs "ivan-dev2"
print compute_node['hypervisor_hostname']
ivan-dev0
# but the output is "ivan-dev0"

Jian Wen (wenjianhn)
Changed in nova:
assignee: nobody → Sina Web Service Dev (sws)
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/12292

Changed in nova:
assignee: Sina Web Service Dev (sws) → Jian Wen (wenjianhn)
status: New → In Progress
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.