-
Notifications
You must be signed in to change notification settings - Fork 454
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
Import vsphere_distributed_portgroup doesn't work version > 1.25 #1461
Comments
Hi, I noticed that a few other resources have implemented import via a path instead of the id. And after scratching my head some time, I managed to import my portgroups using a path like this
I feel like this is much harder than just passing an ID, as it's not really clear what counts as a folder from vSphere UI. Also the documentation for Regards, Kevin |
It appears that the changes to use MoID that were implemented by @sumitAgrawal007 in f39415b#diff-71902d0785ad0ca9cf7b4edc595ff89b91e141d86dca8010d5458aa8932ab847 for PR #1208 were overwritten by @koikonom in 44939f3#diff-71902d0785ad0ca9cf7b4edc595ff89b91e141d86dca8010d5458aa8932ab847 for PR #1381. It looks like it might have been a mistake since the markdown for the docs were not included. @appilon @iBrandyJackson - let me know if you'd like me to PR and test this to revert back to @sumitAgrawal007's change. cc @tejavar |
@tenthirtyam Thanks for tracking down the history, I seem to recall this period as a time we did refactoring/fixing of tests post SDK v2.0.0 upgrade, its possible a test was "fixed" by this reversion (and sometimes fix just means failing silently now, or passing but re-introducing other bugs such as what's being described). If you have the bandwidth, would you have an environment to test the potential reversion against the associated acceptance tests? |
I'd be happy to take the time to look at it. Let's catch over email to ensure I perform it correctly in my labs. Inbox me at johnsonryan [at] vmware [dot] com. Ryan |
- Updates the examples to remove legacy Terraform interpolation. - Updates the examples for simplicity and context. - Corrects "DVS" to "VDS" as the correct term. - Corrects import example for the `vsphere_distributed_port_group` resource docs. #1461 and #1567 - Adds missing VLAN options to the `vsphere_distributed_port_group` resource docs. #1565 - Ensures markdown is lines are limited to column 80 in length. Signed-off-by: Ryan Johnson <[email protected]>
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. |
Terraform Version
v1.0.3
vSphere Provider Version
v2.0.2
Affected Resource(s)
---
vsphere_distributed_port_group
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Import dvportgroup
Example with vsphere provider v1.25.0 :
Actual Behavior
It's not possible to import an existing dvportgroup with version > 1.25.0 :
Steps to Reproduce
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: