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

test: add e2e for rancher with embedded capi disabled #207

Conversation

salasberryfin
Copy link
Contributor

@salasberryfin salasberryfin commented Oct 16, 2023

What this PR does / why we need it:

With #190 we are changing the tests so that Rancher is installed first with the "embedded CAPI" feature flag enabled and then disabling it before installing Rancher Turtles. This PR adds a new E2E test scenario that covers the installation in reversed order: we install Rancher first with embedded-cluster-api disabled and then install Rancher Turtles.

Which issue(s) this PR fixes:
Fixes #193

Special notes for your reviewer:

QA reported rancher/rancher#41724 a few months ago, describing a problem encountered when installing Rancher with the embedded CAPI feature flag set to false. After some investigation (mainly trial & error), it looks like using the format --set features=embedded-cluster-api=false does not work and Rancher ultimately fails to install. From our own development environment setup here, we get the format --set CATTLE_FEATURES=embedded-cluster-api=false which seems to be fixing this issue. This is now changed in rancher.go.

Apart from the environment setup, the tests are equivalent to those used in suites/v2prov. Hopefully this aligns with what's expected.

This PR needs to be rebased and updated after merging #204

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@salasberryfin salasberryfin force-pushed the test-installing-rancher-with-embedded-capi-disabled branch from 348705c to 7d3ef02 Compare October 17, 2023 08:49
@salasberryfin
Copy link
Contributor Author

I rebased the changes and updated the new test suit based on #204.

@salasberryfin salasberryfin requested a review from a team October 17, 2023 16:24
@Danil-Grigorev
Copy link
Contributor

What is the issue with --set embedded-cluster-api=false @salasberryfin? Original e2e tests were based on this flag, and post submits were passing. Here is an example https://github.com/rancher-sandbox/rancher-turtles/actions/runs/6324002240/job/17172655090

@salasberryfin
Copy link
Contributor Author

@Danil-Grigorev the issue occurs when installing Rancher first with the feature disabled (this was reported some time ago here). It does not fail when installing Rancher Turtles before Rancher, which is the case for the update-labels test suite.

@alexander-demicev alexander-demicev merged commit ccfaeea into rancher:main Oct 18, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Categorizes issue or PR as related to a new feature. kind/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[E2E] Add test that covers installer Rancher being installed with CAPI disabled
4 participants