cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9665) List hosts api dose not report correct cpu and memory usage
Date Wed, 15 Nov 2017 08:11:00 GMT

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

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

ustcweizhou commented on a change in pull request #2120: CLOUDSTACK-9665 List hosts api does
not report correct cpu and memory…
URL: https://github.com/apache/cloudstack/pull/2120#discussion_r151056366
 
 

 ##########
 File path: server/src/com/cloud/api/query/dao/HostJoinDaoImpl.java
 ##########
 @@ -297,8 +299,10 @@ public HostForMigrationResponse newHostForMigrationResponse(HostJoinVO
host, Enu
                 Long mem = host.getMemReservedCapacity() + host.getMemUsedCapacity();
                 Long cpu = host.getCpuReservedCapacity() + host.getCpuReservedCapacity();
 
-                hostResponse.setMemoryAllocated(mem);
-                hostResponse.setMemoryTotal(host.getTotalMemory());
+                hostResponse.setMemoryTotal(mem);
 
 Review comment:
   this also needs to be fixed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> List hosts api dose not report correct cpu and memory usage
> -----------------------------------------------------------
>
>                 Key: CLOUDSTACK-9665
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9665
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>    Affects Versions: 4.9.0
>            Reporter: Bharat Kumar
>            Assignee: Bharat Kumar
>             Fix For: 4.9.2.0
>
>
> List hosts API dose not consider the overcommit ratios at cluster level. This results
in in correct calculation of resources by list host API.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message