← Back to team overview

sws team mailing list archive

[Bug 1044664] Re: nova show returns wrong hypervisor_hostname

 

*** This bug is a duplicate of bug 1044238 ***
    https://bugs.launchpad.net/bugs/1044238

** This bug has been marked a duplicate of bug 1044238
   "Nova show" lists incorrect property for compute host

-- 
You received this bug notification because you are a member of Sina Web
Service Dev, which is a bug assignee.
https://bugs.launchpad.net/bugs/1044664

Title:
  nova show returns wrong hypervisor_hostname

Status in OpenStack Compute (Nova):
  New

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"

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1044664/+subscriptions