feat(fsx): specify file system type version for the Lustre file system#31136
feat(fsx): specify file system type version for the Lustre file system#31136mergify[bot] merged 22 commits intoaws:mainfrom
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
| **Note**: The `fileSystemTypeVersion` has a restrictions on the values that can be set based on the `deploymentType`. | ||
|
|
||
| - `V_2_10` is supported by the Scratch and `PERSISTENT_1` deployment types. | ||
| - `V_2_12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a metadata configuration mode. | ||
| - `V_2_15` is supported by all Lustre deployment types and is recommended for all new file systems. | ||
|
|
||
| **Note**: The default value of `fileSystemTypeVersion` is `V_2_10` except for the following cases: | ||
|
|
||
| - Default value is `V_2_12` when `deploymentType` is set to `PERSISTENT_2` without a metadata configuration mode. | ||
| - Default value is `V_2_15` when `deploymentType` is set to `PERSISTENT_2` with a metadata configuration mode. |
There was a problem hiding this comment.
I have included descriptions related to metadata configuration mode, but the current LustreFileSystem construct does not allow setting metadata. Should descriptions related to metadata be included?
There was a problem hiding this comment.
I thought it might be good to either add a note stating that Metadata Configuration cannot be set yet, or alternatively, include the metadata configuration property in this PR.
What do you think?
The MetadataConfiguration property already exists, so it seems possible to add it. However, since it's a new property, it appears that descriptions haven't been defined for it yet.
There was a problem hiding this comment.
Thank you for your opinion!
I think it is better to support MetadataConfiguration initially, I was planning to address the metadataConfiguration in this PR as well, but since all the CloudFormation documentation was marked as "not available," I decided to try again once that issue is resolved.
I have updated the README to reflect the assumption that metadataConfiguration is not configured.
mazyu36
left a comment
There was a problem hiding this comment.
Thank you for your contribution. I've made some comments.
| /** | ||
| * The Lustre version for the file system. | ||
| * | ||
| * @see https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-filesystemtypeversion |
There was a problem hiding this comment.
Thanks! I've removed ja_JP/
| **Note**: The `fileSystemTypeVersion` has a restrictions on the values that can be set based on the `deploymentType`. | ||
|
|
||
| - `V_2_10` is supported by the Scratch and `PERSISTENT_1` deployment types. | ||
| - `V_2_12` is supported by all Lustre deployment types, except for `PERSISTENT_2` with a metadata configuration mode. | ||
| - `V_2_15` is supported by all Lustre deployment types and is recommended for all new file systems. | ||
|
|
||
| **Note**: The default value of `fileSystemTypeVersion` is `V_2_10` except for the following cases: | ||
|
|
||
| - Default value is `V_2_12` when `deploymentType` is set to `PERSISTENT_2` without a metadata configuration mode. | ||
| - Default value is `V_2_15` when `deploymentType` is set to `PERSISTENT_2` with a metadata configuration mode. |
There was a problem hiding this comment.
I thought it might be good to either add a note stating that Metadata Configuration cannot be set yet, or alternatively, include the metadata configuration property in this PR.
What do you think?
The MetadataConfiguration property already exists, so it seems possible to add it. However, since it's a new property, it appears that descriptions haven't been defined for it yet.
|
@mazyu36 Thank you for your review! I've addressed your comments. |
|
@mazyu36 Thanks! |
|
@pahud I'm sorry. This problem has resolved. |
| if (fileSystemTypeVersion === FileSystemTypeVersion.V_2_10) { | ||
| if (!deploymentType.startsWith('SCRATCH') && deploymentType !== LustreDeploymentType.PERSISTENT_1) { | ||
| throw new Error('fileSystemTypeVersion V_2_10 is only supported for SCRATCH and PERSISTENT_1 deployment types'); | ||
| } |
There was a problem hiding this comment.
can we also validate
2.12 is supported by all Lustre deployment types, except for PERSISTENT_2 with a metadata configuration mode.
There was a problem hiding this comment.
As I described above, LustreFileSystemProps does not have metadata configuration prop and I think it is difficult to add validation for that.
What do you think about this?
There was a problem hiding this comment.
My bad. I totally missed the note in the PR description. Since this prop doesn't exists yet, I think it's fine to skip this validation now.
There was a problem hiding this comment.
But can you add a TODO comment to indicate that we should add one once we support metadata config?
There was a problem hiding this comment.
I've added TODO comment. Could you please confirm?
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #31130
Reason for this change
We cannot specify Lustre version for the file system.
Description of changes
Add
fileSystemTypeVersionprop toLustreFileSystemProps.There are some restrictions about
fileSystemTypeVersion.https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-fsx-filesystem.html#cfn-fsx-filesystem-filesystemtypeversion
I've only added validation of V2.10 is supported by the Scratch and Persistent_1 deployment types because
LustreFileSystemPropsdoes not have metadata configuration props.Description of how you validated changes
Add both unit and integ tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license