-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add utility scripts to simplify testing of a new OS #2328
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## develop #2328 +/- ##
========================================
Coverage 70.16% 70.16%
========================================
Files 13 13
Lines 1840 1840
========================================
Hits 1291 1291
Misses 549 549
Flags with carried forward coverage won't be shown. Click here to find out more. |
gmarciani
previously approved these changes
Jun 26, 2023
… resources The new utility `os-resources.py` script is able to copy the `resources/<name>/<name>_{src_platform}{src_version}` into a `resources/<name>/<name>_{dst_platform}{dst_version}`, replacing the following patterns: * `platform: '{src_platform}'` * `platform?('{src_platform}')`` * `to_i == {src_version}`` * `platform_version: '{src_version}'` This utility permits to automatically generate all the required files, then they must be checked one by one to see if there are OS specific checks on them. Templates and other specific files must be manually copied. Signed-off-by: Enrico Usai <[email protected]>
The script is able to search for all the test suites defined into the functional cookbook and run them sequentially. It must be executed from the root folder of the cookbook repo: bash util/test-os.sh ec2 rhel8 The output will be saved into a `/tmp/kitchen-<os>-<date>` folder. To run config tests is required to set a KITCHEN_${os}_AMI environment variable (e.g. KITCHEN_RHEL8_AMI) or have a ParallelCluster AMI in the account. Signed-off-by: Enrico Usai <[email protected]>
gmarciani
approved these changes
Jun 26, 2023
enrico-usai
added a commit
to enrico-usai/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 29, 2023
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
himani2411
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
Apr 4, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
himani2411
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
Apr 8, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
himani2411
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
Apr 15, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
himani2411
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
May 1, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
himani2411
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
May 8, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
May 17, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 3, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 4, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 5, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 5, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 7, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 7, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 10, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to hanwen-pcluste/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 11, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 11, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 11, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
to himani2411/aws-parallelcluster-cookbook
that referenced
this pull request
Jun 11, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of aws#2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with aws#2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
hanwen-pcluste
pushed a commit
that referenced
this pull request
Jun 12, 2024
### Description of changes Used new utility `os-resources.py` introduced as part of #2328 to create new resources for alinux2023, starting from redhat8 resources. Relevant changes to the code: * os_type --> Replaced rhel with alinux * Tried to fix CloudWatch agent setup by changing `platform_url_component` to point to the same of rhel (not sure if it's correct) * Copied network setup templates from redhat folders * Added alinux2023 to pcluster_dcv_connect.sh script Removed redhat_on_docker condition from: * stunnel * system_authentication * efa TODO: * efa -> check efa_supported? condition and log messages * lustre -> check version condition and log messages * install_packages --> Removed postgresql packages * Enable repository needed by hwloc-devel blas-devel libedit-devel and glibc-static packages ### Tests * Added Alinux2023 to ec2 kitchen configuration files. Copied from rhel8 with minor changes: * AMI name prefix took from EC2 Amazon Linux official AMI * I called the suite `alinux-2023`, with an "-" in the name to avoid having alinux2 as prefix of alinux-2023 and be able to distinguish them on Inspec runs. * Created new `pre_converge` hook to install libxcrypt-compat package, required to install Chef, leveraging the work done with #2342 * I had to pass a custom `provisioner/download_url` for cinc because package for AL2023 is not available in the default path. * The validated resources are: * nvidia_driver * arm_Pl * c_states * stunnel * build_tools * chrony * modules * munge * dns_domain (install only) * jwt_dependencies * nfs (install only) * raid (install only) * system_authentication (install only) * efs (install only) TODO: * Add Alinux2023 to GitHub actions * Add new os to kitchen.docker.yml config file (search for `kernel_release` version from an EC2 instance) * Fix Inspec and ChefSpec tests conditions ### References * https://hub.docker.com/_/amazonlinux * https://github.com/test-kitchen/kitchen-ec2/tree/main/lib/kitchen/driver/aws/standard_platform Known issues/FE: * amazonlinux/amazon-linux-2023#47 * amazonlinux/amazon-linux-2023#146 * amazonlinux/amazon-linux-2023#168 * amazonlinux/amazon-linux-2023#309 * amazonlinux/amazon-linux-2023#316 Signed-off-by: Enrico Usai <[email protected]> [AL2023] Use systemd-resolved instead of dhclient on Alinux 2023 Signed-off-by: Hanwen <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add new utility os-resources.py to simplify creation of OS specific resources
The new utility
os-resources.py
script is able to copy theresources/<name>/<name>_{src_platform}{src_version}
into a
resources/<name>/<name>_{dst_platform}{dst_version}
, replacing the following patterns:platform: '{src_platform}'
platform?('{src_platform}')
to_i == {src_version}
platform_version: '{src_version}'
This utility permits to automatically generate all the required files,
then they must be checked one by one to see if there are OS specific checks on them.
Templates files must be manually copied.
Add test-os.sh utility to simplify run of kitchen tests for an OS
The script is able to search for all the test suites defined
into the functional cookbook and run them sequentially.
It must be executed from the root folder of the cookbook repo:
bash util/test-os.sh ec2 rhel8
The output will be saved into a
/tmp/kitchen-<os>-<date>
folder.To run config tests is required to set a
KITCHEN_${os}_AMI
environment variable (e.g.KITCHEN_RHEL8_AMI
)or have a ParallelCluster AMI in the account.