You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "bin wang (JIRA)" <ji...@apache.org> on 2014/11/07 21:35:33 UTC
[jira] [Created] (JCLOUDS-772) SimpleTenantUsageApi is not
working
bin wang created JCLOUDS-772:
--------------------------------
Summary: SimpleTenantUsageApi is not working
Key: JCLOUDS-772
URL: https://issues.apache.org/jira/browse/JCLOUDS-772
Project: jclouds
Issue Type: Bug
Components: jclouds-labs-openstack
Affects Versions: 2.0.0
Environment: openstack icehouse
Reporter: bin wang
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)