Skip to content

Commit f066100

Browse files
author
Glover, Rene (rg9975)
committed
only fail on template connectPhysicalDisk if storage pool type == FiberChannel
1 parent 81a8b40 commit f066100

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,12 @@ public Answer copyTemplateToPrimaryStorage(final CopyCommand cmd) {
277277
}
278278

279279
if (path != null && !storagePoolMgr.connectPhysicalDisk(primaryStore.getPoolType(), primaryStore.getUuid(), path, details)) {
280-
s_logger.warn("Failed to connect physical disk at path: " + path + ", in storage pool id: " + primaryStore.getUuid());
281-
return new PrimaryStorageDownloadAnswer("Failed to spool template disk at path: " + path + ", in storage pool id: " + primaryStore.getUuid());
280+
if (primaryStore.getPoolType() == StoragePoolType.FiberChannel) {
281+
s_logger.warn("Failed to connect physical disk at path: " + path + ", in storage pool id: " + primaryStore.getUuid());
282+
return new PrimaryStorageDownloadAnswer("Failed to spool template disk at path: " + path + ", in storage pool id: " + primaryStore.getUuid());
283+
} else {
284+
s_logger.warn("Failed to connect physical disk at path: " + path + ", in storage pool id: " + primaryStore.getUuid());
285+
}
282286
}
283287

284288
primaryVol = storagePoolMgr.copyPhysicalDisk(tmplVol, path != null ? path : destTempl.getUuid(), primaryPool, cmd.getWaitInMillSeconds());

0 commit comments

Comments
 (0)