[BUG] Windows vSphere Node Driver Nodes Improperly Handle Multiple Agent Env Vars #48499
Labels
feature/windows
internal
kind/bug
Issues that are defects reported by users or that we know have reached a real release
Milestone
Rancher Server Setup
Information about the Cluster
User Information
Describe the bug
When provisioning a Windows cluster using the vSphere node driver, Rancher will improperly generate the rancher-wins install file if multiple agent environment variables are provided. All environment variables will be rendered onto a single line, resulting in invalid powershell syntax. This does not reproduce for custom clusters.
To Reproduce
Provision a vSphere cluster with a windows node while specifying multiple agent environment variables
Result
The rancher-wins install script has multiple environment variables set on a single line, and the node will not come up
Expected Result
Only one variable is added on each line, and the node connects to the cluster
Screenshots
Additional context
As a workaround, you can manually adjust the install.ps1 file to ensure each environment variable is on a single line, then run the script
This is due to a missing newline when generating the install file, here
The text was updated successfully, but these errors were encountered: