Skip to content

Commit a50bdee

Browse files
Clarify destination pool tag mismatch errors
1 parent 07363e7 commit a50bdee

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,8 @@ private List<StoragePoolVO> findInstanceConversionDestinationStoragePoolsInClust
23742374
throw new CloudRuntimeException(msg);
23752375
}
23762376
if (getStoragePoolWithTags(poolsList, diskOffering.getTags()) == null) {
2377-
String msg = String.format("Cannot find suitable storage pool for disk offering %s that belongs to the service offering %s", diskOffering.getName(), serviceOffering.getName());
2377+
String msg = String.format("Cannot find an Up destination primary storage pool matching storage tags '%s' required by root disk offering %s used by service offering %s",
2378+
diskOffering.getTags(), diskOffering.getName(), serviceOffering.getName());
23782379
logger.error(msg);
23792380
throw new CloudRuntimeException(msg);
23802381
}
@@ -2387,7 +2388,8 @@ private List<StoragePoolVO> findInstanceConversionDestinationStoragePoolsInClust
23872388
throw new CloudRuntimeException(msg);
23882389
}
23892390
if (getStoragePoolWithTags(poolsList, diskOffering.getTags()) == null) {
2390-
String msg = String.format("Cannot find suitable storage pool for disk offering %s", diskOffering.getName());
2391+
String msg = String.format("Cannot find an Up destination primary storage pool matching storage tags '%s' required by data disk offering %s",
2392+
diskOffering.getTags(), diskOffering.getName());
23912393
logger.error(msg);
23922394
throw new CloudRuntimeException(msg);
23932395
}

0 commit comments

Comments
 (0)