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

[Release 1.20] - s3 snapshots do not show in the rancher 2.6 UI #1579

Closed
briandowns opened this issue Aug 10, 2021 · 4 comments
Closed

[Release 1.20] - s3 snapshots do not show in the rancher 2.6 UI #1579

briandowns opened this issue Aug 10, 2021 · 4 comments
Assignees

Comments

@briandowns
Copy link
Contributor

Backport of #1551

@briandowns briandowns added this to the v1.20.9+rke2r1 milestone Aug 10, 2021
@briandowns briandowns self-assigned this Aug 10, 2021
@davidnuzik davidnuzik self-assigned this Aug 11, 2021
@davidnuzik
Copy link
Contributor

Only 1.21 is supported in 2.6 UI so I will test with just standalone RKE2 here.
Testing from CommitId is broken according to this issue. I will need a 1.20 RC or build to test.

@brandond
Copy link
Member

@briandowns is there a PR for this? I don't see one linked.

@briandowns
Copy link
Contributor Author

PR - #1603

@davidnuzik
Copy link
Contributor

I will test just standalone RKE2 here in this issue. This is because Rancher v2.6.0 will only support rke2 1.21 and newer.

My checks PASSED

Reproduction Steps:

Not required as I fully understand the issue.

Validation Steps:

Host OS: Ubuntu 20.04 amd64
RKE2 version: v1.20.9+rke2r2
Tested with a 1-node rke2 cluster.

Validation steps:

  1. Create /etc/rancher/rke2/config.yaml with the following content. Take note we specify an s3 folder (which is what we are focusing our testing on here as per the code change).
"write-kubeconfig-mode": "0644"
"etcd-s3": true
"etcd-s3-access-key": "REDACTED_ACCESS_KEY"
"etcd-s3-bucket": "dave-secret-bucket"
"etcd-s3-endpoint": "s3.us-east-2.amazonaws.com"
"etcd-s3-folder": "dave-rke2v120"
"etcd-s3-region": "us-east-2"
"etcd-s3-secret-key": "REDACTED_SECRET_KEY"
"etcd-s3-skip-ssl-verify": true
"etcd-snapshot-retention": 2
"etcd-snapshot-schedule-cron": "50 * * * *"
  1. Install RKE2 via the install.sh script:
    curl -sfL https://get.rke2.io | INSTALL_RKE2_VERSION=v1.20.9+rke2r2 sh -
  2. Ensure the config.yaml took properly by checking the rke2.io/node-args annotation on the node with kubectl.
  3. A snapshot is automatically taken as per my cron schedule.
  4. An on-demand snapshot is successful:
    rke2 etcd-snapshot --s3 --s3-skip-ssl-verify --s3-region "us-east-2" --s3-bucket "dave-secret-bucket" --s3-folder "dave-rke2v120" --s3-access-key "REDACTED_ACCESS_KEY" --s3-secret-key "REDACTED_SECRET_KEY"

Result:
My scheduled snapshots and my on-demand snapshot are successfully uploaded to the bucket in the correct folder
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants