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

[etcd-snapshot-restore] Snapshot/restore e2e test #872

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

Danil-Grigorev
Copy link
Contributor

@Danil-Grigorev Danil-Grigorev commented Nov 26, 2024

What this PR does / why we need it:

Adds simple e2e scenario for performing ETCD snapshot and restore. Tests will run as nightly, which use EKS LB and allows to pull agent image from rancher without issues.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Fixes #502

Special notes for your reviewer:

Checklist:

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

@Danil-Grigorev Danil-Grigorev added the area/etcdsnapshot-restore Categorizes issue or PR as related to Turtles ETCD Snapshot & Restore feature label Nov 26, 2024
@Danil-Grigorev Danil-Grigorev requested a review from a team as a code owner November 26, 2024 08:57
@Danil-Grigorev Danil-Grigorev added area/etcdsnapshot-restore Categorizes issue or PR as related to Turtles ETCD Snapshot & Restore feature and removed area/etcdsnapshot-restore Categorizes issue or PR as related to Turtles ETCD Snapshot & Restore feature labels Nov 26, 2024
@Danil-Grigorev Danil-Grigorev force-pushed the etcd-machine-snapshot-e2e branch from e0bb023 to 7cc28c2 Compare November 26, 2024 11:53
@Danil-Grigorev
Copy link
Contributor Author

Danil-Grigorev commented Nov 26, 2024

It appears the issue with the e2e setup is due to using isolated-kind ingress setup. While using sslip.io, RKE2 cluster fails to pull agent binary, even while running tests locally.

root@etcd-snapshot-restore-control-plane-pvqsg:/# sh opt/system-agent-install.sh 
[INFO]  CA strict verification is set to false
[INFO]  Using default agent configuration directory /etc/rancher/agent
[INFO]  Using default agent var directory /var/lib/rancher/agent
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

These tests are passing while using ngrok setup, which configures ingress for https access.

Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
Signed-off-by: Danil-Grigorev <danil.grigorev@suse.com>
@Danil-Grigorev Danil-Grigorev force-pushed the etcd-machine-snapshot-e2e branch from 7cc28c2 to f2c97d8 Compare November 28, 2024 06:59
@Danil-Grigorev Danil-Grigorev enabled auto-merge (squash) November 28, 2024 09:45
@Danil-Grigorev Danil-Grigorev merged commit 663e6e4 into rancher:main Nov 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/etcdsnapshot-restore Categorizes issue or PR as related to Turtles ETCD Snapshot & Restore feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[etcdsnapshot&restore] Add E2E tests
3 participants