Skip to content

[Deps] Install MySQL client from individual RPMs instead of a bundled tarball#3205

Merged
himani2411 merged 2 commits into
aws:developfrom
himani2411:mysql-installing-rpm
Jul 16, 2026
Merged

[Deps] Install MySQL client from individual RPMs instead of a bundled tarball#3205
himani2411 merged 2 commits into
aws:developfrom
himani2411:mysql-installing-rpm

Conversation

@himani2411

@himani2411 himani2411 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Description of changes

Install MySQL client from individual RPMs instead of a bundled tarball.

RHEL-based mysql_client previously downloaded a single PCluster-built mysql-community-client-.tar.gz from S3, extracted it, and ran yum install on the contents. That bundle only ever exists in the PCluster S3 mirror, so base_url could not be redirected to a public source.

Download the individual community client RPMs (common, client-plugins, libs, devel; plus libs-compat on el7) from base_url/el/N/arch and install them in a single yum transaction. base_url can now point at either the S3 mirror or MySQL's public yum repo via ExtraChefAttributes of mysql's base_url. Drop the now-unused package_filename/package_archive helpers and the dead repository_packages method from the RHEL partial; add rocky to the spec's RPM-install assertions.

Tests

  • Build Image on all Osses using ExtrChefAttributes successful
  • Slurm accounting integ tests

References

  • Link to impacted open issues.
  • Link to related PRs in other packages (i.e. cookbook, node).
  • Link to documentation useful to understand the changes.

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-cluster
hanwen-cluster previously approved these changes Jun 15, 2026
Comment on lines +51 to +52
if platform_version == 2
platform_version = 7
7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor: we don't need this branch anymore because amazon linux 2 has been deprecated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated

@himani2411
himani2411 force-pushed the mysql-installing-rpm branch from 15a072c to f5a4a7d Compare June 15, 2026 21:10
@himani2411
himani2411 force-pushed the mysql-installing-rpm branch from f5a4a7d to 796ee76 Compare July 15, 2026 19:23
@himani2411
himani2411 marked this pull request as ready for review July 15, 2026 19:23
@himani2411
himani2411 requested review from a team as code owners July 15, 2026 19:23
Himani Anil Deshpande added 2 commits July 16, 2026 15:19
… tarball

RHEL-based mysql_client previously downloaded a single PCluster-built
mysql-community-client-<version>.tar.gz from S3, extracted it, and ran
yum install on the contents. That bundle only ever exists in the PCluster S3
mirror, so base_url could not be redirected to a public source.

Download the individual community client RPMs (common, client-plugins, libs,
devel; plus libs-compat on el7) from base_url/el/N/arch and install them in a
single yum transaction. base_url can now point at either the S3 mirror or
MySQL's public yum repo via ExtraChefAttributes. Drop the now-unused
package_filename/package_archive helpers and the dead repository_packages
method from the RHEL partial; add rocky to the spec's RPM-install assertions.
@himani2411
himani2411 force-pushed the mysql-installing-rpm branch from ec3bda2 to 9b9ffb9 Compare July 16, 2026 19:19
@himani2411
himani2411 enabled auto-merge (rebase) July 16, 2026 19:31
@himani2411
himani2411 merged commit 5bddf21 into aws:develop Jul 16, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants