yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #21711
[Bug 1270038] Re: os-hypervisior api not respond display name
Being that the response from the api is like this:
RESP BODY: {"hypervisors": [{"status": "enabled", "state": "down", "id":
1, "hypervisor_hostname": "vagrant-ubuntu-trusty-64", "servers":
[{"uuid": "a6d9eb5e-4e37-41fa-a193-6d4dc3fe7b98", "name":
"instance-00000007"}]}, {"status": "enabled", "state": "down", "id": 2,
"hypervisor_hostname": "vagrant-ubuntu-trusty-64.localdomain",
"servers": [{"uuid": "814f2047-2af9-4fa6-980c-7235a38db793", "name":
"instance-0000000a"}, {"uuid": "09f6842f-2baa-43f7-9c72-5615507ec1df",
"name": "instance-0000000b"}]}]}
there isn't much novaclient can do about this other than do an
additional lookup per instance with uuid to get display_name. I
personally don't think it's the right way to get the display_name.
In the v2 api, a field could be added for display_name via addition of
yet another hypervisors extension. It would require a nova-spec to go
this direction. Coming in Juno there will be versioning in the api, so
perhaps after that lands this can be added without adding another api
extension.
** Changed in: python-novaclient
Importance: Undecided => Wishlist
** Changed in: python-novaclient
Status: New => Opinion
--
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/1270038
Title:
os-hypervisior api not respond display name
Status in OpenStack Compute (Nova):
Invalid
Status in Python client library for Nova:
Opinion
Bug description:
An example:
[root@controller contrib]# nova hypervisor-servers compute2.ustack.in
+--------------------------------------+-------------------+---------------+---------------------+
| ID | Name | Hypervisor ID | Hypervisor Hostname |
+--------------------------------------+-------------------+---------------+---------------------+
| a8e0ec6b-5d77-42bf-82a4-33ac56dbfd54 | instance-00000009 | 2 | compute2.ustack.in |
| 3cdd6019-f207-4fe0-a084-4a568194ddbe | instance-0000000b | 2 | compute2.ustack.in |
| c4a651fd-d0c8-43fc-a967-5b2eda3d4ab2 | instance-00000015 | 2 | compute2.ustack.in |
| d5cefdda-d13c-46f5-9de9-74c13d63dcd6 | instance-00000017 | 2 | compute2.ustack.in |
| 7d94f75c-b479-4450-aa30-082f2417e9ef | instance-0000001c | 2 | compute2.ustack.in |
| 00a1a76a-038a-4248-98b2-4d732b9c2b56 | instance-0000001d | 2 | compute2.ustack.in |
| 39020ba5-02ac-4fc2-9fa3-aaf51b793a47 | instance-0000002b | 2 | compute2.ustack.in |
| 8b5a95f5-4e26-4475-adb4-7257f0988ece | instance-00000034 | 2 | compute2.ustack.in |
| 9ab6d107-e9b1-4656-8c95-a21938f30fde | instance-00000065 | 2 | compute2.ustack.in |
+--------------------------------------+-------------------+---------------+---------------------+
here print a list of instances, but the Name column is not
display_name but instance_name, it's a little misleading
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1270038/+subscriptions
References