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

rke2 etcd-snapshot commands run against server specified in config file, instead of local server #6325

Closed
brandond opened this issue Jul 15, 2024 · 1 comment
Assignees

Comments

@brandond
Copy link
Member

RKE2 tracking issue for:

@fmoral2
Copy link
Contributor

fmoral2 commented Jul 24, 2024

Validated on Version:

-$ rke2 version v1.30.2+dev.ffe6de9b (ffe6de9ba769e487bc1eada1cffa6a32c696e41d)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
ubuntu
AMD

Cluster Configuration:
-3 node server
-1 node agents

Steps to validate the fix

  1. Install rke2 etcd embedded
  2. Take etcd snapshot on the second server
  3. Validate its taken on the correct place ( second server )

Validation Results:

 
rke2 version v1.28.12+dev.649d8c1f (649d8c1f9f3509f6965574fa19ed4c6cc3fbcd3c)


 Server 1 - ip 172-test1
Server 2 - ip 172-test2
Server 3 - ip 172-test3


- on Server 2 
$ sudo rke2 etcd-snapshot save 

INFO[0001] Snapshot on-demand-ip-172-test2.us-east-2.compute.internal-1721321853 saved. 

$  rke2 etcd-snapshot list

Name                                                             Location                                                                                                         Size    Created
on-demand-ip-172-test2.us-east-2.compute.internal-1721321853 file://{redacted}ip-172-test2.us-east-2.compute.internal-    2024-07-24T15:26:32Z


~$ sudo rke2  etcd-snapshot save --etcd-server https://localhost:9345
INFO[0000] Snapshot on-demand-ip-172-test2.us-east-2.compute.internal-1721322104 saved. 


- Snapshot pointing to first server also works
~$ sudo rke2 etcd-snapshot save --etcd-server https://172-test1:6443
INFO[0000] Snapshot on-demand-ip-172-test1.us-east-2.compute.internal-1721322170 saved. 




- on server 1
$ sudo rke2 etcd-snapshot save 
INFO[0003] Snapshot on-demand-ip-172-test1.us-east-2.compute.internal-1721321767 saved. 



$ sudo rke2  etcd-snapshot save --etcd-server https://localhost:9345
 INFO[0003] Snapshot on-demand-ip-172-test1.us-east-2.compute.internal-1721321767 saved.


$rke2 etcd-snapshot list

Name                                                             Location                                                                                                         Size    Created
on-demand-ip-172-test1.us-east-2.compute.internal-1721321853 file://{redacted}ip-172-test2.us-east-2.compute.internal-    2024-07-24T15:26:32Z


on-demand-ip-172-test1.us-east-2.compute.internal-1721321853 file://{redacted}ip-172-test2.us-east-2.compute.internal-    2024-07-24T15:30:41Z

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

2 participants