This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 7dce3d87d48 [linstor] Fix revertSnapshot (#9271)
7dce3d87d48 is described below

commit 7dce3d87d4875ea17553533a57f9a248c9186c2a
Author: Michael Wodniok <[email protected]>
AuthorDate: Thu Jun 20 10:52:49 2024 +0200

    [linstor] Fix revertSnapshot (#9271)
    
    Signed-off-by: Michael Wodniok (WorNet AG) <[email protected]>
    Co-authored-by: Michael Wodniok <[email protected]>
---
 .../storage/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) {

Reply via email to