用rancher创建k8s集群一直显示配置中

Rancher Server 设置

  • Rancher 版本:v2.6.6
  • 安装选项 (Docker install/Helm Chart):
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:
  • 在线或离线部署:在线安装

下游集群信息

  • Kubernetes 版本: v1.23.7-rancher1-1
  • Cluster Type (Local/Downstream):
    • 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):

自定义集群,创建k8s集群,安装一个master节点,两个worker节点.

问题描述:
集群界面一直显示正在配置中,rancher节点,有日志报错,
k8s的节点,日志现在,正在配置,注册。卡了6个小时以上。

**
图片
:**

其他上下文信息:

[details="W0723 04:42:49.194697 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.620764 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.634773 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.691596 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.693008 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:52.568141 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:52.635406 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:52.636685 43 transport.go:288] Unable to cancel request for *client.addQuery
2022/07/23 04:43:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:45:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
W0723 04:45:52.565136 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.813917 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.823395 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.889643 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.918985 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:53.964007 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:54.189118 43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:54.189269 43 transport.go:288] Unable to cancel request for *client.addQuery
2022/07/23 04:47:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:49:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:51:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:53:01 [INFO] rate limited provisioning-cluster-create(map[objectset.rio.cattle.io/hash:f82eac20dda40145f7c575cad3e352750781883f]) 1.058489555s
2022/07/23 04:53:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:55:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:57:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
[1]

W0723 04:42:49.194697      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.620764      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.634773      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.691596      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:50.693008      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:52.568141      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:52.635406      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:42:52.636685      43 transport.go:288] Unable to cancel request for *client.addQuery
2022/07/23 04:43:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:45:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
W0723 04:45:52.565136      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.813917      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.823395      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.889643      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:52.918985      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:53.964007      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:54.189118      43 transport.go:288] Unable to cancel request for *client.addQuery
W0723 04:45:54.189269      43 transport.go:288] Unable to cancel request for *client.addQuery
2022/07/23 04:47:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:49:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:51:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:53:01 [INFO] rate limited provisioning-cluster-create(map[objectset.rio.cattle.io/hash:f82eac20dda40145f7c575cad3e352750781883f]) 1.058489555s
2022/07/23 04:53:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:55:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 04:57:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
^[a2022/07/23 04:59:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing
2022/07/23 05:01:11 [ERROR] error syncing 'scheduledscan/c-jrt2z:0 0 * * *': handler scheduledScanHandler:sync: cluster not ready, requeuing


[/details]


  1. a2022/07/23 04:59:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
    2022/07/23 05:01:11 [ERROR] error syncing ‘scheduledscan/c-jrt2z:0 0 * * *’: handler scheduledScanHandler:sync: cluster not ready, requeuing
    " ↩︎

看起来你使用的下游集群是RKE?如果是RKE,可以在下游节点上,看一下node-agent和cluster-agent容器的日志,找找线索。
此种情况,社区常见的情况是,使用了自定义的域名,但是下游集群中的容器网络无法访问该域名,这会导致Rancher的一些组件无法与rancher-server正常通讯。

我微信号:dblike9
方便的话,帮忙远程看下
master log

在此处键入或粘贴代码
time="2022-07-24T07:36:20Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:21Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:21Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:21Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:21Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:22Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:22Z" level=warning msg="Error while getting agent config: invalid response 500: Operation cannot be fulfilled on nodes.management.cattle.io \"m-eda507ecf9f7\": the object has been modified; please apply your changes to the latest version and try again"
time="2022-07-24T07:36:22Z" level=warning msg="Error while getting agent config: invalid response 500: Operation cannot be fulfilled on nodes.management.cattle.io \"m-eda507ecf9f7\": the object has been modified; please apply your changes to the latest version and try again"
time="2022-07-24T07:36:23Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:23Z" level=warning msg="Error while getting agent config: invalid response 500: Operation cannot be fulfilled on nodes.management.cattle.io \"m-eda507ecf9f7\": the object has been modified; please apply your changes to the latest version and try again"
time="2022-07-24T07:36:23Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:23Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:23Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:24Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:25Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:25Z" level=warning msg="Error while getting agent config: invalid response 500: Operation cannot be fulfilled on nodes.management.cattle.io \"m-eda507ecf9f7\": the object has been modified; please apply your changes to the latest version and try again"
time="2022-07-24T07:36:25Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:25Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"
time="2022-07-24T07:36:26Z" level=info msg="Waiting for node to register. Either cluster is not ready for registering, cluster is currently provisioning, or etcd, controlplane and worker node have to be registered"

worker node日志

在此处键入或粘贴代码
93e75a762eb9