-
Notifications
You must be signed in to change notification settings - Fork 0
Export Policy and File operation changes NAS Storage pool creation #11
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -67,6 +67,7 @@ public class OntapPrimaryDatastoreLifecycle extends BasePrimaryDataStoreLifeCycl | |
| */ | ||
| @Override | ||
| public DataStore initialize(Map<String, Object> dsInfos) { | ||
| s_logger.info("initialize {}", dsInfos); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make it debug and make it meaningful. |
||
| if (dsInfos == null) { | ||
| throw new CloudRuntimeException("Datastore info map is null, cannot create primary storage"); | ||
| } | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put the sample URL on which below code has been written. |
||
|
|
@@ -149,7 +150,9 @@ public DataStore initialize(Map<String, Object> dsInfos) { | |
| } else { | ||
| throw new CloudRuntimeException("ONTAP details validation failed, cannot create primary storage"); | ||
| } | ||
| String storagePath = url + ":/" + storagePoolName; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put the comment for assuming it is for NFS and URL value. |
||
|
|
||
| parameters.setPath(storagePath); | ||
| parameters.setTags(tags); | ||
| parameters.setIsTagARule(isTagARule); | ||
| parameters.setDetails(details); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,8 @@ public NASStrategy(OntapStorage ontapStorage) { | |
| } | ||
|
|
||
| public abstract String createExportPolicy(String svmName, String policyName); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Return the policy object |
||
| public abstract boolean deleteExportPolicy(String svmName, String policyName); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make it void to pass back the exact error incase of failure |
||
| public abstract boolean exportPolicyExists(String svmName, String policyName); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can have getExportPolicy method |
||
| public abstract String addExportRule(String policyName, String clientMatch, String[] protocols, String[] roRule, String[] rwRule); | ||
| public abstract String assignExportPolicyToVolume(String volumeUuid, String policyName); | ||
| public abstract String enableNFS(String svmUuid); | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need this method, SVM should be pre-configured with NFS enabled. |
||
|
|
||
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.
We can remove this as not required now.