Skip to content
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

[POC] Add support for Rocky Linux 8 #2324

Merged
merged 12 commits into from
Sep 26, 2023
Merged

Conversation

enrico-usai
Copy link
Contributor

@enrico-usai enrico-usai commented Jun 22, 2023

Description of changes

Used new utility os-resources.py introduced as part of #2328 to create new resources for rocky linux, starting from redhat8 resources.

Manually modified:

  • efa -> Replaced RHEL with Rocky Linux in log messages
  • lustre -> Replaced RHEL with Rocky Linux in log messages
  • users --> Replaced ec2-user with rocky
  • os_type --> Replaced rhel with rocky
  • install_packages --> Removed postgresql packages

Removed redhat_on_docker condition from:

  • stunnel
  • system_authentication
  • efa

Relevant fixes to the code:

  • Fix CloudWatch agent setup for Rocky Linux: platform_url_component should point to the same of rhel
  • Copied network setup templates from redhat folders
  • Enabled PowerTools repository. Needed by hwloc-devel blas-devel libedit-devel and glibc-static packages
  • Added rocky8 to pcluster_dcv_connect.sh script

Tests

  • Add Rocky Linux to kitchen configuration files. Copied from rhel8 with minor changes:
    • AMI name prefix took from EC2 Rocky Linux official AMI
    • kernel_release version took from an EC2 Rocky Linux instance
    • username rocky found in kitchen-ec2 driver documentation.
  • Add Rocky Linux to GitHub actions
  • Remove coreutils package on docker.
    • This package conflicts by design with coreutils-single.
    • coreutils-single cannot be removed because related to sudo.
    • This change permits the install_package test to be executed on docker.
  • Fix Inspec tests conditions

References

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (49dcba2) 76.06% compared to head (6da2ce4) 76.06%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2324   +/-   ##
========================================
  Coverage    76.06%   76.06%           
========================================
  Files           13       13           
  Lines         1876     1876           
========================================
  Hits          1427     1427           
  Misses         449      449           
Flag Coverage Δ
unittests 76.06% <ø> (ø)

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.

@enrico-usai enrico-usai force-pushed the wip/rocky branch 6 times, most recently from 38c6650 to 6cb57a8 Compare June 23, 2023 09:27
@enrico-usai enrico-usai changed the title Experiment support for Rocky Linux [POC] Add support for Rocky Linux Jun 23, 2023
@enrico-usai enrico-usai changed the title [POC] Add support for Rocky Linux [POC] Add support for Rocky Linux 8 Jun 23, 2023
@enrico-usai enrico-usai force-pushed the wip/rocky branch 9 times, most recently from e912b14 to d859272 Compare June 28, 2023 08:06
@enrico-usai enrico-usai force-pushed the wip/rocky branch 3 times, most recently from 61bf33e to fdc9339 Compare August 18, 2023 12:28
@enrico-usai
Copy link
Contributor Author

TODO verify if there are "redhat" conditions in the chefspec and inspec tests that must be converted to rocky. (e.g. os_type_spec is missing rocky case).

Used the new utility `os-resources.py` to create new resources for rocky linux,
starting from redhat8 resources.

Manually modified:
* efa -> Replaced RHEL with Rocky Linux in log messages
* lustre -> Replaced RHEL with Rocky Linux in log messages
* users --> Replaced ec2-user with rocky
* os_type --> Replaced rhel with rocky
* install_packages --> Removed postgresql packages

Removed redhat_on_docker condition from:
* stunnel
* system_authentication
* efa

Signed-off-by: Enrico Usai <[email protected]>
* platform_url_component should point to the same of rhel

Signed-off-by: Enrico Usai <[email protected]>
Copied from RedHat files

Signed-off-by: Enrico Usai <[email protected]>
Copied from rhel8 with minor changes:
* AMI name prefix took from EC2 Rocky Linux official AMI
* `kernel_release` version took from an EC2 Rocky Linux instance
* username `rocky` found in kitchen-ec2 driver documentation.

Added Rocky Linux to kitchen tests hooks

### References
* https://hub.docker.com/r/dokken/rockylinux-8
* https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform

Signed-off-by: Enrico Usai <[email protected]>
Needed by hwloc-devel blas-devel libedit-devel and glibc-static packages

Signed-off-by: Enrico Usai <[email protected]>
This package conflicts by design with `coreutils-single`.
`coreutils-single` cannot be removed because related to `sudo`.

This change permits the install_package test to be executed on docker.
Signed-off-by: Enrico Usai <[email protected]>
Define os_properties for rocky linux

Signed-off-by: Enrico Usai <[email protected]>
@enrico-usai enrico-usai marked this pull request as ready for review September 26, 2023 13:58
@enrico-usai enrico-usai requested review from a team as code owners September 26, 2023 13:58
@@ -32,6 +32,7 @@ This file is used to list changes made in each version of the AWS ParallelCluste
------

**ENHANCEMENTS**
- Add support for Rocky Linux 8.
Copy link
Contributor

Choose a reason for hiding this comment

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

I am approving this PR as I will be making changes in the next PR

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.

2 participants