Rancher注册worker节点提示密码被拒绝

环境信息:
RKE2 版本: j2.6

节点 CPU 架构,操作系统和版本:
ubuntu 2204

问题描述:

1,创建好rancher管理端,注册两个三个master节点以后。
2,注册剩下三个workerj节点的时候发生报错。

[details=“日志”]

Sep 08 12:17:03 CD-K8sWorker01 rke2[3264]: time=“2022-09-08T12:17:03Z” level=info msg=“Waiting to retrieve agent configuration; server is not ready: Node password rejected, duplicate hostname or contents of ‘/etc/rancher/node/password’ may not match server node-passwd entry, try enabling a unique node name with the --with-node-id flag”

检查每个节点的主机名,有可能有相同的主机名。

同样的错误,检查了没得相同的主机名