-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The resource vim.dvs.DistributedVirtualPort is not available in vim.dvs.DistributedVirtualPortgroup #2228
Comments
Hello, lgrn! 🖐 Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle. If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests. |
When trying to reproduce this to gather more information, it turns out it now magically works. Let's chalk it up to some bullshit on the vmware end, I guess. Sorry for any time wasted, I'll re-open if we see it again with some debug output. |
Please be mindful of the HashiCorp Community Guidelines . |
Care to elaborate? |
|
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Guidelines
Terraform
1.7.2
Terraform Provider
2.8.1
VMware vSphere
7.0.3.01700
Description
We are seeing an issue when moving from 2.6.1 -> 2.8.1, and have confirmed that the issue goes away when reverting to using 2.6.1 in our required_providers block in main.tf. This currently breaks all deploys for us on 2.8.1.
First of all, the complete error:
Our vsphere_virtual_machine definition looks like this, I've removed some pieces to make it more readable:
This takes in
local.fetched_vms
which is a JSON interpretation of Netbox virtual machines, but I don't think that's the issue since the error mentionsvim.dvs.DistributedVirtualPort
andvim.dvs.DistributedVirtualPortgroup
.Virtual switch:
Network:
Googling the error "The resource vim.dvs.DistributedVirtualPort is not available in vim.dvs.DistributedVirtualPortgroup" gives indications that this is an issue on the vmware end of things, but in our case this is not true since the issue only appeared when upgrading the provider, and disappeared when downgrading it.
The reason we provide both
name
anddistributed_virtual_switch_uuid
when creating the network is that we have conflicting names in our environment, so both of them are needed for a unique match.Does anyone have any ideas what could be causing this issue? Is it a bug, or something exotic in our configuration that only became an issue when upgrading?
Also, I'm not sure if it matters, but we're using OpenTofu. If you think there's a reason that would break things we can try Terraform as well.
Happy to provide more config examples if necessary.
Affected Resources or Data Sources
vsphere_virtual_machine
orvsphere_network
Terraform Configuration
In description
Debug Output
N/A
Panic Output
No response
Expected Behavior
Successful deploy
Actual Behavior
The resource vim.dvs.DistributedVirtualPort is not available in vim.dvs.DistributedVirtualPortgroup
Steps to Reproduce
N/A
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: