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

Backport of Add additional Linux distros and Consul editions to Enos scenarios into release/1.16.x #27361

Conversation

hc-github-team-secure-vault-core
Copy link
Contributor

Backport

This PR is auto-generated from #25983 to be assessed for backporting due to the inclusion of the label backport/1.16.x.

The below text is copied from the body of the original PR.


This PR:

  • Adds Enos module support for additional Linux distros in multiple versions: Amazon Linux (amzn2), OpenSUSE Leap (15.5, 15.4), SUSE SLES (v15 SP5), as well as support for installing and using various packages with each one
  • Adds additional Linux distros into all scenarios that include distros in the matrix
  • Adds support for Consul enterprise edition
  • Adds consul_edition into all relevant scenarios
  • Updates CI scenario sampling to include new matrix items
  • Upgrades our RHEL versions from 8.8 and 9.1 to 8.9 and 9.3

This more than doubles the number of Linux distros/versions we test Vault on, and allows us to test integrations of Vault with Consul enterprise in addition to Consul community edition.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/rebwill/add-additional-linux-distros-and-consul-editions-to-enos-scenarios/immensely-prepared-midge branch from 4fee2a7 to 087b772 Compare June 5, 2024 16:58
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Jun 5, 2024
Copy link

github-actions bot commented Jun 5, 2024

CI Results:
All Go tests succeeded! ✅

Copy link

github-actions bot commented Jun 5, 2024

Build Results:
All builds succeeded! ✅

@rebwill rebwill force-pushed the backport/rebwill/add-additional-linux-distros-and-consul-editions-to-enos-scenarios/immensely-prepared-midge branch from e6e450d to fa7fa61 Compare June 6, 2024 20:14
ryancragun and others added 3 commits June 10, 2024 15:14
…ity (#27380)

* [VAULT-27917] fix(enos): handle SLES guestregister.service unreliability

The SLES provided `guestregister.service` systemd unit is unreliable
enough that it will fail ~ 1/9 times when provisioning SLES instances.
When this happens the machine will never successfully exec SUSEConnect
to enroll and we'll get no access to the SLES repositories and
subsequently break our scenarios.

I resolved this by restructuring our `install_packages` module to to
separate repository synchronization, repository addition, and package
installation into different scripts and resources and by adding special
case handling for SLES and the `guestregister.service`.

I also make a distinction between `dnf` and `yum` because while they are
sort of the same thing on RHEL, it is not the case with Amazon2. I also
shimmed out the rest of the support for Apt in case we ever need to add
repos there.

* Revert "Temporarily remove SLES from samples (#27378)"

This reverts commit 490cdd9.

Signed-off-by: Ryan Cragun <[email protected]>
It appears that starting with v0.5.2 the misspell linter embeds the
version directory into the release archive.

Signed-off-by: Ryan Cragun <[email protected]>
@rebwill rebwill closed this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog pr/no-milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants