You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Yiping Zhang (JIRA)" <ji...@apache.org> on 2015/04/17 23:58:59 UTC

[jira] [Comment Edited] (CLOUDSTACK-8173) listCapacity api call returns less response tags than expected

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-8173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14500500#comment-14500500 ] 

Yiping Zhang edited comment on CLOUDSTACK-8173 at 4/17/15 9:58 PM:
-------------------------------------------------------------------

There are more problems with this api !

I am using 4.3.2.  When calling listCapacity API without any arguments,  returned records only have following fields:

type
zoneid
zonename
capacityused
capacitytotal
percentused

Does this imply capacity for multiple pod/clusters in the same zone are lumped together?   If so, the documents should state so clearly.

However, the real problem in this case is that for some type of resources, values for multiple "zones" are lumped together and assigned to the first zone , that's clearly wrong ! These types are:

Memory
CPU
Storage_Allocated



was (Author: ypzhang):
There are more problems with this api !

I am using 4.3.2.  When calling listCapacity API without any arguments,  returned records only have following fields:

type
zoneid
zonename
capacityused
capacitytotal
percentused

Does this imply capacity for multiple pod/clusters in the same zone are lumped together?   If so, the documents should state so clearly.

However, the real problem in this case is that for some type of resources, values for multiple "zones" are lumped together and assigned to the first zone , that's clearly wrong ! These types are:

Memory
CPU
Storage_Allocated

Personally,  I would like listCapacity API to also take zoneid as an argument and return capacities just for that zone.

> listCapacity api call returns less response tags than expected
> --------------------------------------------------------------
>
>                 Key: CLOUDSTACK-8173
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8173
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.4.2
>            Reporter: Anton Opgenoort
>
> listCapacity api call returns less response tags than expected on new capacity types introduced since ACS 4.4.2 i.e. type 19(GPU) and type 3(storage allocated)
> in 4.4.2: listCapacity clusterid=<uuid> only returns the following fields:
> capacitytotal 
> capacityused 
> percentused 
> type 
> zoneid 
> zonename 
> clustername 
> clusterid
> in 4.3: we had additional fields returned:
> podid 
> podname 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)