Skip to content

Commit 8ae97bf

Browse files
Bugfix/cstackex 155: Fix VM provisioning after a pool comes out of maintenance mode (#56)
1 parent 3a324c6 commit 8ae97bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/com/cloud/storage/StorageManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3109,7 +3109,7 @@ public void updateStoragePoolHostVOAndBytes(StoragePool pool, long hostId, Modif
31093109
}
31103110

31113111
StoragePoolVO poolVO = _storagePoolDao.findById(pool.getId());
3112-
if (!Storage.StoragePoolType.StorPool.equals(poolVO.getPoolType())) {
3112+
if (!Storage.StoragePoolType.StorPool.equals(poolVO.getPoolType()) && !DataStoreProvider.ONTAP_PLUGIN_NAME.equals(poolVO.getStorageProviderName())) {
31133113
poolVO.setUsedBytes(mspAnswer.getPoolInfo().getCapacityBytes() - mspAnswer.getPoolInfo().getAvailableBytes());
31143114
poolVO.setCapacityBytes(mspAnswer.getPoolInfo().getCapacityBytes());
31153115
}

0 commit comments

Comments
 (0)