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
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
v1.9.3
Terraform Provider
v2.8.2
VMware vSphere
7.0U3 Build 22357613
Description
When applying terraform plan, storage_policy_id is well retrieved from datasource.
It is successfully applied at VM Folder Level, but not at disk level. (when i delete storage_policy_id from disk block, VM Encryption Policy is applied on VM folder and virtual machine provisioning is successfull)
2024-07-26T17:37:57.347+0200 [TRACE] provider.terraform-provider-vsphere_v2.8.2_x5: Received downstream response: tf_proto_version=5.6 tf_provider_addr=provider tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/tf5serverlogging/downstream_request.go:42 @module=sdk.proto diagnostic_error_count=1 diagnostic_warning_count=0 tf_req_duration_ms=4615 tf_req_id=a7e93494-afa3-329b-6482-04e75586fbec tf_resource_type=vsphere_virtual_machine timestamp="2024-07-26T17:37:57.347+0200"
2024-07-26T17:37:57.347+0200 [ERROR] provider.terraform-provider-vsphere_v2.8.2_x5: Response contains error diagnostic: tf_proto_version=5.6 tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/[email protected]/tfprotov5/internal/diag/diagnostics.go:58 @module=sdk.proto tf_provider_addr=provider tf_req_id=a7e93494-afa3-329b-6482-04e75586fbec tf_resource_type=vsphere_virtual_machine diagnostic_detail="" diagnostic_severity=ERROR diagnostic_summary="error cloning virtual machine: A specified parameter was not correct: spec.disk.backing.crypto" timestamp="2024-07-26T17:37:57.347+0200"
2024-07-26T17:37:57.348+0200 [TRACE] provider.terraform-provider-vsphere_v2.8.2_x5: Served request: tf_proto_version=5.6 tf_req_id=a7e93494-afa3-329b-6482-04e75586fbec tf_resource_type=vsphere_virtual_machine @caller=github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:878 @module=sdk.proto tf_provider_addr=provider tf_rpc=ApplyResourceChange timestamp="2024-07-26T17:37:57.347+0200"
2024-07-26T17:37:57.348+0200 [TRACE] maybeTainted: vsphere_virtual_machine.vms_ul[1] encountered an error during creation, so it is now marked as tainted
2024-07-26T17:37:57.352+0200 [ERROR] vertex "vsphere_virtual_machine.vms_ul[1]" error: error cloning virtual machine: A specified parameter was not correct: spec.disk.backing.crypto
Panic Output
No response
Expected Behavior
Correct provisionning of vSphere virtual machine from a template with Encryption Policy applied both on virtual disk and VM Folder
Actual Behavior
Error: error cloning virtual machine: A specified parameter was not correct: spec.disk.backing.crypto
│
│ with vsphere_virtual_machine.vms_ul[1],
│ on main.tf line 6, in resource "vsphere_virtual_machine" "vms_ul":
│ 6: resource "vsphere_virtual_machine" "vms_ul" {
Steps to Reproduce
terraform apply
Environment Details
When applying terraform plan, storage_policy_id is well retrieved from datasource.
It is successfully applied at VM Folder Level, but not at disk level. (when i delete storage_policy_id from disk block, VM Encryption Policy is applied on VM folder and virtual machine provisioning is successfull)
Community Guidelines
Terraform
v1.9.3
Terraform Provider
v2.8.2
VMware vSphere
7.0U3 Build 22357613
Description
When applying terraform plan, storage_policy_id is well retrieved from datasource.
It is successfully applied at VM Folder Level, but not at disk level. (when i delete storage_policy_id from disk block, VM Encryption Policy is applied on VM folder and virtual machine provisioning is successfull)
Affected Resources or Data Sources
resource/vsphere_virtual_machine
Terraform Configuration
Debug Output
Panic Output
No response
Expected Behavior
Correct provisionning of vSphere virtual machine from a template with Encryption Policy applied both on virtual disk and VM Folder
Actual Behavior
Steps to Reproduce
terraform apply
Environment Details
When applying terraform plan, storage_policy_id is well retrieved from datasource.
It is successfully applied at VM Folder Level, but not at disk level. (when i delete storage_policy_id from disk block, VM Encryption Policy is applied on VM folder and virtual machine provisioning is successfull)
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: