rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
451 stars 258 forks source link

vSphere CPI chart does not function properly with vSphere Tags enabled by default #7788

Open a-blender opened 1 year ago

a-blender commented 1 year ago

Setup

Describe the bug

The vSphere CPI chart does not function properly with vSphere Tags enabled by default. When you leave vSphere Tags enabled, the CPI chart deploys but the kubelet does not remove taints from the nodes or set the provider ID on the nodes. That in turn, causes the CSI chart deployment to fail because because from the docs, CSI needs the provider ID set on the nodes to work properly.

Both @vivek-infracloud and @slickwarren have seen this.

To Reproduce

Install

image

Taints are not removed from the nodes image

Result

CPI malfunctions and CSI cannot be deployed.

Expected Result

CPI and CSI chart should deploy and function successfully.

a-blender commented 1 year ago

I reproduced this issue on v2.7-head in the UI and then deployed CPI 1.4.1 via helm and did not see the issue. Taints were removed and the provider ID was set on the nodes. It appears to be UI specific. IMO this should be fixed in the UI. vSphere Tags should not be enabled by default and if a user enables it, the UI should pass an empty string instead of null (likely what is happening) or require valid values to install.

Test values.yaml

vCenter:
  host: <fremont URL>
  port: <port>
  insecureFlag: true
  clusterId: "ablender-test-cluster-id"
  datacenters: <datacenter>
  username: <username>
  password: <password>

labels:
  region: ""
  zone: ""
a-blender commented 1 year ago

Attached a PR to update docs for now

a-blender commented 1 year ago

Merged PR for docs update. This still needs to be fixed by UI.

gaktive commented 1 year ago

Putting into Backlog so we can talk this with the team first (Next Up indicates that it has been pointed).

@annablender is this needed for the 2023 Q1 release?