Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0
-
None
-
None
-
openstack icehouse
Description
when I use SimpleTenantUsage object to get the usage for tenant or list usage for all tenant:
SimpleTenantUsage usage = api.get("mytenantId")
or api.list().
I will get response:
400 Bad Request; content: [{"badRequest": {"message": "The server could not comply with the request since it is either malformed or otherwise incorrect.", "code": 400}}]
in debugging , I ran the openstack command line client:
nova --debug usage-list
I got the expected data back, and request url info is like: /v2/ce258049959c4669a73cb94593e6ae24/os-simple-tenant-usage?start=2014-10-10T20:10:47.552959&end=2014-11-08T20:10:47.552959
however, in the jclouds log, the request missed the start and end parameter:
http://172.20.126.2:8774/v2/ce258049959c4669a73cb94593e6ae24/os-simple-tenant-usage , without start & end parameter.