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/12/07 11:28: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=15728526#comment-15728526 ] 

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

Github user SudharmaJain commented on the issue:

    https://github.com/apache/cloudstack/pull/1734
  
    Manual Test on local environment 
    
    ### Before Applying the fix
    
    http://localhost:8080/client/api?command=listPods&id=9b409cf0-a227-488d-87ea-0033aea2dcc5&response=&_=1481106672505&showcapacities=true
    ```
    <listpodsresponse cloud-stack-version="4.8.2.0-SNAPSHOT">
    <count>1</count>
    <pod>
    <id>9b409cf0-a227-488d-87ea-0033aea2dcc5</id>
    <name>POD0</name>
    <zoneid>88a777cf-17c3-4bdd-b1fd-44eef39bff68</zoneid>
    <zonename>Sandbox-simulator</zonename>
    <gateway>172.16.15.1</gateway>
    <netmask>255.255.255.0</netmask>
    <startip>172.16.15.2</startip>
    <endip>172.16.15.200</endip>
    <allocationstate>Enabled</allocationstate>
    <capacity>
    <type>5</type>
    <capacityused>4</capacityused>
    <capacitytotal>199</capacitytotal>
    <percentused>2.01</percentused>
    </capacity>
    <capacity>
    <type>1</type>
    <capacityused>1500</capacityused>
    <capacitytotal>96000</capacitytotal>
    <percentused>1.56</percentused>
    </capacity>
    <capacity>
    <type>2</type>
    <capacityused>0</capacityused>
    <capacitytotal>3298534883328</capacitytotal>
    <percentused>0</percentused>
    </capacity>
    <capacity>
    <type>3</type>
    <capacityused>400</capacityused>
    <capacitytotal>6597069766656</capacitytotal>
    <percentused>0</percentused>
    </capacity>
    <capacity>
    <type>0</type>
    <capacityused>2684354560</capacityused>
    <capacitytotal>25769803776</capacitytotal>
    <percentused>10.42</percentused>
    </capacity>
    </pod>
    </listpodsresponse>
    ```
    
    http://localhost:8080/client/api?command=listCapacity&podid=9b409cf0-a227-488d-87ea-0033aea2dcc5&response=&_=1481106672505&type=1
    ```
    <listcapacityresponse cloud-stack-version="4.8.2.0-SNAPSHOT">
    <count>1</count>
    <capacity>
    <type>1</type>
    <zoneid>88a777cf-17c3-4bdd-b1fd-44eef39bff68</zoneid>
    <zonename>Sandbox-simulator</zonename>
    <podid>9b409cf0-a227-488d-87ea-0033aea2dcc5</podid>
    <podname>POD0</podname>
    <capacityused>1500</capacityused>
    <capacitytotal>128000</capacitytotal>
    <percentused>1.17</percentused>
    </capacity>
    </listcapacityresponse>
    ```
    
    ### After applying the fix 
    
    http://localhost:8080/client/api?command=listPods&id=9b409cf0-a227-488d-87ea-0033aea2dcc5&response=&_=1481106672505&showcapacities=true
    
    ```
    <listpodsresponse cloud-stack-version="4.8.2.0-SNAPSHOT">
    <count>1</count>
    <pod>
    <id>9b409cf0-a227-488d-87ea-0033aea2dcc5</id>
    <name>POD0</name>
    <zoneid>88a777cf-17c3-4bdd-b1fd-44eef39bff68</zoneid>
    <zonename>Sandbox-simulator</zonename>
    <gateway>172.16.15.1</gateway>
    <netmask>255.255.255.0</netmask>
    <startip>172.16.15.2</startip>
    <endip>172.16.15.200</endip>
    <allocationstate>Enabled</allocationstate>
    <capacity>
    <type>1</type>
    <capacityused>1500</capacityused>
    <capacitytotal>128000</capacitytotal>
    <percentused>1.17</percentused>
    </capacity>
    <capacity>
    <type>0</type>
    <capacityused>2684354560</capacityused>
    <capacitytotal>34359738368</capacitytotal>
    <percentused>7.81</percentused>
    </capacity>
    <capacity>
    <type>2</type>
    <capacityused>0</capacityused>
    <capacitytotal>3298534883328</capacitytotal>
    <percentused>0</percentused>
    </capacity>
    <capacity>
    <type>3</type>
    <capacityused>400</capacityused>
    <capacitytotal>6597069766656</capacitytotal>
    <percentused>0</percentused>
    </capacity>
    <capacity>
    <type>5</type>
    <capacityused>4</capacityused>
    <capacitytotal>199</capacitytotal>
    <percentused>2.01</percentused>
    </capacity>
    </pod>
    </listpodsresponse>
    ```



> 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)