Skip to content

Blank provider listed for cluster when logged in as user who did not create cluster in Rancher v2.x

Article Number: 000020212

Environment

  • A Rancher v2.x launched Rancher Kubernetes Enginer (RKE) cluster, provisioned on nodes hosted in an infrastructure provider
  • Access to the Rancher UI as a user different to the cluster creator

Situation

When viewing a Rancher launched Kubernetes cluster, provisioned on nodes hosted in an infrastructure provider, as a user other than the cluster creator, the infrastructure provider name is blank or shows as Imported.

Cause

Node templates contain the configuration parameters for provisioning nodes in a specific cloud provider.

Node templates are user-scoped and, as a result, where userA creates a node template in Rancher it is not accessible by userB.

Meanwhile, the Rancher v2.x UI determines the provider for a Rancher launched Kubernetes cluster by mapping nodes to node templates to node drivers.

The user-scoping of node templates therefore prevents users, other than the creator, from viewing the provider of the cluster.