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



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to