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.31] - S3 snapshots missing from etcdsnapshotfile list / k3s-etcd-snapshots configmap when multiple nodes save at the same time #11050

Closed
brandond opened this issue Oct 9, 2024 · 1 comment
Assignees
Labels
waiting-for-RC Issue is available to test only after we have an RC
Milestone

Comments

@brandond
Copy link
Member

brandond commented Oct 9, 2024

Backport fix for S3 snapshots missing from etcdsnapshotfile list / k3s-etcd-snapshots configmap when multiple nodes save at the same time

@brandond brandond self-assigned this Oct 9, 2024
@brandond brandond moved this from New to To Test in K3s Development Oct 10, 2024
@brandond brandond added this to the v1.31.2+k3s1 milestone Oct 10, 2024
@aganesh-suse aganesh-suse added the waiting-for-RC Issue is available to test only after we have an RC label Oct 24, 2024
@VestigeJ
Copy link

Previous behavior established here - lots of noise around etcd-snapshots taken from Rancher rancher/rke2#7027 (comment)

Screenshot 2024-10-25 at 3 25 45 PM

$ sudo kubectl get nodes

NAME                            STATUS   ROLES                              AGE     VERSION
v1312rc2222-pool1-qnsps-6tz6t   Ready    control-plane,etcd,master,worker   4h27m   v1.31.2-rc2+k3s1
v1312rc2222-pool1-qnsps-6wxlv   Ready    control-plane,etcd,master,worker   4h27m   v1.31.2-rc2+k3s1
v1312rc2222-pool1-qnsps-jdhll   Ready    control-plane,etcd,master,worker   4h29m   v1.31.2-rc2+k3s1
v1312rc2222-pool2-cxjqq-69nl6   Ready    worker                             4h27m   v1.31.2-rc2+k3s1

$ sudo kubectl get cm -n kube-system k3s-etcd-snapshots

NAME                 DATA   AGE
k3s-etcd-snapshots   12     146m

$ sudo k3s etcd-snapshot ls

Name                                                   Location                                                                                               Size     Created
etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402 file:///var/lib/rancher/k3s/server/db/snapshots/etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402 10240032 2024-10-25T20:00:02Z
on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289     file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289     10240032 2024-10-25T22:11:29Z

$ sudo kubectl get etcdsnapshotfile

NAME                                                                  SNAPSHOTNAME                                             NODE                            LOCATION                                                                                                 SIZE       CREATIONTIME
local-etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402-fa98d2   etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402   v1312rc2222-pool1-qnsps-6tz6t   file:///var/lib/rancher/k3s/server/db/snapshots/etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402   10240032   2024-10-25T20:00:02Z
local-etcd-snapshot-v1312rc2222-pool1-qnsps-6wxlv-1729886405-8f9c68   etcd-snapshot-v1312rc2222-pool1-qnsps-6wxlv-1729886405   v1312rc2222-pool1-qnsps-6wxlv   file:///var/lib/rancher/k3s/server/db/snapshots/etcd-snapshot-v1312rc2222-pool1-qnsps-6wxlv-1729886405   10268704   2024-10-25T20:00:05Z
local-etcd-snapshot-v1312rc2222-pool1-qnsps-jdhll-1729886400-c0cab1   etcd-snapshot-v1312rc2222-pool1-qnsps-jdhll-1729886400   v1312rc2222-pool1-qnsps-jdhll   file:///var/lib/rancher/k3s/server/db/snapshots/etcd-snapshot-v1312rc2222-pool1-qnsps-jdhll-1729886400   10375200   2024-10-25T20:00:00Z
local-on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289-3ff983       on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289       v1312rc2222-pool1-qnsps-6tz6t   file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289       10240032   2024-10-25T22:11:29Z
local-on-demand-v1312rc2222-pool1-qnsps-6wxlv-1729894289-bea64f       on-demand-v1312rc2222-pool1-qnsps-6wxlv-1729894289       v1312rc2222-pool1-qnsps-6wxlv   file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-v1312rc2222-pool1-qnsps-6wxlv-1729894289       10268704   2024-10-25T22:11:29Z
local-on-demand-v1312rc2222-pool1-qnsps-jdhll-1729894289-f41106       on-demand-v1312rc2222-pool1-qnsps-jdhll-1729894289       v1312rc2222-pool1-qnsps-jdhll   file:///var/lib/rancher/k3s/server/db/snapshots/on-demand-v1312rc2222-pool1-qnsps-jdhll-1729894289       10375200   2024-10-25T22:11:29Z
s3-etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402-5daa13      etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402   s3                              s3://justin-snapshot-buckets/v1312rc2/etcd-snapshot-v1312rc2222-pool1-qnsps-6tz6t-1729886402             10240032   2024-10-25T20:00:02Z
s3-etcd-snapshot-v1312rc2222-pool1-qnsps-6wxlv-1729886405-53323d      etcd-snapshot-v1312rc2222-pool1-qnsps-6wxlv-1729886405   s3                              s3://justin-snapshot-buckets/v1312rc2/etcd-snapshot-v1312rc2222-pool1-qnsps-6wxlv-1729886405             10268704   2024-10-25T20:00:05Z
s3-etcd-snapshot-v1312rc2222-pool1-qnsps-jdhll-1729886400-da171e      etcd-snapshot-v1312rc2222-pool1-qnsps-jdhll-1729886400   s3                              s3://justin-snapshot-buckets/v1312rc2/etcd-snapshot-v1312rc2222-pool1-qnsps-jdhll-1729886400             10375200   2024-10-25T20:00:00Z
s3-on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289-3b0fed          on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289       s3                              s3://justin-snapshot-buckets/v1312rc2/on-demand-v1312rc2222-pool1-qnsps-6tz6t-1729894289                 10240032   2024-10-25T22:11:29Z
s3-on-demand-v1312rc2222-pool1-qnsps-6wxlv-1729894289-53d324          on-demand-v1312rc2222-pool1-qnsps-6wxlv-1729894289       s3                              s3://justin-snapshot-buckets/v1312rc2/on-demand-v1312rc2222-pool1-qnsps-6wxlv-1729894289                 10268704   2024-10-25T22:11:29Z
s3-on-demand-v1312rc2222-pool1-qnsps-jdhll-1729894289-ebe884          on-demand-v1312rc2222-pool1-qnsps-jdhll-1729894289       s3                              s3://justin-snapshot-buckets/v1312rc2/on-demand-v1312rc2222-pool1-qnsps-jdhll-1729894289                 10375200   2024-10-25T22:11:29Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-RC Issue is available to test only after we have an RC
Projects
Status: Done Issue
Development

No branches or pull requests

3 participants