Skip to content

Commit 2a2ff6f

Browse files
committed
consider Instance in Starting state for listPodsByUserConcentration
1 parent 0e8b0b8 commit 2a2ff6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/schema/src/main/java/com/cloud/vm/dao/UserVmDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class UserVmDaoImpl extends GenericDaoBase<UserVmVO, Long> implements Use
101101
ReservationDao reservationDao;
102102

103103
private static final String LIST_PODS_HAVING_VMS_FOR_ACCOUNT =
104-
"SELECT pod_id FROM cloud.vm_instance WHERE data_center_id = ? AND account_id = ? AND pod_id IS NOT NULL AND (state = 'Running' OR state = 'Stopped') "
104+
"SELECT pod_id FROM cloud.vm_instance WHERE data_center_id = ? AND account_id = ? AND pod_id IS NOT NULL AND state IN ('Running', 'Stopped', 'Starting') "
105105
+ "GROUP BY pod_id HAVING count(id) > 0 ORDER BY count(id) DESC";
106106

107107
private static final String VM_DETAILS = "select vm_instance.id, "

0 commit comments

Comments
 (0)