From 2ed22b3ba7e67ad96bd741635eec75b9192275cb Mon Sep 17 00:00:00 2001 From: Nitin Mehta Date: Thu, 24 Jul 2014 17:16:30 -0700 Subject: [PATCH] CLOUDSTACK-5641: Local disk usage on host don't show up in the admin's webui. Correcting the view to include capacity type 9 which is local storage. Also changing the response to just pick the used bytes coming in through the view which now stands corrected. Verified that the dashboard and storage pool view works fine. --- .../api/query/dao/StoragePoolJoinDaoImpl.java | 5 +- setup/db/db/schema-440to450.sql | 55 +++++++++++++++++++ 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/server/src/com/cloud/api/query/dao/StoragePoolJoinDaoImpl.java b/server/src/com/cloud/api/query/dao/StoragePoolJoinDaoImpl.java index 1d89b193057..ff04c5bc7c3 100644 --- a/server/src/com/cloud/api/query/dao/StoragePoolJoinDaoImpl.java +++ b/server/src/com/cloud/api/query/dao/StoragePoolJoinDaoImpl.java @@ -29,9 +29,7 @@ import org.apache.cloudstack.framework.config.dao.ConfigurationDao; import com.cloud.api.ApiDBUtils; import com.cloud.api.query.vo.StoragePoolJoinVO; -import com.cloud.capacity.Capacity; import com.cloud.capacity.CapacityManager; -import com.cloud.storage.ScopeType; import com.cloud.storage.StoragePool; import com.cloud.storage.StorageStats; import com.cloud.utils.StringUtils; @@ -152,8 +150,7 @@ public class StoragePoolJoinDaoImpl extends GenericDaoBase