Skip to content

Commit c5399cd

Browse files
author
Prachi Damle
committed
CLOUDSTACK-5853 cannot deploy vm with differing service storage tag and data disk storage tag
Changes: - Reverting Marcus's fix since this issue has already fixed by https://issues.apache.org/jira/browse/CLOUDSTACK-5426
1 parent 48553d7 commit c5399cd

3 files changed

Lines changed: 0 additions & 16 deletions

File tree

‎api/src/com/cloud/deploy/DeploymentPlanner.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,6 @@ public void addPool(long poolId) {
176176
_poolIds.add(poolId);
177177
}
178178

179-
public void removePool(long poolId) {
180-
if (_poolIds != null) {
181-
_poolIds.remove(poolId);
182-
}
183-
}
184179

185180
public void addDataCenter(long dataCenterId) {
186181
if (_dcIds == null) {

‎engine/storage/src/org/apache/cloudstack/storage/allocator/ClusterScopeStoragePoolAllocator.java‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ protected List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmPr
8686
avoid.addPool(pool.getId());
8787
}
8888

89-
// make sure our matching pool was not in avoid set
90-
for (StoragePoolVO pool : pools) {
91-
s_logger.debug("Removing pool " + pool + " from avoid set, must have been inserted when searching for another disk's tag");
92-
avoid.removePool(pool.getId());
93-
}
94-
9589
if (pools.size() == 0) {
9690
if (s_logger.isDebugEnabled()) {
9791
s_logger.debug("No storage pools available for " + ServiceOffering.StorageType.shared.toString() + " volume allocation, returning");

‎engine/storage/src/org/apache/cloudstack/storage/allocator/ZoneWideStoragePoolAllocator.java‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ protected List<StoragePool> select(DiskProfile dskCh, VirtualMachineProfile vmPr
8080
avoid.addPool(pool.getId());
8181
}
8282

83-
// make sure our matching pool was not in avoid set
84-
for (StoragePoolVO pool : storagePoolsByHypervisor) {
85-
s_logger.debug("Removing pool " + pool + " from avoid set, must have been inserted when searching for another disk's tag");
86-
avoid.removePool(pool.getId());
87-
}
8883

8984
for (StoragePoolVO storage : storagePools) {
9085
if (suitablePools.size() == returnUpTo) {

0 commit comments

Comments
 (0)