Skip to content

Commit 723aedf

Browse files
committed
CLOUDSTACK-7820: Don't consider disabled hosts for calculating disable threshold.
1 parent 09a62b8 commit 723aedf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/schema/src/com/cloud/capacity/dao/CapacityDaoImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public class CapacityDaoImpl extends GenericDaoBase<CapacityVO, Long> implements
178178
"ELSE (SELECT config.value FROM `cloud`.`configuration` config WHERE config.name = ?) " +
179179
"END configValue " +
180180
"FROM `cloud`.`op_host_capacity` capacity INNER JOIN `cloud`.`cluster_details` overcommit ON overcommit.cluster_id = capacity.cluster_id " +
181-
"WHERE capacity.data_center_id = ? AND capacity.capacity_type = ? AND capacity.total_capacity > 0 AND overcommit.name = ?) cluster " +
181+
"WHERE capacity.data_center_id = ? AND capacity.capacity_type = ? AND capacity.total_capacity > 0 AND overcommit.name = ? AND capacity.capacity_state='Enabled') cluster " +
182182

183183
"GROUP BY cluster.cluster_id) clusterList " +
184184
"WHERE clusterList.ratio > clusterList.value; ";

0 commit comments

Comments
 (0)