linstor: fix template copy on non hyperconverged setups (#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 67cb9b9e40)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Peinthor Rene 2023-10-19 07:16:20 +02:00 committed by Rohit Yadav
parent f4b9e6c988
commit 8875a94242
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ public class LinstorStorageAdaptor implements StorageAdaptor {
null,
null);
makeResourceAvailable(api, rscName, true);
makeResourceAvailable(api, rscName, false);
if (!resources.isEmpty() && !resources.get(0).getVolumes().isEmpty()) {
final String devPath = resources.get(0).getVolumes().get(0).getDevicePath();