terraform-provider-vsphere icon indicating copy to clipboard operation
terraform-provider-vsphere copied to clipboard

Enhanced Linked Mode causing 400 Bad Request cloning vsphere_virtual_machine in Vmware 7

Open jlouisfoster opened this issue 11 months ago • 3 comments

Community Guidelines

  • [X] I have read and agree to the HashiCorp Community Guidelines .
  • [X] Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • [X] Do not leave "+1" or other comments that do not add relevant information or questions.
  • [X] If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Terraform

1.6.3

Terraform Provider

2.5.1

VMware vSphere

v7.0.3

Description

I’m facing a strange error when trying to create my vms with Terraform in our new datacenter using the vsphere plugin. Attached is a screenshot of the default error.

enhanced_linked_mode_error_vpshere_deploy_1

I can confirm that this only occurred once Enhance Linked Mode was enable and prior all the vm creations running identical config/code worked successfully. Due to time constraints we have disabled enhanced linked mode and are currently no longer facing issues.

This sounds somewhat similar to the following issues/discussions:

  • https://discuss.hashicorp.com/t/terraform-vcenter-issues/37074
  • https://github.com/hashicorp/terraform-provider-vsphere/issues/1819

Affected Resources or Data Sources

vsphere virtual machine creation

Terraform Configuration

Any configuration to create a simple linux or windows vm

Debug Output

Debug output is in screenshot.

Panic Output

No response

Expected Behavior

Expected behaviour is the creation of the vm

Actual Behavior

Fails with the 400 bad request

Steps to Reproduce

  1. Enable enhanced linked mode in VMware
  2. Attempt to create a vm using Terraform and vmware provider (linux or windows)

Environment Details

No response

Screenshots

No response

References

No response

jlouisfoster avatar Mar 13 '24 15:03 jlouisfoster