← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1322921] [NEW] hypervisor-servers command always search by wildcard as '%hypervisor_hostname%'

 

Public bug reported:

I searched servers by specific hypervisor. However the result is
included with other hypervisors matched by wildcard with
'%hypervisor_hostname%'.

I found this bug by following command:

admin@controller:~$ nova hypervisor-servers 10-0-0-1
+--------------------------------------+-------------------+---------------+---------------------+
| ID                                   | Name              | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| db52fd93-cc80-4d5e-852c-b113dec35fbf | instance-000000a0 | 1             | 10-0-0-10           |
| 5b15fa8a-66d8-4db1-bb0e-c52fc3a030f3 | instance-000000a1 | 1             | 10-0-0-10           |
| 2b492995-007d-4435-8f6b-037ea57188dc | instance-000000a2 | 2             | 10-0-0-11           |
| 45b18880-c0f1-4b8b-a21d-80f9dd2566ff | instance-000000a3 | 2             | 10-0-0-11           |
+--------------------------------------+-------------------+---------------+---------------------+
admin@controller:~$ nova hypervisor-servers 10-0-0-11
+--------------------------------------+-------------------+---------------+---------------------+
| ID                                   | Name              | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| 2b492995-007d-4435-8f6b-037ea57188dc | instance-000000a2 | 2             | 10-0-0-11           |
| 45b18880-c0f1-4b8b-a21d-80f9dd2566ff | instance-000000a3 | 2             | 10-0-0-11           |
+--------------------------------------+-------------------+---------------+---------------------+


This bug is contained in compute api v2 extensions

at /v2/​{tenant_id}​/os-hypervisors/​{hypervisor_hostname}​/servers

admin@controller:~$ curl -H "X-Auth-Token:MIILxxxx" "http://localhost:8774/v2/771be698aba4431daf41c8012df97e7b/os-hypervisors/10-0-0-1/servers";
{"hypervisors": [{"id": 1, "hypervisor_hostname": "10-0-0-10", "servers": [{"uuid": "db52fd93-cc80-4d5e-852c-b113dec35fbf", "name": "instance-000000a0"}, {"uuid": "5b15fa8a-66d8-4db1-bb0e-c52fc3a030f3", "name": "instance-000000a1"}]}, {"id": 2, "hypervisor_hostname": "gtestcompute-172-16-227-11", "servers": [{"uuid": "2b492995-007d-4435-8f6b-037ea57188dc", "name": "instance-000000a2"}, {"uuid": "45b18880-c0f1-4b8b-a21d-80f9dd2566ff", "name": "instance-000000a3"}]}]}

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1322921

Title:
  hypervisor-servers command always search by wildcard as
  '%hypervisor_hostname%'

Status in OpenStack Compute (Nova):
  New

Bug description:
  I searched servers by specific hypervisor. However the result is
  included with other hypervisors matched by wildcard with
  '%hypervisor_hostname%'.

  I found this bug by following command:

  admin@controller:~$ nova hypervisor-servers 10-0-0-1
  +--------------------------------------+-------------------+---------------+---------------------+
  | ID                                   | Name              | Hypervisor ID | Hypervisor Hostname |
  +--------------------------------------+-------------------+---------------+---------------------+
  | db52fd93-cc80-4d5e-852c-b113dec35fbf | instance-000000a0 | 1             | 10-0-0-10           |
  | 5b15fa8a-66d8-4db1-bb0e-c52fc3a030f3 | instance-000000a1 | 1             | 10-0-0-10           |
  | 2b492995-007d-4435-8f6b-037ea57188dc | instance-000000a2 | 2             | 10-0-0-11           |
  | 45b18880-c0f1-4b8b-a21d-80f9dd2566ff | instance-000000a3 | 2             | 10-0-0-11           |
  +--------------------------------------+-------------------+---------------+---------------------+
  admin@controller:~$ nova hypervisor-servers 10-0-0-11
  +--------------------------------------+-------------------+---------------+---------------------+
  | ID                                   | Name              | Hypervisor ID | Hypervisor Hostname |
  +--------------------------------------+-------------------+---------------+---------------------+
  | 2b492995-007d-4435-8f6b-037ea57188dc | instance-000000a2 | 2             | 10-0-0-11           |
  | 45b18880-c0f1-4b8b-a21d-80f9dd2566ff | instance-000000a3 | 2             | 10-0-0-11           |
  +--------------------------------------+-------------------+---------------+---------------------+

  
  This bug is contained in compute api v2 extensions

  at /v2/​{tenant_id}​/os-hypervisors/​{hypervisor_hostname}​/servers

  admin@controller:~$ curl -H "X-Auth-Token:MIILxxxx" "http://localhost:8774/v2/771be698aba4431daf41c8012df97e7b/os-hypervisors/10-0-0-1/servers";
  {"hypervisors": [{"id": 1, "hypervisor_hostname": "10-0-0-10", "servers": [{"uuid": "db52fd93-cc80-4d5e-852c-b113dec35fbf", "name": "instance-000000a0"}, {"uuid": "5b15fa8a-66d8-4db1-bb0e-c52fc3a030f3", "name": "instance-000000a1"}]}, {"id": 2, "hypervisor_hostname": "gtestcompute-172-16-227-11", "servers": [{"uuid": "2b492995-007d-4435-8f6b-037ea57188dc", "name": "instance-000000a2"}, {"uuid": "45b18880-c0f1-4b8b-a21d-80f9dd2566ff", "name": "instance-000000a3"}]}]}

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


Follow ups

References