-
Notifications
You must be signed in to change notification settings - Fork 104
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
Migrate internal storage to EFS from NFS exports #2465
Conversation
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## develop #2465 +/- ##
========================================
Coverage 76.06% 76.06%
========================================
Files 13 13
Lines 1876 1876
========================================
Hits 1427 1427
Misses 449 449
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
0f79ce2
to
b2be028
Compare
cookbooks/aws-parallelcluster-environment/recipes/config/mount_cx_fs.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/config/mount_cx_fs.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/mount_internal_use_fs.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Show resolved
Hide resolved
1364a59
to
cffa14f
Compare
28c41d9
to
46b03bd
Compare
cookbooks/aws-parallelcluster-environment/kitchen.environment-config.yml
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/kitchen.environment-config.yml
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/kitchen.environment-config.yml
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/kitchen.environment-recipes.yml
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/attributes/environment.rb
Outdated
Show resolved
Hide resolved
cookbooks/aws-parallelcluster-environment/recipes/init/backup_internal_use_shared_data.rb
Show resolved
Hide resolved
29a478c
to
937d422
Compare
Add backup and restore recipes to move data in second stage images to shared filesystems Create a new mount_internal_use_fs.rb recipe to mount the internal shared filesystems Filter the efs filesystem arrays to mount internal shared fses in init and cx fses in config Refactor environment recipes to be clearer in functional description and remove unnecessary recipes
937d422
to
47140cd
Compare
internal_efs_fs_id_array.push(efs_fs_id_array[index]) | ||
internal_efs_encryption_array.push(efs_encryption_in_transit_array[index]) | ||
internal_efs_iam_array.push(efs_iam_authorization_array[index]) | ||
end |
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 block of code, from the beginning, it's "duplicated" in the efs.rb.
What about having a first recipe that parses the efs_shared_dirs
creating the two internal_*_array
vs cx_*_array
?
Then the mount_internal_use_fs.rb
will just call the mount of the efs passing internal_*_array
and the efs
will mount the cx_*
ones.
In the code it's enough to have it at the beginning of the init.rb
before the mount
, In the inspec tests we just need to add it as dependency to be executed as first.
What do you think?
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.
I'm not sure. I prefer having code here that just filters the ones we need for the init and a separate one that filters what we need for the cx. We do this filtering process twice, so I wonder if it might be better to just put this into the attributes file and then leverage the attributes we need in each recipe. This did get auto merged with Giacomo's approval, but I will do this refactoring as a follow up
cookbooks/aws-parallelcluster-environment/recipes/init/mount_internal_use_fs.rb
Show resolved
Hide resolved
# This is necessary to preserve any data in these directories that was | ||
# generated during the build of ParallelCluster AMIs after converting to | ||
# shared storage and backed up to a temporary location previously | ||
# Remove the backup after the copy is done |
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 the backup after the copy is done
can be moved in the code block before the rm
.
cookbooks/aws-parallelcluster-slurm/test/controls/mount_slurm_dir_spec.rb
Show resolved
Hide resolved
Add backup and restore recipes to move data in second stage images to shared filesystems Create a new mount_internal_use_fs.rb recipe to mount the internal shared filesystems Filter the efs filesystem arrays to mount internal shared fses in init and cx fses in config Refactor environment recipes to be clearer in functional description and remove unnecessary recipes
Add backup and restore recipes to move data in second stage images to shared filesystems Create a new mount_internal_use_fs.rb recipe to mount the internal shared filesystems Filter the efs filesystem arrays to mount internal shared fses in init and cx fses in config Refactor environment recipes to be clearer in functional description and remove unnecessary recipes
Description of changes
[Develop] Migrate internal storage to EFS from NFS exports
Tests
Checklist
develop
add the branch name as prefix in the PR title (e.g.[release-3.6]
).Please review the guidelines for contributing and Pull Request Instructions.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.