-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/cstackex 36 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...ap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java
Outdated
Show resolved
Hide resolved
...ap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java
Outdated
Show resolved
Hide resolved
...ap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java
Show resolved
Hide resolved
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/Utility.java
Outdated
Show resolved
Hide resolved
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/Utility.java
Outdated
Show resolved
Hide resolved
| if(ProtocolType.ISCSI.name().equalsIgnoreCase(details.get(Constants.PROTOCOL))) { | ||
| Map<String, String> getCloudStackVolumeMap = new HashMap<>(); | ||
| getCloudStackVolumeMap.put(Constants.NAME, volumeVO.getPath()); | ||
| getCloudStackVolumeMap.put(Constants.SVM_DOT_NAME, svmName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check for wildcard in values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements functionality to attach ONTAP storage pools to clusters/zones and grant access to volumes for iSCSI protocol. The implementation creates initiator groups (igroups) during cluster/zone attachment and enables LUN mapping when granting volume access to hosts.
Key changes:
- Implements access group (igroup) creation and retrieval for SAN storage
- Adds LUN mapping/unmapping operations for volume access control
- Implements
attachClusterandattachZonemethods to create igroups with host initiators - Adds
grantAccessandrevokeAccessimplementations for volume access management
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| Utility.java | Added helper methods for creating access groups, generating igroup names, LUN names, and OS type mapping |
| Constants.java | Added new constants for API endpoints, query parameters, and naming conventions |
| UnifiedSANStrategy.java | Implemented methods for igroup and LUN map operations (create, get, enable/disable logical access) |
| UnifiedNASStrategy.java | Updated method signatures to match interface changes |
| StorageStrategy.java | Modified abstract method signatures to accept Map parameters and added public visibility |
| OntapPrimaryDatastoreProvider.java | Fixed logger import to use correct Log4j interface |
| OntapPrimaryDatastoreLifecycle.java | Implemented cluster/zone attachment logic with igroup creation and host protocol validation |
| SANFeignClient.java | Updated Feign client method signatures for igroup and LUN map operations |
| OntapPrimaryDatastoreDriver.java | Implemented grantAccess and revokeAccess methods for volume access control |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/Utility.java
Outdated
Show resolved
Hide resolved
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/Utility.java
Show resolved
Hide resolved
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/Utility.java
Outdated
Show resolved
Hide resolved
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/utils/Utility.java
Show resolved
Hide resolved
...age/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/UnifiedSANStrategy.java
Outdated
Show resolved
Hide resolved
...ap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java
Outdated
Show resolved
Hide resolved
...ap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java
Outdated
Show resolved
Hide resolved
...me/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java
Outdated
Show resolved
Hide resolved
...me/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java
Outdated
Show resolved
Hide resolved
...me/ontap/src/main/java/org/apache/cloudstack/storage/driver/OntapPrimaryDatastoreDriver.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets take latest from Sandeep PR
|
|
||
| private void grantAccessForVolume(StoragePoolVO storagePool, VolumeVO volumeVO, Host host) { | ||
| Map<String, String> details = storagePoolDetailsDao.listDetailsKeyPairs(storagePool.getId()); | ||
| StorageStrategy storageStrategy = utils.getStrategyByStoragePoolDetails(details); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this method has moved from utility class
Description
CSTACKEX-36 Attach Cluster/Zone and Grant Access
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?