Skip to content

Commit 8875a94

Browse files
rp-rohityadavcloud
authored andcommitted
linstor: fix template copy on non hyperconverged setups (apache#8114)
Making a diskful resource was meant as an optimization, but cannot work on non hyperconverged setups, as the storage nodes (diskful) are not part of the cloudstack cluster. (cherry picked from commit 67cb9b9) Signed-off-by: Rohit Yadav <[email protected]>
1 parent f4b9e6c commit 8875a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/storage/volume/linstor/src/main/java/com/cloud/hypervisor/kvm/storage/LinstorStorageAdaptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public KVMPhysicalDisk createPhysicalDisk(String name, KVMStoragePool pool, Qemu
241241
null,
242242
null);
243243

244-
makeResourceAvailable(api, rscName, true);
244+
makeResourceAvailable(api, rscName, false);
245245

246246
if (!resources.isEmpty() && !resources.get(0).getVolumes().isEmpty()) {
247247
final String devPath = resources.get(0).getVolumes().get(0).getDevicePath();

0 commit comments

Comments
 (0)