mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
[linstor] Fix revertSnapshot (#9271)
Signed-off-by: Michael Wodniok (WorNet AG) <michael.wodniok@wor.net> Co-authored-by: Michael Wodniok <michael.wodniok@wor.net>
This commit is contained in:
parent
84b91cc9a3
commit
7dce3d87d4
@ -720,7 +720,7 @@ public class LinstorPrimaryDataStoreDriverImpl implements PrimaryDataStoreDriver
|
|||||||
private String doRevertSnapshot(final SnapshotInfo snapshot, final VolumeInfo volumeInfo) {
|
private String doRevertSnapshot(final SnapshotInfo snapshot, final VolumeInfo volumeInfo) {
|
||||||
final StoragePool pool = (StoragePool) volumeInfo.getDataStore();
|
final StoragePool pool = (StoragePool) volumeInfo.getDataStore();
|
||||||
final DevelopersApi linstorApi = LinstorUtil.getLinstorAPI(pool.getHostAddress());
|
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;
|
String resultMsg;
|
||||||
try {
|
try {
|
||||||
if (snapshot.getDataStore().getRole() == DataStoreRole.Primary) {
|
if (snapshot.getDataStore().getRole() == DataStoreRole.Primary) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user