Skip to content

Commit 5c31c78

Browse files
Srivastava, PiyushSrivastava, Piyush
authored andcommitted
feature/CSTACKEX-122: fix for lun unmap
1 parent 0583966 commit 5c31c78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,10 +518,9 @@ private void revokeAccessForVolume(StoragePoolVO storagePool, VolumeVO volumeVO,
518518
Map<String, String> details = storagePoolDetailsDao.listDetailsKeyPairs(storagePool.getId());
519519
StorageStrategy storageStrategy = Utility.getStrategyByStoragePoolDetails(details);
520520
String svmName = details.get(Constants.SVM_NAME);
521-
String storagePoolUuid = storagePool.getUuid();
522521

523522
if (ProtocolType.ISCSI.name().equalsIgnoreCase(details.get(Constants.PROTOCOL))) {
524-
String accessGroupName = Utility.getIgroupName(svmName, storagePoolUuid);
523+
String accessGroupName = Utility.getIgroupName(svmName, host.getName());
525524

526525
// Retrieve LUN name from volume details; if missing, volume may not have been fully created
527526
String lunName = volumeDetailsDao.findDetail(volumeVO.getId(), Constants.LUN_DOT_NAME) != null ?

0 commit comments

Comments
 (0)