yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72373
[Bug 1764372] [NEW] while executing ServerMigrationList use-case an extra call is made to nova-api for fetching server details.
Public bug reported:
An extra call is made to nova-api for fetching server details to check it's existence.
Once existence of server is confirmed, after that "server migration list" call is made to nova-api.
In existing nova cli code flow, if server does not exist and "nova server-migration-list {server-id}" is invoked, it will display error to user and will not execute server migration list API call.
In contrary, if user directly execute curl command to fetch migration list for server which does not exists, then also same error message is displayed to user.
So, it seems extra call to check existence of server.
Solution:
Code should be improved to eliminate extra nova-api call to check server existence before executing concerned command.
Server migration list can directly be executed through curl to avoid extra call to check server existence before invoking server migration list.
curl -g -i -X GET http://{hostip}:8774/v2.1/{tenant_id}/servers/{server_id}/migrations -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.23" -H "X-Auth-Token:{token_id}".
** 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/1764372
Title:
while executing ServerMigrationList use-case an extra call is made to
nova-api for fetching server details.
Status in OpenStack Compute (nova):
New
Bug description:
An extra call is made to nova-api for fetching server details to check it's existence.
Once existence of server is confirmed, after that "server migration list" call is made to nova-api.
In existing nova cli code flow, if server does not exist and "nova server-migration-list {server-id}" is invoked, it will display error to user and will not execute server migration list API call.
In contrary, if user directly execute curl command to fetch migration list for server which does not exists, then also same error message is displayed to user.
So, it seems extra call to check existence of server.
Solution:
Code should be improved to eliminate extra nova-api call to check server existence before executing concerned command.
Server migration list can directly be executed through curl to avoid extra call to check server existence before invoking server migration list.
curl -g -i -X GET http://{hostip}:8774/v2.1/{tenant_id}/servers/{server_id}/migrations -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.23" -H "X-Auth-Token:{token_id}".
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1764372/+subscriptions
Follow ups