josenk / terraform-provider-esxi

Terraform-provider-esxi plugin
GNU General Public License v3.0
538 stars 154 forks source link

warning about legacy plugin SDK #185

Closed djdanielsson closed 1 year ago

djdanielsson commented 1 year ago

Describe the bug I am was having issues with ova files so just to try and get a baseline I tried using your examples which errored for me, I changed the output to debug to try and figure out what the issue is (still looking into it) but noticed a warning saying

2022-09-20T20:15:53.841-0500 [WARN] Provider "registry.terraform.io/josenk/esxi" produced an invalid plan for esxi_guest.vmtest, but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations:

To Reproduce Steps to reproduce the behavior:

  1. clone the repo and init the "06 OVF Properties" example folder turn on debug logs with 'export TF_LOG ="debug"'
  2. update variables file to point to your ESXi server and your password. change to URL OVA file and then try to apply the plan.

Expected behavior producing up to date plan

Terraform files Used the ones from the examples folder

Desktop (please complete the following information):

Additional context none

djdanielsson commented 1 year ago

quick note, while filling this out I figured out the issue with ova files I was having, I was missing a lib that was required for the ovftool to work. so that is working now, this is just a note about the legacy plugin SDK warning, I have not looked into if Hashi will remove the legacy support in the future but I would expect it is coming.

josenk commented 1 year ago

Thanks for the comments... I will investigate the legacy support.