Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-772

SimpleTenantUsageApi is not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0
    • None
    • jclouds-labs-openstack
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            binw205 bin wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified