Skip to content

Commit 5c378e4

Browse files
Gupta, SuryaGupta, Surya
authored andcommitted
CSTACKEX-16 Fix Copy Issues
1 parent 50aff1b commit 5c378e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ private void grantAccessForSnapshot(SnapshotInfo snapshotInfo, Host host, Storag
540540
if (ProtocolType.ISCSI.name().equalsIgnoreCase(details.get(Constants.PROTOCOL))) {
541541
String svmName = details.get(Constants.SVM_NAME);
542542
String storagePoolUuid = storagePool.getUuid();
543-
String snapshotLunName = snapshotInfo.getName();
543+
String snapshotLunName = Constants.VOL + storagePool.getName() + Constants.SLASH + snapshotInfo.getName();
544+
s_logger.info("grantAccessForSnapshot: snapshotLunName : {}", snapshotLunName);
544545
if (snapshotLunName == null) {
545546
throw new CloudRuntimeException("grantAccessForSnapshot: Snapshot path (LUN name) is null for snapshot id: " + snapshotInfo.getId());
546547
}

0 commit comments

Comments
 (0)