Skip query if not management ip of host can be found
@@ -1162,6 +1162,8 @@ public class CephPrimaryStorageFactory implements PrimaryStorageFactory, CephCap
.in(HostVO_.uuid, avoidHostUuids)
.select(HostVO_.managementIp)
.listValues();
+
+ if (!hostIps.isEmpty()) {
List<String> monUuids = Q.New(CephPrimaryStorageMonVO.class)
.select(CephPrimaryStorageMonVO_.uuid)
.eq(CephPrimaryStorageMonVO_.primaryStorageUuid, rootVolume.getPrimaryStorageUuid())
@@ -1169,6 +1171,7 @@ public class CephPrimaryStorageFactory implements PrimaryStorageFactory, CephCap
.listValues();
msg.setAvoidCephMonUuids(monUuids);
}
+ }
bus.send(msg, new CloudBusCallBack(completion) {
@Override
