rancher: Intermittent error seen while cluster is provisioning and provisioning is stalled for long time before it gets to active state.

What kind of request is this (question/bug/enhancement/feature request): bug

Steps to reproduce (least amount of steps as possible):

  • Deploy a 5 node custom cluster - 1 etcd/control and 4 worker nodes.
  • Two intermittent errors are seen, after which the cluster comes up successfully
Screen Shot 2020-09-04 at 5 15 53 PM

and Cluster health check failed: Failed to communicate with API server: Get "https://52.15.106.195<>:6443/api/v1/namespaces/kube-system?timeout=45s": dial tcp 127.0.0.1:6443: connect: connection refused; Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRole" N

Note: there will NOT always be reproducible. It was stuck for about 5-10 minutes and then recovered

Environment information

  • Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): master-head - commit id: 4911f8b116eb
  • Installation option (single install/HA): HA

Cluster information

  • Cluster type (Hosted/Infrastructure Provider/Custom/Imported): custom
  • Kubernetes version (use kubectl version):
1.16

gz#15890 gz#16321

gz#16913

gz#17175

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 11
  • Comments: 28 (10 by maintainers)

Most upvoted comments

I thought rancher will be an easier way to install k8s…

Rancher Server Setup

Component Version / Type
Rancher version starting v2.7.11-fc2c10ad9db31cde0bc2df0b55a3e33c1a630978-head
Rancher commit link https://github.com/rancher/rancher/commit/fc2c10ad9db31cde0bc2df0b55a3e33c1a630978
Installation option Helm (high availability)
If Helm Chart k8s cluster v1.25.10+k3s1
Cert Details external tls aws acm
k3s ha external db Aurora MySQL 5.7.mysql_aurora.2.11.1
Helm version v2.16.8-rancher2
Downstream cluster type Linode RKE1
Downstream K8s version v1.27.10
Authentication providers enabled local
Logged in user role admin / standard user
Browser type Opera GX
Browser version LVL5 (core: 106.0.4998.76) (x86_64)
Dashboard release-2.7 46ae55846
Webhook version rancher/rancher-webhook:v0.3.7-rc2
❯ helm get values rancher -n cattle-system
USER-SUPPLIED VALUES:
bootstrapPassword: <<<REDACTED>>>
extraEnv:
- name: CATTLE_AGENT_IMAGE
  value: <<<REDACTED>>>
global:
  cattle:
    psp:
      enabled: false
hostname: <<<REDACTED>>>
rancherImage: <<<REDACTED>>>
rancherImageTag: v2.7.11-head
tls: external

Describe the bug

As a standard user or admin, can’t provision a downstream rke1 cluster.

Getting this error message:

(screenshot also attached)

Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRole" Name: "proxy-clusterrole-kubeapiserver", Namespace: "" from server for: "./management-statefile_path_redacted": clusterroles.rbac.authorization.k8s.io "proxy-clusterrole-kubeapiserver" is forbidden: User "u-po5fffxv63" cannot get resource "clusterroles" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterrolebindings", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding" Name: "proxy-role-binding-kubernetes-master", Namespace: "" from server for: "./management-statefile_path_redacted": clusterrolebindings.rbac.authorization.k8s.io "proxy-role-binding-kubernetes-master" is forbidden: User "u-po5fffxv63" cannot get resource "clusterrolebindings" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=namespaces", GroupVersionKind: "/v1, Kind=Namespace" Name: "cattle-system", Namespace: "" from server for: "./management-statefile_path_redacted": namespaces "cattle-system" is forbidden: User "u-po5fffxv63" cannot get resource "namespaces" in API group "" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=serviceaccounts", GroupVersionKind: "/v1, Kind=ServiceAccount" Name: "cattle", Namespace: "cattle-system" from server for: "./management-statefile_path_redacted": serviceaccounts "cattle" is forbidden: User "u-po5fffxv63" cannot get resource "serviceaccounts" in API group "" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterrolebindings", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding" Name: "cattle-admin-binding", Namespace: "" from server for: "./management-statefile_path_redacted": clusterrolebindings.rbac.authorization.k8s.io "cattle-admin-binding" is forbidden: User "u-po5fffxv63" cannot get resource "clusterrolebindings" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=secrets", GroupVersionKind: "/v1, Kind=Secret" Name: "cattle-credentials-174adb3", Namespace: "cattle-system" from server for: "./management-statefile_path_redacted": secrets "cattle-credentials-174adb3" is forbidden: User "u-po5fffxv63" cannot get resource "secrets" in API group "" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRole" Name: "cattle-admin", Namespace: "" from server for: "./management-statefile_path_redacted": clusterroles.rbac.authorization.k8s.io "cattle-admin" is forbidden: User "u-po5fffxv63" cannot get resource "clusterroles" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment" Name: "cattle-cluster-agent", Namespace: "cattle-system" from server for: "./management-statefile_path_redacted": deployments.apps "cattle-cluster-agent" is forbidden: User "u-po5fffxv63" cannot get resource "deployments" in API group "apps" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=daemonsets", GroupVersionKind: "apps/v1, Kind=DaemonSet" Name: "cattle-node-agent", Namespace: "cattle-system" from server for: "./management-statefile_path_redacted": daemonsets.apps "cattle-node-agent" is forbidden: User "u-po5fffxv63" cannot get resource "daemonsets" in API group "apps" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=daemonsets", GroupVersionKind: "apps/v1, Kind=DaemonSet" Name: "kube-api-auth", Namespace: "cattle-system" from server for: "./management-statefile_path_redacted": daemonsets.apps "kube-api-auth" is forbidden: User "u-po5fffxv63" cannot get resource "daemonsets" in API group "apps" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=services", GroupVersionKind: "/v1, Kind=Service" Name: "cattle-cluster-agent", Namespace: "cattle-system" from server for: "./management-statefile_path_redacted": services "cattle-cluster-agent" is forbidden: User "u-po5fffxv63" cannot get resource "services" in API group "" in the namespace "cattle-system"

To Reproduce

  1. Setup a Rancher server as described in Rancher Server Setup section above
  2. Create a standard user
  3. Login as the standard user
  4. Create a downstream Linode RKE1 cluster
  5. Received the mentioned error
  6. Issue also occurs if admin tries to create a downstream RKE1 Linode cluster

Note: RKE2 and EKS 1.27 k8s clusters are coming up active as expected

Attempted workaround:

Upgrade local cluster k8s to v1.26.13+k3s2 the original RKE1 Linode clusters stayed in a bad state.

Tried to create a new RKE1 Linode downstream after upgrading. Getting a new error:

[ERROR] Failed to set up SSH tunneling for host [<<<REDACTED_IP>>>]: Can't retrieve Docker Info: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": can not build dialer to [c-xthll:m-cfn89]

Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) <<<REDACTED_IP>>>

Result

Cluster does not come up active and has this warning: (see screenshot)

Expected Result

To be able to create a downstream RKE1 Linode cluster with k8s 1.27

Screenshots

2024-02-13_10-24-08

Additional context

Bug Frequency

Frequency Selected Option
Consistent (10/10) - A consistent bug can be replicated every time the test is executed.
Frequent (7/10)- A frequent bug can be replicated like 7 out of 10 times when a test is replicated
Occasional (5/10) - Occasional bug is more hard to replicate than a frequent bug.
Once thus far, twice thus far - Few bugs cannot be reproduced every time you run the test. ❎ Once thus far, twice thus far

Hello, downstream cluster remains stuck in Provisioning state. Please assist. Thanks.

Rancher v2.7.4 Downstream : RKE1, K8s v1.25.9

Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (Forbidden): error when retrieving current configuration of: Resource: “rbac.authorization.k8s.io/v1, Resource=clusterroles”, GroupVersionKind: “rbac.authorization.k8s.io/v1, Kind=ClusterRole” Name: “proxy-clusterrole-kubeapiserver”, Namespace: “” from server for: “./management-statefile_path_redacted”: clusterroles.rbac.authorization.k8s.io “proxy-clusterrole-kubeapiserver” is forbidden: User “u-pl3h4p7xtj” cannot get resource “clusterroles” in API group “rbac.authorization.k8s.io” at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: “rbac.authorization.k8s.io/v1, Resource=clusterrolebindings”, GroupVersionKind: “rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding” Name: “proxy-role-binding-kubernetes-master”, Namespace: “” from server for: “./management-statefile_path_redacted”: clusterrolebindings.rbac.authorization.k8s.io “proxy-role-binding-kubernetes-master” is forbidden: User “u-pl3h4p7xtj” cannot get resource “clusterrolebindings” in API group “rbac.authorization.k8s.io” at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: “/v1, Resource=namespaces”, GroupVersionKind: “/v1, Kind=Namespace” Name: “cattle-system”, Namespace: “” from server for: “./management-statefile_path_redacted”: namespaces “cattle-system” is forbidden: User “u-pl3h4p7xtj” cannot get resource “namespaces” in API group “” in the namespace “cattle-system” Error from server (Forbidden): error when retrieving current configuration of: Resource: “/v1, Resource=serviceaccounts”, GroupVersionKind: “/v1, Kind=ServiceAccount” Name: “cattle”, Namespace: “cattle-system” from server for: “./management-statefile_path_redacted”: serviceaccounts “cattle” is forbidden: User “u-pl3h4p7xtj” cannot get resource “serviceaccounts” in API group “” in the namespace “cattle-system” Error from server (Forbidden): error when retrieving current configuration of: Resource: “rbac.authorization.k8s.io/v1, Resource=clusterrolebindings”, GroupVersionKind: “rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding” Name: “cattle-admin-binding”, Namespace: “” from server for: “./management-statefile_path_redacted”: clusterrolebindings.rbac.authorization.k8s.io “cattle-admin-binding” is forbidden: User “u-pl3h4p7xtj” cannot get resource “clusterrolebindings” in API group “rbac.authorization.k8s.io” at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: “/v1, Resource=secrets”, GroupVersionKind: “/v1, Kind=Secret” Name: “cattle-credentials-df6de44”, Namespace: “cattle-system” from server for: “./management-statefile_path_redacted”: secrets “cattle-credentials-df6de44” is forbidden: User “u-pl3h4p7xtj” cannot get resource “secrets” in API group “” in the namespace “cattle-system” Error from server (Forbidden): error when retrieving current configuration of: Resource: “rbac.authorization.k8s.io/v1, Resource=clusterroles”, GroupVersionKind: “rbac.authorization.k8s.io/v1, Kind=ClusterRole” Name: “cattle-admin”, Namespace: “” from server for: “./management-statefile_path_redacted”: clusterroles.rbac.authorization.k8s.io “cattle-admin” is forbidden: User “u-pl3h4p7xtj” cannot get resource “clusterroles” in API group “rbac.authorization.k8s.io” at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: “apps/v1, Resource=deployments”, GroupVersionKind: “apps/v1, Kind=Deployment” Name: “cattle-cluster-agent”, Namespace: “cattle-system” from server for: “./management-statefile_path_redacted”: deployments.apps “cattle-cluster-agent” is forbidden: User “u-pl3h4p7xtj” cannot get resource “deployments” in API group “apps” in the namespace “cattle-system” Error from server (Forbidden): error when retrieving current configuration of: Resource: “apps/v1, Resource=daemonsets”, GroupVersionKind: “apps/v1, Kind=DaemonSet” Name: “cattle-node-agent”, Namespace: “cattle-system” from server for: “./management-statefile_path_redacted”: daemonsets.apps “cattle-node-agent” is forbidden: User “u-pl3h4p7xtj” cannot get resource “daemonsets” in API group “apps” in the namespace “cattle-system” Error from server (Forbidden): error when retrieving current configuration of: Resource: “apps/v1, Resource=daemonsets”, GroupVersionKind: “apps/v1, Kind=DaemonSet” Name: “kube-api-auth”, Namespace: “cattle-system” from server for: “./management-statefile_path_redacted”: daemonsets.apps “kube-api-auth” is forbidden: User “u-pl3h4p7xtj” cannot get resource “daemonsets” in API group “apps” in the namespace “cattle-system” Error from server (Forbidden): error when retrieving current configuration of: Resource: “/v1, Resource=services”, GroupVersionKind: “/v1, Kind=Service” Name: “cattle-cluster-agent”, Namespace: “cattle-system” from server for: “./management-statefile_path_redacted”: services “cattle-cluster-agent” is forbidden: User “u-pl3h4p7xtj” cannot get resource “services” in API group “” in the namespace “cattle-system”

Seeing the same issue with Rancher on Exoscale. It can take anywhere between 10 to 60 minutes to recover, sometimes it doesn’t. The deployment is fully automated (using the terraform’s rancher driver) so there is no difference or manual changes between attempts.

rancher | v2.4.5 User Interface | v2.4.28 Helm | v2.16.8-rancher1 Machine | v0.15.0-rancher43

Update: seeing the same now on Azure & AWS. It does not appear to be a vendor issue but a Rancher (etcd/controld?) startup issue.

This error happens basically on every deployment (9 out of 10 are faulty).

Provider: Amazon EC2 K8s Version: v1.18.15 Rancher Version: v2.4.8 1 cp/etcd node + 1 worker node (t2.large each)

Error while applying agent YAML, it will be retried automatically: exit status 1, Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRole" Name: "proxy-clusterrole-kubeapiserver", Namespace: "" Object: &{map["apiVersion":"rbac.authorization.k8s.io/v1" "kind":"ClusterRole" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"proxy-clusterrole-kubeapiserver"] "rules":[map["apiGroups":[""] "resources":["nodes/metrics" "nodes/proxy" "nodes/stats" "nodes/log" "nodes/spec"] "verbs":["get" "list" "watch" "create"]]]]} from server for: "management-statefile_path_redacted": clusterroles.rbac.authorization.k8s.io "proxy-clusterrole-kubeapiserver" is forbidden: User "u-7f4nygfh3f" cannot get resource "clusterroles" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterrolebindings", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding" Name: "proxy-role-binding-kubernetes-master", Namespace: "" Object: &{map["apiVersion":"rbac.authorization.k8s.io/v1" "kind":"ClusterRoleBinding" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"proxy-role-binding-kubernetes-master"] "roleRef":map["apiGroup":"rbac.authorization.k8s.io" "kind":"ClusterRole" "name":"proxy-clusterrole-kubeapiserver"] "subjects":[map["apiGroup":"rbac.authorization.k8s.io" "kind":"User" "name":"kube-apiserver"]]]} from server for: "management-statefile_path_redacted": clusterrolebindings.rbac.authorization.k8s.io "proxy-role-binding-kubernetes-master" is forbidden: User "u-7f4nygfh3f" cannot get resource "clusterrolebindings" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=namespaces", GroupVersionKind: "/v1, Kind=Namespace" Name: "cattle-system", Namespace: "" Object: &{map["apiVersion":"v1" "kind":"Namespace" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"cattle-system"]]} from server for: "management-statefile_path_redacted": namespaces "cattle-system" is forbidden: User "u-7f4nygfh3f" cannot get resource "namespaces" in API group "" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=serviceaccounts", GroupVersionKind: "/v1, Kind=ServiceAccount" Name: "cattle", Namespace: "cattle-system" Object: &{map["apiVersion":"v1" "kind":"ServiceAccount" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"cattle" "namespace":"cattle-system"]]} from server for: "management-statefile_path_redacted": serviceaccounts "cattle" is forbidden: User "u-7f4nygfh3f" cannot get resource "serviceaccounts" in API group "" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1beta1, Resource=clusterrolebindings", GroupVersionKind: "rbac.authorization.k8s.io/v1beta1, Kind=ClusterRoleBinding" Name: "cattle-admin-binding", Namespace: "" Object: &{map["apiVersion":"rbac.authorization.k8s.io/v1beta1" "kind":"ClusterRoleBinding" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "labels":map["cattle.io/creator":"norman"] "name":"cattle-admin-binding"] "roleRef":map["apiGroup":"rbac.authorization.k8s.io" "kind":"ClusterRole" "name":"cattle-admin"] "subjects":[map["kind":"ServiceAccount" "name":"cattle" "namespace":"cattle-system"]]]} from server for: "management-statefile_path_redacted": clusterrolebindings.rbac.authorization.k8s.io "cattle-admin-binding" is forbidden: User "u-7f4nygfh3f" cannot get resource "clusterrolebindings" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "/v1, Resource=secrets", GroupVersionKind: "/v1, Kind=Secret" Name: "cattle-credentials-1552bb9", Namespace: "cattle-system" Object: &{map["apiVersion":"v1" "data":map["namespace":"Yy0ycThkZg==" "token":"REDACTED" "url":"aHR0cHM6Ly9yYW5jaGVyLWRldi5sa3YtZ2Vub2NlbGwuZGU="] "kind":"Secret" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"cattle-credentials-1552bb9" "namespace":"cattle-system"] "type":"Opaque"]} from server for: "management-statefile_path_redacted": secrets "cattle-credentials-1552bb9" is forbidden: User "u-7f4nygfh3f" cannot get resource "secrets" in API group "" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "rbac.authorization.k8s.io/v1, Resource=clusterroles", GroupVersionKind: "rbac.authorization.k8s.io/v1, Kind=ClusterRole" Name: "cattle-admin", Namespace: "" Object: &{map["apiVersion":"rbac.authorization.k8s.io/v1" "kind":"ClusterRole" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "labels":map["cattle.io/creator":"norman"] "name":"cattle-admin"] "rules":[map["apiGroups":["*"] "resources":["*"] "verbs":["*"]] map["nonResourceURLs":["*"] "verbs":["*"]]]]} from server for: "management-statefile_path_redacted": clusterroles.rbac.authorization.k8s.io "cattle-admin" is forbidden: User "u-7f4nygfh3f" cannot get resource "clusterroles" in API group "rbac.authorization.k8s.io" at the cluster scope Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=deployments", GroupVersionKind: "apps/v1, Kind=Deployment" Name: "cattle-cluster-agent", Namespace: "cattle-system" Object: &{map["apiVersion":"apps/v1" "kind":"Deployment" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"cattle-cluster-agent" "namespace":"cattle-system"] "spec":map["selector":map["matchLabels":map["app":"cattle-cluster-agent"]] "template":map["metadata":map["labels":map["app":"cattle-cluster-agent"]] "spec":map["affinity":map["nodeAffinity":map["preferredDuringSchedulingIgnoredDuringExecution":[map["preference":map["matchExpressions":[map["key":"node-role.kubernetes.io/controlplane" "operator":"In" "values":["true"]]]] "weight":'d'] map["preference":map["matchExpressions":[map["key":"node-role.kubernetes.io/etcd" "operator":"In" "values":["true"]]]] "weight":'\x01']] "requiredDuringSchedulingIgnoredDuringExecution":map["nodeSelectorTerms":[map["matchExpressions":[map["key":"beta.kubernetes.io/os" "operator":"NotIn" "values":["windows"]]]]]]]] "containers":[map["env":[map["name":"CATTLE_FEATURES" "value":"dashboard=true"] map["name":"CATTLE_SERVER" "value":"https://domain.tld"] map["name":"CATTLE_CA_CHECKSUM" "value":""] map["name":"CATTLE_CLUSTER" "value":"true"] map["name":"CATTLE_K8S_MANAGED" "value":"true"]] "image":"rancher/rancher-agent:v2.4.8" "imagePullPolicy":"IfNotPresent" "name":"cluster-register" "volumeMounts":[map["mountPath":"/cattle-credentials" "name":"cattle-credentials" "readOnly":%!q(bool=true)]]]] "serviceAccountName":"cattle" "tolerations":[map["operator":"Exists"]] "volumes":[map["name":"cattle-credentials" "secret":map["defaultMode":'\u0140' "secretName":"cattle-credentials-1552bb9"]]]]]]]} from server for: "management-statefile_path_redacted": deployments.apps "cattle-cluster-agent" is forbidden: User "u-7f4nygfh3f" cannot get resource "deployments" in API group "apps" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=daemonsets", GroupVersionKind: "apps/v1, Kind=DaemonSet" Name: "cattle-node-agent", Namespace: "cattle-system" Object: &{map["apiVersion":"apps/v1" "kind":"DaemonSet" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"cattle-node-agent" "namespace":"cattle-system"] "spec":map["selector":map["matchLabels":map["app":"cattle-agent"]] "template":map["metadata":map["labels":map["app":"cattle-agent"]] "spec":map["affinity":map["nodeAffinity":map["requiredDuringSchedulingIgnoredDuringExecution":map["nodeSelectorTerms":[map["matchExpressions":[map["key":"beta.kubernetes.io/os" "operator":"NotIn" "values":["windows"]]]]]]]] "containers":[map["env":[map["name":"CATTLE_NODE_NAME" "valueFrom":map["fieldRef":map["fieldPath":"spec.nodeName"]]] map["name":"CATTLE_SERVER" "value":"https://domain.tld"] map["name":"CATTLE_CA_CHECKSUM" "value":""] map["name":"CATTLE_CLUSTER" "value":"false"] map["name":"CATTLE_K8S_MANAGED" "value":"true"] map["name":"CATTLE_AGENT_CONNECT" "value":"true"]] "image":"rancher/rancher-agent:v2.4.8" "imagePullPolicy":"IfNotPresent" "name":"agent" "securityContext":map["privileged":%!q(bool=true)] "volumeMounts":[map["mountPath":"/cattle-credentials" "name":"cattle-credentials" "readOnly":%!q(bool=true)] map["mountPath":"/etc/kubernetes" "name":"k8s-ssl"] map["mountPath":"/var/run" "name":"var-run"] map["mountPath":"/run" "name":"run"] map["mountPath":"/etc/docker/certs.d" "name":"docker-certs"]]]] "hostNetwork":%!q(bool=true) "serviceAccountName":"cattle" "tolerations":[map["operator":"Exists"]] "volumes":[map["hostPath":map["path":"/etc/kubernetes" "type":"DirectoryOrCreate"] "name":"k8s-ssl"] map["hostPath":map["path":"/var/run" "type":"DirectoryOrCreate"] "name":"var-run"] map["hostPath":map["path":"/run" "type":"DirectoryOrCreate"] "name":"run"] map["name":"cattle-credentials" "secret":map["defaultMode":'\u0140' "secretName":"cattle-credentials-1552bb9"]] map["hostPath":map["path":"/etc/docker/certs.d" "type":"DirectoryOrCreate"] "name":"docker-certs"]]]] "updateStrategy":map["rollingUpdate":map["maxUnavailable":"25%"] "type":"RollingUpdate"]]]} from server for: "management-statefile_path_redacted": daemonsets.apps "cattle-node-agent" is forbidden: User "u-7f4nygfh3f" cannot get resource "daemonsets" in API group "apps" in the namespace "cattle-system" Error from server (Forbidden): error when retrieving current configuration of: Resource: "apps/v1, Resource=daemonsets", GroupVersionKind: "apps/v1, Kind=DaemonSet" Name: "kube-api-auth", Namespace: "cattle-system" Object: &{map["apiVersion":"apps/v1" "kind":"DaemonSet" "metadata":map["annotations":map["kubectl.kubernetes.io/last-applied-configuration":""] "name":"kube-api-auth" "namespace":"cattle-system"] "spec":map["selector":map["matchLabels":map["app":"kube-api-auth"]] "template":map["metadata":map["labels":map["app":"kube-api-auth"]] "spec":map["affinity":map["nodeAffinity":map["requiredDuringSchedulingIgnoredDuringExecution":map["nodeSelectorTerms":[map["matchExpressions":[map["key":"beta.kubernetes.io/os" "operator":"NotIn" "values":["windows"]] map["key":"node-role.kubernetes.io/controlplane" "operator":"In" "values":["true"]]]]]]]] "containers":[map["image":"rancher/kube-api-auth:v0.1.4" "imagePullPolicy":"IfNotPresent" "name":"kube-api-auth" "securityContext":map["privileged":%!q(bool=true)] "volumeMounts":[map["mountPath":"/etc/kubernetes" "name":"k8s-ssl"]]]] "hostNetwork":%!q(bool=true) "serviceAccountName":"cattle" "tolerations":[map["operator":"Exists"]] "volumes":[map["hostPath":map["path":"/etc/kubernetes" "type":"DirectoryOrCreate"] "name":"k8s-ssl"]]]] "updateStrategy":map["rollingUpdate":map["maxUnavailable":"25%"] "type":"RollingUpdate"]]]} from server for: "management-statefile_path_redacted": daemonsets.apps "kube-api-auth" is forbidden: User "u-7f4nygfh3f" cannot get resource "daemonsets" in API group "apps" in the namespace "cattle-system"

Is there any workaround possible yet?

I am consistently running into this issue when deploying a custom cluster. I can confirm that it does take quite a few minutes but eventually will recover and the new cluster will become active. Rancher version is 2.4.8 and the K8 version of the cluster is 1.17.4. Rancher runs on 3 nodes on AWS spread among 3 AZ’s and downstream masters are the same configuration.