yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #55880
[Bug 1619161] Re: flavor-list need return the extra-specs information directly
With the current api design, we have to do multiple request to get the
extra-spec of all the flavors.
extra-spec information is not returned in '/v2.1/{tenant_id}/flavors'
as well as in '/v2.1/{tenant_id}/flavors/details' api(s) and so, to
get extra-spec for every single flavor, we have to call the api,
'/v2.1/{tenant_id}/flavors/{flavor_id}/os-extra_specs'.
** Changed in: nova
Status: Confirmed => Invalid
--
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/1619161
Title:
flavor-list need return the extra-specs information directly
Status in OpenStack Compute (nova):
Invalid
Bug description:
Description
===========
Now the command of nova flavor-list --extra-specs can view
extra-specs information, but I use --debug to see a lot of
http GET requests for getting the extra_specs information
of each flavor.
With the increase of the flavors, it will get more and more
GET requests. This will affect the performance of the query.
I think that the query returns a list of flavor, it should
directly contain extra_specs information.
Steps to reproduce
==================
A chronological list of steps which will bring off the
issue you noticed:
* I performed the command:
$ nova --debug flavor-list --extra-specs
Environment
===========
1. Exact version of OpenStack
Mitaka
Logs & Configs
==============
The debug info:
DEBUG (session:195) REQ: curl -g -i -X GET http://10.43.239.62:8774/v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/1/os-extra_specs -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ae80c1ee126b1a4464c13c843706cc6a5b1bf259"
DEBUG (connectionpool:368) "GET /v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/1/os-extra_specs HTTP/1.1" 200 66
DEBUG (session:224) RESP: [200] date: Thu, 01 Sep 2016 06:27:08 GMT connection: keep-alive content-type: application/json content-length: 66 x-compute-request-id: req-15182618-4b28-4c78-87ef-d51f8da309f3
RESP BODY: {"extra_specs": {}}
DEBUG (session:195) REQ: curl -g -i -X GET http://10.43.239.62:8774/v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/2/os-extra_specs -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ae80c1ee126b1a4464c13c843706cc6a5b1bf259"
DEBUG (connectionpool:368) "GET /v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/2/os-extra_specs HTTP/1.1" 200 19
DEBUG (session:224) RESP: [200] date: Thu, 01 Sep 2016 06:27:09 GMT connection: keep-alive content-type: application/json content-length: 19 x-compute-request-id: req-b519d74e-ed98-48e9-90be-838287f7e407
RESP BODY: {"extra_specs": {}}
DEBUG (session:195) REQ: curl -g -i -X GET http://10.43.239.62:8774/v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/3/os-extra_specs -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ae80c1ee126b1a4464c13c843706cc6a5b1bf259"
DEBUG (connectionpool:368) "GET /v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/3/os-extra_specs HTTP/1.1" 200 19
DEBUG (session:224) RESP: [200] date: Thu, 01 Sep 2016 06:27:09 GMT connection: keep-alive content-type: application/json content-length: 19 x-compute-request-id: req-ad796e53-e8be-4caa-b182-219a1f3e63ca
RESP BODY: {"extra_specs": {}}
DEBUG (session:195) REQ: curl -g -i -X GET http://10.43.239.62:8774/v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/97/os-extra_specs -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ae80c1ee126b1a4464c13c843706cc6a5b1bf259"
DEBUG (connectionpool:368) "GET /v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/97/os-extra_specs HTTP/1.1" 200 39
DEBUG (session:224) RESP: [200] date: Thu, 01 Sep 2016 06:27:09 GMT connection: keep-alive content-type: application/json content-length: 39 x-compute-request-id: req-4c8d466e-d013-4549-ae74-8ea4ca578061
RESP BODY: {"extra_specs": {"hw:numa_nodes": "1"}}
DEBUG (session:195) REQ: curl -g -i -X GET http://10.43.239.62:8774/v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/99/os-extra_specs -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}ae80c1ee126b1a4464c13c843706cc6a5b1bf259"
DEBUG (connectionpool:368) "GET /v2/ed952123e0cc4ced9e581a7710bc24d5/flavors/99/os-extra_specs HTTP/1.1" 200 39
DEBUG (session:224) RESP: [200] date: Thu, 01 Sep 2016 06:27:09 GMT connection: keep-alive content-type: application/json content-length: 39 x-compute-request-id: req-9663e309-b421-45dd-9d6a-43f5a5464eab
RESP BODY: {"extra_specs": {"hw:numa_nodes": "2"}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1619161/+subscriptions
References