Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

vsphere_network fails when PortGroup names used on multiple DVS #925

Closed
tvigneron opened this issue Dec 6, 2019 · 2 comments
Closed

vsphere_network fails when PortGroup names used on multiple DVS #925

tvigneron opened this issue Dec 6, 2019 · 2 comments
Labels
enhancement Type: Enhancement

Comments

@tvigneron
Copy link

Hello,

The vsphere_network network resource fails when multiple PortGroup with the same name are created in the environment with the following error:
terraform data.vsphere_network.network: error fetching network: path resolves to multiple networks
This is restrictive in an environment with multiple clusters with their own DVS but the same networks (as PortGroup is a DVS object, names can be repeated across DVS). It blocks the usage of the Terraform Provider in those environments.

Would it be possible to solve this by allowing the user to pick his DVS as an optional argument of the vsphere_network resource?

Thank you

@aareet aareet added the enhancement Type: Enhancement label Dec 6, 2019
@sumitAgrawal007
Copy link
Contributor

sumitAgrawal007 commented Mar 6, 2020

Hi @tvigneron
Can you mention the VC version.
Also I tried to reproduce the issue, from the vsphere UI, one can't create PortGroup with the same name under different DVS switches in same DC. It will throw an error that a port group with the same name already exists unless you have put the DVS switches under different directories.

Can you tell me more about your vsphere structure, as to how did you create the duplicate port groups.

@ghost
Copy link

ghost commented Sep 11, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 11, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement Type: Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants