dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Allow provisioning Vsphere RKE2 DS clusters with duplicate networks names

Open gaktive opened this issue 2 years ago • 7 comments

Internal reference: SURE-6853 & SURE-6177

Request description: A user uses VMWare as infrastructure to provision rke2 downstream clusters. The Vsphere Distributed Switches, VDS, get networks from NSX-T. There is only one Transport zone so all VDS get the same networks, therefore network names are duplicated.

Actual behavior: The Rancher UI stalls when provisioning at networks tab and the provisioning process fails.

Expected behavior: Provisioning a new rke2 cluster when the network names are duplicated

Workaround: Provisioning the cluster with cluster templates. The networks can be specified

https://github.com/rancher/cluster-template-examples/blob/main/charts/values-vsphere.yaml

  # vSphere network where the virtual machine will be attached
  # network: ""

A different workaround is using terraform.

gaktive avatar Sep 29 '23 23:09 gaktive

@gaktive The main discussion around this issue can be found in SURE-6177, and the proposed fix(using ids instead of names) will require changes on both backend and UI side. SURE-6177 is still in "Waiting for Reporter" status, and once we decide to implement this, the UI part of it will be blocked by the BE.

momesgin avatar Jan 03 '24 18:01 momesgin

SURE-6177 closed due to inactivity so if UI needs this, then this will require additional input.

gaktive avatar Jan 16 '24 00:01 gaktive

SURE-6177 closed due to inactivity so if UI needs this, then this will require additional input.

gaktive avatar Feb 20 '24 22:02 gaktive

From @snasovich:

the implementation of proposed fix will require changes on both backend and UI side: "Therefore, an alternate strategy to this would be the UI referencing the MOID value rather than the port group name. I would still list the port groups in the UI by name, but once selected, the ID can be used instead"

That is because I'm pretty sure UI is currently using meta/vsphere/networks endpoint in Rancher to get networks and it returns plain list of strings - see https://github.com/rancher/rancher/blob/f0b3227927ae99dbc8c944b3aca908708bbf23ea/pkg/api/norman/customization/vsphere/listers.go#L307

So, this will not be a simple fix and will require a redesign of backend/UI data contract and behavior and will likely need to be considered pretty much a feature request.

Potential workaround: create a cluster using TF or cluster templates. Needs backend input though.

gaktive avatar Feb 28 '24 16:02 gaktive

Need to file a rancher/rancher ticket and then have that prioritized.

gaktive avatar Mar 01 '24 16:03 gaktive

Filed https://github.com/rancher/rancher/issues/44779 on the backend and added Hostbusters.

gaktive avatar Mar 13 '24 21:03 gaktive

@gaktive Moving this into 2.9.0 and triage for us to review and check milestone.

nwmac avatar May 20 '24 12:05 nwmac