Open cello86 opened 11 months ago
Hello, cello86! π
Thank you for submitting an issue for this provider. The issue will now enter into the issue lifecycle.
If you want to contribute to this project, please review the contributing guidelines and information on submitting pull requests.
Hi @tenthirtyam
# terraform apply -target=vsphere_compute_cluster_vm_group.kong_proxy_cluster_vm_group_dc1 -target=vsphere_compute_cluster_vm_host_rule.kong_proxy_cluster_vm_affinity_rule_dc1 -target=vsphere_virtual_machine.kong_proxy_dc1[1]
...
Terraform will perform the following actions:
# vsphere_compute_cluster_vm_group.kong_proxy_cluster_vm_group_dc1 will be created
+ resource "vsphere_compute_cluster_vm_group" "kong_proxy_cluster_vm_group_dc1" {
+ compute_cluster_id = "domain-xxx"
+ id = (known after apply)
+ name = "pr_prod_apisitepublicproxy_vm"
+ virtual_machine_ids = (known after apply)
}
# vsphere_compute_cluster_vm_host_rule.kong_proxy_cluster_vm_affinity_rule_dc1 will be created
+ resource "vsphere_compute_cluster_vm_host_rule" "kong_proxy_cluster_vm_affinity_rule_dc1" {
+ affinity_host_group_name = "xxx"
+ compute_cluster_id = "domain-xxx"
+ enabled = true
+ id = (known after apply)
+ mandatory = true
+ name = "pr_prod_apisitepublicproxy_affinity"
+ vm_group_name = "pr_prod_apisitepublicproxy_vm"
}
Plan: 2 to add, 0 to change, 0 to destroy.
vsphere_compute_cluster_vm_group.kong_proxy_cluster_vm_group_dc1: Creating...
β·
β Error: Configuration contains unknown value
β
β configuration for vsphere_compute_cluster_vm_group.kong_proxy_cluster_vm_group_dc1 still contains unknown values during apply (this is a bug in Terraform; please report it!)
β The following paths in the resource configuration are unknown:
β cty.Path{cty.GetAttrStep{Name:"virtual_machine_ids"}, cty.IndexStep{Key:cty.UnknownVal(cty.String)}}
$ terraform state show vsphere_virtual_machine.kong_proxy_dc1[1] | grep id
...
id = "4200dd97-12c3-ef09-9a78-cffddcd81214"
Could it be the problem related to the target option?
Thanks, Marcello
Community Guidelines
Terraform
v1.3.9
Terraform Provider
v2.2.0
VMware vSphere
v7.0.3
Description
I tried to create a cluster vm group on vpshere but I received this error.
Affected Resources or Data Sources
vsphere_compute_cluster_vm_group
Terraform Configuration
Debug Output
no debug info
Panic Output
No response
Expected Behavior
cluster vm group must to be created
Actual Behavior
no cluster vm group has been created
Steps to Reproduce
I run terraform
Environment Details
No response
Screenshots
No response
References
No response