You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit be02af2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java
Copy file name to clipboardExpand all lines: plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/motion/OntapDataMotionStrategy.java
// ONTAP rejects qos_policy.name on a copy.source create. The driver patches the
387
+
// policy onto the new LUN after this copy returns.
348
388
349
389
CloudStackVolumerequest = newCloudStackVolume();
350
390
request.setLun(lun);
@@ -648,7 +688,19 @@ public AccessGroup createAccessGroup(AccessGroup accessGroup) {
648
688
} catch (FeignExceptionfeignEx) {
649
689
if (feignEx.status() == 409) {
650
690
logger.warn("createAccessGroup: Igroup with name {} already exists (status 409). Fetching existing Igroup.", igroupName);
651
-
// TODO: Currently we aren't doing anything with the returned AccessGroup object, so, haven't added code here to fetch the existing Igroup and set it in AccessGroup.
logger.error("enableLogicalAccess: Failed to fetch LunMap poolDetails for Lun: {} and igroup: {}. LunMap response is null or empty.", lunName, igroupName);
857
-
thrownewCloudRuntimeException("Failed to fetch LunMap poolDetails for Lun: " + lunName + " and igroup: " + igroupName);
858
-
}
859
-
} catch (Exceptione) {
860
-
logger.error("enableLogicalAccess: Failed to fetch LunMap poolDetails for Lun: {} and igroup: {}, Exception: {}", lunName, igroupName, e);
861
-
thrownewCloudRuntimeException("Failed to fetch LunMap poolDetails for Lun: " + lunName + " and igroup: " + igroupName);
862
-
}
863
-
logger.trace("enableLogicalAccess: LunMap created successfully, LunMap: {}", lunMapResponse.getRecords().get(0));
894
+
logger.trace("enableLogicalAccess: LunMap created for Lun: {} and igroup: {}", lunName, igroupName);
895
+
lunNumber = "";
864
896
} catch (Exceptione) {
865
897
logger.error("Exception occurred while creating LunMap", e);
866
898
thrownewCloudRuntimeException("Failed to create LunMap: " + e.getMessage());
0 commit comments