Networks with ref dvportgroup-2005 could not be imported from vsphere

Hello,

While importing a new Virtual Network I’m facing this error message :

Networks with ref dvportgroup-2005 could not be imported [one.vn.allocate] No NAME in template for Virtual Network.

Versions of the related components and OS (frontend, hypervisors, VMs):

  • Frontend : vOneCloud-5.12.0.3
  • Hypervisors, vSphere 7.0.1 on ESXi 7

Steps to reproduce:

  • Import a new VMware host in vOneCloud
  • Click on Virtual Networks
  • Press on Import
  • Select the cluster
  • Press on Get Networks
  • Select the network to import and click on import

Current results:

Networks with ref dvportgroup-2005 could not be imported [one.vn.allocate] No NAME in template for Virtual Network.

Expected results:

Import successful and maybe able to see the result on the dropdown list

Hello,

I finally found the issue.

It was related to the name of the Distributed Port since I was using some " | " to separate the name, I replace everything by " _ " and it went fine.

Thank you for sharing the solution.

Basically the problem is that you have a network created in vCenter whose name contains “|” Right?

Then you changed the name in vCenter and were you able to import it correct?

An issue was opened on GitHub one-5221.

It is planned to solve this issue for the next major release

Hey,

Yes exactly I had some portgroup named “tototo|tatata|tititi”