# Trouble selecting networks in vSphere

**URL:** <https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568>\
**Category:** SUSE Rancher Prime\
**Created:** [February 15, 2024, 11:58am UTC](https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568 "2024-02-15T11:58:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![azzid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/azzid/32/10876_2.png) [@azzid](https://forums.suse.com/u/azzid)\
**Post date:** [February 15, 2024, 11:58am UTC](https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568/1 "2024-02-15T11:58:08Z")

</div>

I connected Rancher to vSphere but was unable to create any clusters. Something broke before any vm’s could be created.

Looking at the cluster I could see some log lines flutter by for the nodes which suggested I had some network related issues.

I was unable to find the same lines logged anywhere - so a bonus question could be where I should find those lines?

After poking a bit at the system I realised that the network issue was name ambiguity.

In our advanced lab we have two different entities named advlab:  
 ![Screenshot 2024-02-15 at 12.43.46](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/a/aad83b14bc7b64eec83c0db4cbd3a2ebf16eb787.png)

No matter which I selected in the rancher web interface the cluster yaml contains the same string:

```
kubectl -n fleet-default get VmwarevsphereConfig -o yaml | grep network
  network:
  - /ADVLAB/network/Advlab

```

But if I manually change the string to:

```
kubectl -n fleet-default get VmwarevsphereConfig -o yaml | grep network
  network:
  - /ADVLAB/network/Cluster01_DSwitch/Advlab

```

vm-creation starts working.

Surely that must be a bug?  
How do I report such a thing?

---

<div class="post-metadata">

**Author:** ![vaishnav](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vaishnav/32/10688_2.png) [@vaishnav](https://forums.suse.com/u/vaishnav)\
**Post date:** [February 15, 2024, 1:12pm UTC](https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568/2 "2024-02-15T13:12:06Z")

</div>

Hi @azzid , you can report the issue on Rancher’s github repo [here](https://github.com/rancher/rancher/issues). Also about the logs that you mentioned, not sure about this but can you check the rancher pod logs (upstream/local cluster) and check if you can see them there?

---

<div class="post-metadata">

**Author:** ![azzid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/azzid/32/10876_2.png) [@azzid](https://forums.suse.com/u/azzid)\
**Post date:** [February 15, 2024, 1:25pm UTC](https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568/3 "2024-02-15T13:25:08Z")

</div>

> [@vaishnav](#):
>
> can you check the rancher pod logs

I did `kubectl -n cattle-system logs rancher-79864b46bd-ch792 | grep -i '/advlab/'` - but I did not see the same lines as the ones that blinked by in the gui.

---

<div class="post-metadata">

**Author:** ![azzid](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/azzid/32/10876_2.png) [@azzid](https://forums.suse.com/u/azzid)\
**Post date:** [February 15, 2024, 1:42pm UTC](https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568/4 "2024-02-15T13:42:30Z")

</div>

> <https://github.com/rancher/rancher/issues/44475>
>
> \*\*Rancher Server Setup\*\*
> \- Rancher version: v2.8.0
> \- Installation option (Dock…er install/Helm Chart): helm
> - If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): helm install rancher rancher-latest/rancher
> \- Proxy/Cert Details:
> 
> \*\*Information about the Cluster\*\*
> \- Kubernetes version: v1.27.9+k3s1
> \- Cluster Type (Local/Downstream): local
> - If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):
> \<!--
> \* Custom = Running a docker command on a node
> \* Imported = Running kubectl apply onto an existing k8s cluster
> \* Hosted = EKS, GKE, AKS, etc
> \* Infrastructure Provider = Rancher provisioning the nodes using different node drivers (e.g. AWS, Digital Ocean, etc)
> \--\>
> 
> \*\*User Information\*\*
> \- What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
> - If custom, define the set of permissions: Admin
> 
> 
> 
> \*\*Describe the bug\*\*
> vSphere provider can't distinguish between the two networks /ADVLAB/network/Advlab and /ADVLAB/network/Cluster01\_DSwitch/Advlab
> 
> \*\*To Reproduce\*\*
> Create two networks with the same name - one in a vswitch one outside it.
> 
> \*\*Result\*\*
> Drop-down resolves only the shorter path no matter which of the units is selected
> 
> 
> \*\*Expected Result\*\*
> networks should be distinguishable in drop-down
> 
> \*\*Screenshots\*\*
> !\[Screenshot 2024-02-15 at 12 43 46\](https://github.com/rancher/rancher/assets/8883008/6d8e19c4-e6d8-41d2-b2b4-1ebb0a65ce0b)
> 
> 
> \*\*Additional context\*\*
> mentioned in forums: https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/

bug reported.

---

<div class="post-metadata">

**Author:** ![vaishnav](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vaishnav/32/10688_2.png) [@vaishnav](https://forums.suse.com/u/vaishnav)\
**Post date:** [February 16, 2024, 6:16am UTC](https://forums.suse.com/t/trouble-selecting-networks-in-vsphere/42568/5 "2024-02-16T06:16:57Z")

</div>

Got it. I guess that might not be the correct place where these logs appear or they might have been disappeared.
