adamant-kite-43734
09/14/2023, 11:11 AMbland-twilight-27418
09/14/2023, 11:27 AMbland-twilight-27418
09/14/2023, 11:27 AMbland-twilight-27418
09/14/2023, 11:28 AMfast-motorcycle-89632
09/14/2023, 11:32 AMerror while connecting to Kubernetes cluster: the server has asked for the client to provide credenti
Sep 14 16:43:23 zhjw-master-01 rancher-system-agent[1330]: time="2023-09-14T16:43:23+08:00" level=info msg="Starting remote watch of plans"
Sep 14 16:43:23 zhjw-master-01 rancher-system-agent[1330]: time="2023-09-14T16:43:23+08:00" level=fatal msg="error while connecting to Kubernetes cluster: the server has asked for the client to provide credenti>Sep 14 16:43:28 zhjw-master-01 rancher-system-agent[1337]: time="2023-09-14T16:43:28+08:00" level=info msg="Rancher System Agent version v0.3.3 (9e827a5) is starting"
Sep 14 16:43:28 zhjw-master-01 rancher-system-agent[1337]: time="2023-09-14T16:43:28+08:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
Sep 14 16:43:28 zhjw-master-01 rancher-system-agent[1337]: time="2023-09-14T16:43:28+08:00" level=debug msg="Instantiated new image utility with imagesDir: /var/lib/rancher/agent/images, imageCredentialProvider>Sep 14 16:43:28 zhjw-master-01 rancher-system-agent[1337]: time="2023-09-14T16:43:28+08:00" level=info msg="Starting remote watch of plans"
Sep 14 16:43:28 zhjw-master-01 rancher-system-agent[1337]: time="2023-09-14T16:43:28+08:00" level=fatal msg="error while connecting to Kubernetes cluster: the server has asked for the client to provide credenti>Sep 14 16:43:32 zhjw-master-01 rancher-system-agent[1483]: time="2023-09-14T16:43:32+08:00" level=info msg="Rancher System Agent version v0.3.3 (9e827a5) is starting"
Sep 14 16:43:32 zhjw-master-01 rancher-system-agent[1483]: time="2023-09-14T16:43:32+08:00" level=info msg="Using directory /var/lib/rancher/agent/work for work"
Sep 14 16:43:32 zhjw-master-01 rancher-system-agent[1483]: time="2023-09-14T16:43:32+08:00" level=info msg="Starting remote watch of plans"
Sep 14 16:43:32 zhjw-master-01 rancher-system-agent[1483]: E0914 16:43:32.913442 1483 memcache.go:206] couldn't get resource list for <http://management.cattle.io/v3|management.cattle.io/v3>:
Sep 14 16:43:32 zhjw-master-01 rancher-system-agent[1483]: time="2023-09-14T16:43:32+08:00" level=info msg="Starting /v1, Kind=Secret controller"
fast-motorcycle-89632
09/14/2023, 11:35 AMbland-twilight-27418
09/14/2023, 12:57 PMfast-motorcycle-89632
09/15/2023, 1:54 AM2023/09/15 01:47:16 [DEBUG] [etcd-backup] checking backups for cluster [local]
2023/09/15 01:47:16 [DEBUG] [etcd-backup] [local] is not an rke cluster, skipping..
2023/09/15 01:47:16 [DEBUG] [etcd-backup] [local] is not an rke cluster, skipping..
2023/09/15 01:47:16 [DEBUG] [etcd-backup] checking backups for cluster [c-m-wc7wcln6]
2023/09/15 01:47:16 [DEBUG] [etcd-backup] [c-m-wc7wcln6] is not an rke cluster, skipping..
2023/09/15 01:47:16 [DEBUG] [etcd-backup] [c-m-wc7wcln6] is not an rke cluster, skipping..
2023/09/15 01:47:19 [DEBUG] Wrote ping
2023/09/15 01:47:19 [DEBUG] Wrote ping
2023/09/15 01:47:23 [DEBUG] DesiredSet - No change(2) /v1, Kind=ServiceAccount fleet-default/custom-64d51b4a4a8a-machine-bootstrap for rke-bootstrap fleet-default/custom-64d51b4a4a8a
2023/09/15 01:47:23 [DEBUG] DesiredSet - No change(2) /v1, Kind=ServiceAccount fleet-default/custom-64d51b4a4a8a-machine-plan for rke-bootstrap fleet-default/custom-64d51b4a4a8a
2023/09/15 01:47:23 [DEBUG] DesiredSet - No change(2) /v1, Kind=Secret fleet-default/custom-64d51b4a4a8a-machine-bootstrap for rke-bootstrap fleet-default/custom-64d51b4a4a8a
2023/09/15 01:47:23 [DEBUG] DesiredSet - No change(2) /v1, Kind=Secret fleet-default/custom-64d51b4a4a8a-machine-plan for rke-bootstrap fleet-default/custom-64d51b4a4a8a
2023/09/15 01:47:23 [DEBUG] DesiredSet - No change(2) <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>, Kind=Role fleet-default/custom-64d51b4a4a8a-machine-plan for rke-bootstrap fleet-default/custom-64d51b4a4a8a
2023/09/15 01:47:23 [DEBUG] DesiredSet - No change(2) <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>, Kind=RoleBinding fleet-default/custom-64d51b4a4a8a-machine-plan for rke-bootstrap fleet-default/custom-64d51b4a4a8a
2023/09/15 01:47:23 [DEBUG] Extras returned map[principalid:[<system://provisioning/fleet-default/zhjw> <local://u-vrtps3d7wq>] username:[]]
2023/09/15 01:47:23 [DEBUG] Triggering auth refresh on u-vrtps3d7wq
2023/09/15 01:47:23 [DEBUG] Searching for providerID for selector <http://rke.cattle.io/machine=15ad0257-4d1a-4f52-a25f-17c9855fd4cf|rke.cattle.io/machine=15ad0257-4d1a-4f52-a25f-17c9855fd4cf> in cluster fleet-default/zhjw, machine custom-64d51b4a4a8a: {"Code":{"Code":"Forbidden","Status":403},"Message":"<http://clusters.management.cattle.io|clusters.management.cattle.io> \"c-m-wc7wcln6\" is forbidden: User \"u-vrtps3d7wq\" cannot get resource \"clusters\" in API group \"<http://management.cattle.io|management.cattle.io>\" at the cluster scope","Cause":null,"FieldName":""} (get nodes)
2023/09/15 01:47:23 [DEBUG] Skipping refresh for system-user u-vrtps3d7wq
2023/09/15 01:47:24 [DEBUG] Wrote ping
2023/09/15 01:47:24 [DEBUG] Wrote ping
2023/09/15 01:47:25 [DEBUG] [CAPI] Cannot retrieve CRD with metadata only client, falling back to slower listing
2023/09/15 01:47:25 [DEBUG] [CAPI] Cannot retrieve CRD with metadata only client, falling back to slower listing
2023/09/15 01:47:25 [DEBUG] [CAPI] Infrastructure provider is not ready, requeuing
2023/09/15 01:47:25 [DEBUG] [CAPI] Cannot reconcile Machine's Node, no valid ProviderID yet
bland-twilight-27418
09/15/2023, 5:17 AMbland-twilight-27418
09/15/2023, 5:22 AMbland-twilight-27418
09/15/2023, 5:37 AMSep 14 16:43:23 zhjw-master-01 rancher-system-agent[1330]: time="2023-09-14T16:43:23+08:00" level=fatal msg="error while connecting to Kubernetes cluster: the server has asked for the client to provide credenti
fast-motorcycle-89632
09/15/2023, 8:07 AMControl Plane, Etcd
, I think the node will be active, then I goto register the new node with Worker
.
The correct steps should be:
1. register a node with Contorl Plane, Etcd
2. register a node with Worker
3. wait these two nodes become active
bland-twilight-27418
09/15/2023, 8:22 AM