vmware / terraform-provider-vcf

Terraform Provider for VMware Cloud Foundation
https://registry.terraform.io/providers/vmware/vcf/
Mozilla Public License 2.0
20 stars 9 forks source link

`r/instance`: unable to add hosts to management domain as day-n #209

Open pradeep17j opened 1 month ago

pradeep17j commented 1 month ago

Code of Conduct

Terraform

1.9.2

Terraform Provider

0.10.0

VMware Cloud Foundation

5.2

Description

After successful bringup operation, adding hosts to a management cluster returns back success for both plan and apply. But when inspected on SDDC Manager it has not added any hosts. The terraform apply for this change returns in 0 seconds with success which is an indicator that it actually did not do any thing.

Affected Resources or Data Sources

r/vcf_instance

Terraform Configuration

main.tf and variable.tf:

https://gist.github.com/pradeep17j/7a6eab29a8320c103167e773f48455ae

Debug Output

https://gist.github.com/pradeep17j/e313961c8be7ce525e24886e7acdf8dd

Panic Output

No response

Expected Behavior

Successful add host to management cluster.

Actual Behavior

False success about adding hosts to mgmt cluster

Steps to Reproduce

Edit main.tf for resource vcf_instance to add an extra host to the list of existing hosts.

Environment Details

No response

Screenshots

No response

References

No response

tenthirtyam commented 1 month ago

Hi @pradeep17j 👋 -

I have formatted the issue content and version updated to reflect supported and shipping versions.

We kindly ask that you do the same for future issues.

Ryan Johnson Distinguished Engineer, VMware by Broadcom

tenthirtyam commented 1 month ago

This would only work for the initial run - r/instance is really more an imperative resource, rather than declarative.

cc @spacegospod @dimitarproynov