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.24] Bootstrap of HA cluster fails with when agent bootstrap token used as server token #7500

Closed
brandond opened this issue May 9, 2023 · 1 comment
Assignees
Milestone

Comments

@brandond
Copy link
Member

brandond commented May 9, 2023

@est-suse
Copy link
Contributor

Validated on Version:

f575bd1cc6ac19995e014bb5fde8bd98164dad05

k3s version v1.24.13+k3s-f575bd1c (f575bd1c)
go version go1.19.8

Cluster Configuration:

1 node

Config.yaml:

write-kubeconfig-mode: 0644
debug: true
protect-kernel-defaults: true
selinux: true
token: xxxx.yyyyy
cluster-init: true

Steps to validate the fix:

Install k3s in commit version
Generate a k3s token in format: xxxxxxx.yyyyyy
Start server with the token in config.yaml
Check logs for error message

May 17 18:12:24 ip-172-31-4-200 k3s[13479]: panic: failed to normalize server token; must be in format K10<CA-HASH>::<USERNAME>:<PASSWORD> or <PASSWORD>
May 17 18:12:36 ip-172-31-4-200 k3s[13497]: time="2023-05-17T18:12:36Z" level=fatal msg="Failed to reconcile with temporary etcd: failed to normalize server token; must be in format K10<CA-HASH>::<USERNAME>:<PASSWORD> or <PASSWORD>"
May 17 18:17:19 ip-172-31-4-200 k3s[13886]: time="2023-05-17T18:17:19Z" level=info msg="Managed etcd cluster bootstrap already complete and initialized"
May 17 18:17:24 ip-172-31-4-200 k3s[13886]: time="2023-05-17T18:17:24Z" level=info msg="Reconciling bootstrap data between datastore and disk"

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

No branches or pull requests

3 participants