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

TF SDKv2 Ugrade #1379

Merged
merged 3 commits into from
Apr 28, 2021
Merged

TF SDKv2 Ugrade #1379

merged 3 commits into from
Apr 28, 2021

Conversation

appilon
Copy link
Contributor

@appilon appilon commented Apr 1, 2021

Building off #1375 , this bumps the TF SDK to v2, which revealed a few d.Set calls though would error silently before. Oddly enough, the regression from #1375 seems to be solved 🤷‍♂️ . A new regression was discovered:

=== RUN   TestAccResourceVSphereComputeClusterVMHostRule_antiAffinity
    resource_vsphere_compute_cluster_vm_host_rule_test.go:92: Step 1/1 error: Error running apply: exit status 1

        Error: could not find resource pool ID "domain-c8": ServerFaultCode: The object 'vim.ResourcePool:domain-c8' has already been deleted or has not been completely created

          on terraform_plugin_test.tf line 48, in resource "vsphere_virtual_machine" "vm":
          48: resource "vsphere_virtual_machine" "vm" {


    testing_new.go:63: Error running post-test destroy, there may be dangling resources: vsphere_compute_cluster_vm_host_rule.cluster_vm_host_rule not found in state
--- FAIL: TestAccResourceVSphereComputeClusterVMHostRule_antiAffinity (38.76s)
=== RUN   TestAccResourceVSphereComputeClusterVMHostRule_updateEnabled
    resource_vsphere_compute_cluster_vm_host_rule_test.go:120: Step 2/2 error: Error running apply: exit status 1

        Error: ServerFaultCode: The object 'vim.ResourcePool:domain-c8' has already been deleted or has not been completely created

          on terraform_plugin_test.tf line 48, in resource "vsphere_virtual_machine" "vm":
          48: resource "vsphere_virtual_machine" "vm" {


--- FAIL: TestAccResourceVSphereComputeClusterVMHostRule_updateEnabled (93.05s)
=== RUN   TestAccResourceVSphereComputeClusterVMHostRule_updateAffinity
    resource_vsphere_compute_cluster_vm_host_rule_test.go:162: Step 2/2 error: Error running apply: exit status 1

        Error: ServerFaultCode: The object 'vim.ResourcePool:domain-c8' has already been deleted or has not been completely created

          on terraform_plugin_test.tf line 48, in resource "vsphere_virtual_machine" "vm":
          48: resource "vsphere_virtual_machine" "vm" {


--- FAIL: TestAccResourceVSphereComputeClusterVMHostRule_updateAffinity (90.29s)

There is another regression discovered with TestAccResourceVSphereFolder_preventDeleteIfNotEmpty however this seems to be related to TF 0.15 (and is being looked at). Please run tests with < TF 0.15 on your PATH.

UPDATE:
It seems that perhaps the lone regression was actually fixed as apart of #1381 , in general we are feeling very confident about the SDKv2 upgrade

@ghost ghost added the size/xxl Relative Sizing: Extra-Extra-Large label Apr 1, 2021
@appilon appilon requested a review from koikonom April 1, 2021 20:20
Copy link
Contributor

@koikonom koikonom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

One thing I want to ask is to wait until #1381 gets merged and a new release is cut before merging this to master.

@appilon appilon mentioned this pull request Apr 8, 2021
@appilon
Copy link
Contributor Author

appilon commented Apr 8, 2021

@koikonom 👍

@koikonom koikonom merged commit 3d39b81 into master Apr 28, 2021
@koikonom koikonom deleted the sdk-upgrade branch April 28, 2021 15:23
@ghost
Copy link

ghost commented May 29, 2021

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 as resolved and limited conversation to collaborators May 29, 2021
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
size/xxl Relative Sizing: Extra-Extra-Large
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants