yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46405
[Bug 1545922] Re: Nova API allow DB index as the server_id parem
We need the EC2 API devs to let us know if this is required before
documenting this capability, as it may be removed.
** Changed in: openstack-api-site
Importance: Undecided => Medium
** Also 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/1545922
Title:
Nova API allow DB index as the server_id parem
Status in OpenStack Compute (nova):
New
Status in openstack-api-site:
New
Bug description:
I read the nova API doc:
such as this API:
http://developer.openstack.org/api-ref-compute-v2.1.html#showServer
GET /v2.1/{tenant_id}/servers/{server_id}Show server details
Request parameters
Parameter Style Type Description
tenant_id URI csapi:UUID
The UUID of the tenant in a multi-tenancy cloud.
server_id URI csapi:UUID
The UUID of the server.
But I can get the server by DB index:
curl -s -H X-Auth-Token:6b8968eb38df47c6a09ac9aee81ea0c6 http://192.168.2.103:8774/v2.1/f5a8829cc14c4825a2728b273aa91aa1/servers/2
{
"server": {
"OS-DCF:diskConfig": "MANUAL",
"OS-EXT-AZ:availability_zone": "nova",
"OS-EXT-SRV-ATTR:host": "shaohe1",
"OS-EXT-SRV-ATTR:hypervisor_hostname": "shaohe1",
"OS-EXT-SRV-ATTR:instance_name": "instance-00000002",
"OS-EXT-STS:power_state": 1,
"OS-EXT-STS:task_state": "migrating",
"OS-EXT-STS:vm_state": "error",
"OS-SRV-USG:launched_at": "2015-12-18T07:41:00.000000",
"OS-SRV-USG:terminated_at": null,
......
}
}
and the code really allow it use DB index
https://github.com/openstack/nova/blob/master/nova/compute/api.py#L1939
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1545922/+subscriptions