vmware / terraform-provider-vcf

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

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

Open pradeep17j opened 4 months ago

pradeep17j commented 4 months 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 4 months 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 4 months ago

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

cc @spacegospod @dimitarproynov

github-actions[bot] commented 1 month ago

'Marking this issue as stale due to inactivity. This helps us focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!'