-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/cstackex 22: Shared NFS pool and volume creation - Approach 1 #22
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
plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/feign/model/Svm.java
Show resolved
Hide resolved
...ap/src/main/java/org/apache/cloudstack/storage/lifecycle/OntapPrimaryDatastoreLifecycle.java
Outdated
Show resolved
Hide resolved
| break; | ||
| case ISCSI: | ||
| parameters.setType(Storage.StoragePoolType.Iscsi); | ||
| path = "iqn.1992-08.com.netapp:" + details.get(Constants.SVM_NAME) + "." + storagePoolName; |
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.
Remove all these hard-coded values. You can keep them as commented code if required.
...age/volume/ontap/src/main/java/org/apache/cloudstack/storage/listener/OntapHostListener.java
Outdated
Show resolved
Hide resolved
...age/volume/ontap/src/main/java/org/apache/cloudstack/storage/service/UnifiedNASStrategy.java
Show resolved
Hide resolved
...volume/ontap/src/main/java/org/apache/cloudstack/storage/service/model/CloudStackVolume.java
Outdated
Show resolved
Hide resolved
rajiv-jain-netapp
left a comment
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.
Some of your files are not loading for review.
You have a few comments that need attention, but none of them appear to be blockers for merging. Please take note of these comments and ensure they are addressed in subsequent updates.
Additionally, I noticed your test results summary includes scenarios for storage pools using the NFS protocol. We have an open use case for ONTAP NFS protocol that was recently added. Let’s include all these scenarios in your COTV plan and ensure they are covered as part of integration testing.
| throw new CloudRuntimeException("deleteAsync : Storage Pool not found for id: " + store.getId()); | ||
| } | ||
| Map<String, String> details = storagePoolDetailsDao.listDetailsKeyPairs(store.getId()); | ||
| if (ProtocolType.NFS.name().equalsIgnoreCase(details.get(Constants.PROTOCOL))) { |
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.
Why is it a no-op? We have to delete the flex-volume created for storage-pool in the delete workflow, right?
| result = jsonMapper.readValue(json, javaType); | ||
| logger.debug("jsonMapper.readValue() completed successfully"); | ||
| } catch (Throwable ex) { | ||
| logger.error("EXCEPTION in jsonMapper.readValue()! Type: {}, Message: {}", ex.getClass().getName(), ex.getMessage(), ex); |
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.
Needs a watch here in case we can handle it with a better response
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.
see if we can modularize the initialization method. it line of code has increased, and further may come when we would be extending to another approach based on a flag.
Description
This PR...
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?