Skip to content

Conversation

@hanwen-pcluste
Copy link
Contributor

@hanwen-pcluste hanwen-pcluste commented Jan 16, 2024

Description of changes

  • See commit descriptions for details

Tests

References

Checklist

  • Make sure you are pointing to the right branch.
  • If you're creating a patch for a branch other than develop add the branch name as prefix in the PR title (e.g. [release-3.6]).
  • Check all commits' messages are clear, describing what and why vs how.
  • Make sure to have added unit tests or integration tests to cover the new/modified code.
  • Check if documentation is impacted by this change.

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.

@hanwen-pcluste hanwen-pcluste requested review from a team as code owners January 16, 2024 22:40
@hanwen-pcluste hanwen-pcluste marked this pull request as draft January 16, 2024 22:40
@codecov
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f8a7177) 90.21% compared to head (7bfddc2) 90.21%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6018   +/-   ##
========================================
  Coverage    90.21%   90.21%           
========================================
  Files          181      181           
  Lines        15827    15827           
========================================
  Hits         14278    14278           
  Misses        1549     1549           
Flag Coverage Δ
unittests 90.21% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hanwen-pcluste hanwen-pcluste force-pushed the develop branch 3 times, most recently from 7487e77 to 31158e1 Compare January 17, 2024 20:10
@hanwen-pcluste hanwen-pcluste changed the title [Draft][WIP] Support for RHEL9 and Rocky9 Support for RHEL9 and Rocky9 Jan 18, 2024
@hanwen-pcluste hanwen-pcluste marked this pull request as ready for review January 18, 2024 14:36
@hanwen-pcluste hanwen-pcluste force-pushed the develop branch 8 times, most recently from 8517184 to 2d91425 Compare January 24, 2024 16:09
Comment on lines 359 to 366
log_file_owner_result = self.remote_command_executor.run_remote_command(
f"stat -c '%U' {log_path}", raise_on_error=False
)
if log_file_owner_result.failed:
# If failed, it means the `log_path` does not contain files/directories. Use root as the default owner.
log_file_owner = "root"
else:
log_file_owner = log_file_owner_result.stdout.strip()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is repeated, perhaps this should defined as a function? a referenced here and above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@hanwen-pcluste hanwen-pcluste force-pushed the develop branch 2 times, most recently from 66fad31 to bf971b3 Compare February 7, 2024 14:33
gmarciani
gmarciani previously approved these changes Feb 8, 2024
@hanwen-pcluste hanwen-pcluste changed the title Support for RHEL9 and Rocky9 [Develop] Support for RHEL9 and Rocky9 Feb 13, 2024
gmarciani
gmarciani previously approved these changes Feb 14, 2024
Signed-off-by: Hanwen <hanwenli@amazon.com>
Signed-off-by: Hanwen <hanwenli@amazon.com>
test_multiple_fsx covers the checks in test_fsx_lustre

Signed-off-by: Hanwen <hanwenli@amazon.com>
…pdate

While testing RHEL9, we found t2.micro does not have enough memory for RHEL9

Signed-off-by: Hanwen <hanwenli@amazon.com>
FYI: the version of Lustre file systems created by pcluster CLI has already been upgraded to 2.12. We forgot to update integration tests code.

Signed-off-by: Hanwen <hanwenli@amazon.com>
In many of the operating systems ParallelCluster supported, `root` user could bypass any files permissions. However, with RHEL9 and Rocky9, `root` user could not bypass files permissions by default. Therefore, this commit improves integration tests to operate on files with the owner users of the files

Signed-off-by: Hanwen <hanwenli@amazon.com>
Signed-off-by: Hanwen <hanwenli@amazon.com>
The commands prior to this PR do not work with RHEL9. Therefore, we change the logic to use the command from the verified guide. I discussed the change with Giordano. We didn't have any concern.

Signed-off-by: Hanwen <hanwenli@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants