You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/10/26 12:46:58 UTC

[jira] [Commented] (CLOUDSTACK-9567) Difference in the api call outputs for CAPACITY_TYPE_CPU = 1

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

ASF GitHub Bot commented on CLOUDSTACK-9567:
--------------------------------------------

GitHub user SudharmaJain opened a pull request:

    https://github.com/apache/cloudstack/pull/1734

    CLOUDSTACK-9567 Difference in the api call outputs for CAPACITY_TYPE_…

    …CPU = 1
    
    The total capacity reported listPods and listCapacity is different, ideally they have to be same
    
    http://10.223.59.69:8096/client/api?command=listPods&id=78c23ee6-c585-4065-a03c-08c15492c077&zoneid=48889c46-dd04-4a50-af06-8aad7ea46f61&showcapacities=true
    
    ```
    <capacity>
    <type>1</type>
    <capacityused>1042980</capacityused>
    <capacitytotal>1621776</capacitytotal>
    <percentused>64.31</percentused>
    </capacity>
    ```
    
    http://10.223.59.69:8096/client/api?command=listCapacity&podid=78c23ee6-c585-4065-a03c-08c15492c077&zoneid=48889c46-dd04-4a50-af06-8aad7ea46f61&type=1
    
    ```
    <listcapacityresponse cloud-stack-version="4.3.0.2">
    <count>1</count>
    <capacity>
    <type>1</type>
    <zoneid>48889c46-dd04-4a50-af06-8aad7ea46f61</zoneid>
    <zonename>jp2-east01</zonename>
    <podid>78c23ee6-c585-4065-a03c-08c15492c077</podid>
    <podname>RG1-ck2ejo2-Pod11</podname>
    <capacityused>1042980</capacityused>
    <capacitytotal>2453456</capacitytotal>
    <percentused>42.51</percentused>
    </capacity>
    </listcapacityresponse>
    ```
    
    The problem here was the query being used to fetch data. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/SudharmaJain/cloudstack cs-9567

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1734.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1734
    
----
commit 4220d20f2d6633649b9b65c92f02b47ea09280c7
Author: Sudharma Jain <su...@accelerite.com>
Date:   2016-10-26T12:38:58Z

    CLOUDSTACK-9567 Difference in the api call outputs for CAPACITY_TYPE_CPU = 1

----


> Difference in the api call outputs for CAPACITY_TYPE_CPU = 1
> ------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9567
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9567
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>            Reporter: sudharma jain
>
> The total capacity reported is different, ideally they have to be same
> http://10.223.59.69:8096/client/api?command=listPods&id=78c23ee6-c585-4065-a03c-08c15492c077&zoneid=48889c46-dd04-4a50-af06-8aad7ea46f61&showcapacities=true
> <capacity>
> <type>1</type>
> <capacityused>1042980</capacityused>
> <capacitytotal>1621776</capacitytotal>
> <percentused>64.31</percentused>
> </capacity>
> http://10.223.59.69:8096/client/api?command=listCapacity&podid=78c23ee6-c585-4065-a03c-08c15492c077&zoneid=48889c46-dd04-4a50-af06-8aad7ea46f61&type=1
> <listcapacityresponse cloud-stack-version="4.3.0.2">
> <count>1</count>
> <capacity>
> <type>1</type>
> <zoneid>48889c46-dd04-4a50-af06-8aad7ea46f61</zoneid>
> <zonename>jp2-east01</zonename>
> <podid>78c23ee6-c585-4065-a03c-08c15492c077</podid>
> <podname>RG1-ck2ejo2-Pod11</podname>
> <capacityused>1042980</capacityused>
> <capacitytotal>2453456</capacitytotal>
> <percentused>42.51</percentused>
> </capacity>
> </listcapacityresponse>



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