From 7dce3d87d4875ea17553533a57f9a248c9186c2a Mon Sep 17 00:00:00 2001 From: Michael Wodniok Date: Thu, 20 Jun 2024 10:52:49 +0200 Subject: [PATCH] [linstor] Fix revertSnapshot (#9271) Signed-off-by: Michael Wodniok (WorNet AG) Co-authored-by: Michael Wodniok --- .../datastore/driver/LinstorPrimaryDataStoreDriverImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java b/plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java index ab6e77eb49a..1ffb161a907 100644 --- a/plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java +++ b/plugins/storage/volume/linstor/src/main/java/org/apache/cloudstack/storage/datastore/driver/LinstorPrimaryDataStoreDriverImpl.java @@ -720,7 +720,7 @@ public class LinstorPrimaryDataStoreDriverImpl implements PrimaryDataStoreDriver private String doRevertSnapshot(final SnapshotInfo snapshot, final VolumeInfo volumeInfo) { final StoragePool pool = (StoragePool) volumeInfo.getDataStore(); final DevelopersApi linstorApi = LinstorUtil.getLinstorAPI(pool.getHostAddress()); - final String rscName = LinstorUtil.RSC_PREFIX + volumeInfo.getUuid(); + final String rscName = LinstorUtil.RSC_PREFIX + volumeInfo.getPath(); String resultMsg; try { if (snapshot.getDataStore().getRole() == DataStoreRole.Primary) {