Rancher Server 设置
- Rancher 版本:2.6.8
- 安装选项 (Docker install/Helm Chart):
- 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
- 在线或离线部署:
下游集群信息
- Kubernetes 版本: v1.24.4
- Cluster Type (Local/Downstream):
- 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):
用户信息
- 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):
- 如果自定义,自定义权限集:
主机操作系统:
centos 7
问题描述:
K3S 安装rancher 2.6.8 ,证书采用官方脚本生成私有CA与证书,在rancher的UI页面上创建集群,在下游集群服务器上执行命令安装命令,执行命令后集群被创建,但是rancher 平台上显示Cluster agent is not connected,最终错误 [Error] Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (InternalError): an error on the server (“unable to create impersonator account: error setting up impersonation for user u-unbdpex5kt: Unauthorized”) has prevented the request from succeeding
重现步骤:
结果:
下游集群显示信息
预期结果:
截图:
其他上下文信息:
日志
后台rancher日志显示
2022/09/15 09:16:27 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:16:50 [INFO] Creating system token for u-unbdpex5kt, token: agent-u-unbdpex5kt
2022/09/15 09:17:01 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:17:01 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:17:16 [ERROR] error syncing 'c-2rggw': handler cluster-deploy: Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (InternalError): an error on the server ("unable to create impersonator account: error setting up impersonation for user u-unbdpex5kt: Unauthorized") has prevented the request from succeeding , requeuing
2022/09/15 09:17:29 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:17:29 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:18:32 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:18:32 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:18:45 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:18:45 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:19:16 [INFO] Creating system token for u-unbdpex5kt, token: agent-u-unbdpex5kt
2022/09/15 09:19:26 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:19:26 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:19:42 [ERROR] error syncing 'c-2rggw': handler cluster-deploy: Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (InternalError): an error on the server ("unable to create impersonator account: error setting up impersonation for user u-unbdpex5kt: Unauthorized") has prevented the request from succeeding , requeuing
2022/09/15 09:20:37 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:20:37 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:20:51 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:20:51 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:21:08 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:21:08 [ERROR] failed to start cluster controllers c-2rggw: context canceled
2022/09/15 09:21:42 [INFO] Creating system token for u-unbdpex5kt, token: agent-u-unbdpex5kt
2022/09/15 09:21:52 [INFO] Stopping cluster agent for c-2rggw
2022/09/15 09:21:52 [ERROR] failed to start cluster controllers c-2rggw: context canceled