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.26] - The server flag should be skipped or present an error during a cluster-reset #4806

Closed
vitorsavian opened this issue Sep 26, 2023 · 1 comment
Assignees

Comments

@vitorsavian
Copy link
Contributor

Backport fix for The server flag should be skipped or present an error during a cluster-reset

@fmoral2
Copy link
Contributor

fmoral2 commented Oct 10, 2023

Validated on Version:

-$  rke2 version v1.26.9+dev.823f1ea3 (823f1ea3377335cdb2a901834b399f48c5c03997)

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
NAME="SLES"
VERSION="15-SP4"

Cluster Configuration:
3 node servers

Steps to validate the fix

  1. Install rke2 and join 2 other server nodes
  2. Run rke2-killall.sh on the initial server node and one other server node
  3. Attempt cluster-reset on the remaining server node:
$ sudo systemctl  stop rke2
$ sudo rke2 server --cluster-reset

Validation Results:



rke2 -v
rke2 version v1.26.9+dev.823f1ea3 (823f1ea3377335cdb2a901834b399f48c5c03997)




$ sudo systemctl  stop rke2-server

$ sudo rke2 server --cluster-reset


FATA[0020] cannot perform cluster-reset while server URL is set - remove server from configuration before resetting 



@fmoral2 fmoral2 closed this as completed Oct 10, 2023
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