You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2025-03-07T11:12:18.583+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] CdromRefreshOperation: cdrom.0 (key 3002 at ide:1:0): Skipping read since CDROM is in use for vApp ISO transport: timestamp="2025-03-07T11:12:18.582+0100"
2025-03-07T11:12:18.583+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] CdromRefreshOperation: Resource set to write after known device search: (key 3002 at ide:1:0): timestamp="2025-03-07T11:12:18.582+0100"
2025-03-07T11:12:18.583+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] CdromRefreshOperation: Probable orphaned CDROM devices:: timestamp="2025-03-07T11:12:18.582+0100"
2025-03-07T11:12:18.583+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] CdromRefreshOperation: Resource set to write after adding orphaned devices: (key 3002 at ide:1:0): timestamp="2025-03-07T11:12:18.582+0100"
2025-03-07T11:12:18.583+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] CdromRefreshOperation: Refresh operation complete, sending new resource set: timestamp="2025-03-07T11:12:18.582+0100"
2025-03-07T11:12:18.583+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] Reading tags for object "vm-5166121": timestamp="2025-03-07T11:12:18.582+0100"
2025-03-07T11:12:18.689+0100 [INFO] provider.terraform-provider-vsphere_v2.11.1_x5: 2025/03/07 11:12:18 [DEBUG] Tags for object "vm-5166121":: timestamp="2025-03-07T11:12:18.689+0100"
2025-03-07T11:12:18.690+0100 [ERROR] provider.terraform-provider-vsphere_v2.11.1_x5: Response contains error diagnostic: diagnostic_detail="" diagnostic_summary="400 Bad Request: {\"type\":\"com.vmware.vapi.std.errors.invalid_argument\",\"value\":{\"error_type\":\"INVALID_ARGUMENT\",\"messages\":[{\"args\":[\"messages\",\"com.vmware.vapi.std.errors.unauthenticated\"],\"default_message\":\"Could not convert field 'messages' of structure 'com.vmware.vapi.std.errors.unauthenticated'\",\"id\":\"vapi.bindings.typeconverter.tovalue.struct.field.error\"},{\"args\":[\"args\",\"com.vmware.vapi.std.localizable_message\"],\"default_message\":\"Required field 'args' of structure 'com.vmware.vapi.std.localizable_message' is missing\",\"id\":\"vapi.bindings.typeconverter.tovalue.struct.field.missing\"}]}}" tf_proto_version=5.7 tf_provider_addr=provider tf_req_id=4a3d139c-7350-a39c-bc52-aee041083fef tf_resource_type=vsphere_virtual_machine @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto diagnostic_severity=ERROR tf_rpc=ReadResource timestamp="2025-03-07T11:12:18.689+0100"
2025-03-07T11:12:18.690+0100 [ERROR] vertex "vsphere_virtual_machine.vm" error: 400 Bad Request: {"type":"com.vmware.vapi.std.errors.invalid_argument","value":{"error_type":"INVALID_ARGUMENT","messages":[{"args":["messages","com.vmware.vapi.std.errors.unauthenticated"],"default_message":"Could not convert field 'messages' of structure 'com.vmware.vapi.std.errors.unauthenticated'","id":"vapi.bindings.typeconverter.tovalue.struct.field.error"},{"args":["args","com.vmware.vapi.std.localizable_message"],"default_message":"Required field 'args' of structure 'com.vmware.vapi.std.localizable_message' is missing","id":"vapi.bindings.typeconverter.tovalue.struct.field.missing"}]}}
2025-03-07T11:12:18.690+0100 [ERROR] vertex "vsphere_virtual_machine.vm (expand)" error: 400 Bad Request: {"type":"com.vmware.vapi.std.errors.invalid_argument","value":{"error_type":"INVALID_ARGUMENT","messages":[{"args":["messages","com.vmware.vapi.std.errors.unauthenticated"],"default_message":"Could not convert field 'messages' of structure 'com.vmware.vapi.std.errors.unauthenticated'","id":"vapi.bindings.typeconverter.tovalue.struct.field.error"},{"args":["args","com.vmware.vapi.std.localizable_message"],"default_message":"Required field 'args' of structure 'com.vmware.vapi.std.localizable_message' is missing","id":"vapi.bindings.typeconverter.tovalue.struct.field.missing"}]}}
2025-03-07T11:12:18.690+0100 [WARN] Planning encountered errors, so plan is not applyable
Error: 400 Bad Request: {"type":"com.vmware.vapi.std.errors.invalid_argument","value":{"error_type":"INVALID_ARGUMENT","messages":[{"args":["messages","com.vmware.vapi.std.errors.unauthenticated"],"default_message":"Could not convert field 'messages' of structure 'com.vmware.vapi.std.errors.unauthenticated'","id":"vapi.bindings.typeconverter.tovalue.struct.field.error"},{"args":["args","com.vmware.vapi.std.localizable_message"],"default_message":"Required field 'args' of structure 'com.vmware.vapi.std.localizable_message' is missing","id":"vapi.bindings.typeconverter.tovalue.struct.field.missing"}]}}
with vsphere_virtual_machine.vm,
on main.tf line 1, in resource "vsphere_virtual_machine" "vm":
1: resource "vsphere_virtual_machine" "vm" {
2025-03-07T11:12:18.691+0100 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2025-03-07T11:12:18.693+0100 [INFO] provider: plugin process exited: plugin=.terraform/providers/registry.terraform.io/hashicorp/vsphere/2.11.1/linux_amd64/terraform-provider-vsphere_v2.11.1_x5 id=49807
2025-03-07T11:12:18.696+0100 [DEBUG] provider: plugin exited
Panic Output
No response
Expected Behavior
Operations should exits without any problem
Actual Behavior
vsphere provider crashes
Steps to Reproduce
Create a VM with vsphere_virtual_machine resource
Try to create it or destroy it
Environment Details
No response
Screenshots
No response
References
#1819 faced the same issue, but didn't provide any solution. It's mentioned here to check for permission, so I did and my user has admin permission this new vm
The text was updated successfully, but these errors were encountered:
Community Guidelines
Terraform
1.11.1
Terraform Provider
2.11.1
VMware vSphere
7.0.3.01900
Description
When trying to apply or destroy a vm on vSphere, it always stop when trying to fetch the state of the vm:
edit: I'm not defining tags neither in the terraform config, nor in a vm template.
The VM is created successfully regardless of this error.
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
Panic Output
No response
Expected Behavior
Operations should exits without any problem
Actual Behavior
vsphere provider crashes
Steps to Reproduce
Environment Details
No response
Screenshots
No response
References
#1819 faced the same issue, but didn't provide any solution. It's mentioned here to check for permission, so I did and my user has admin permission this new vm
The text was updated successfully, but these errors were encountered: