vmware / terraform-provider-vcf

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

vLCM Workload Domain - Create Cluster Spec does not include 'cluster_image_id' when posted to SDDC Manager. #149

Closed stevet312 closed 6 months ago

stevet312 commented 6 months ago

Code of Conduct

Terraform

1.6

Terraform Provider

0.8.1

VMware Cloud Foundation

5.1

Description

When adding additional clusters to an existing Management Workload Domain, the CreateClusterSpec appears to not be passing the 'cluster_image_id' parameter as part of the JSON spec to SDDC Manager.

Screenshot 2024-04-02 at 5 41 54 PM

Screenshot 2024-04-02 at 5 43 23 PM

I can be reached out to internally at VMware on Slack or GChat to reproduce live!

Affected Resources or Data Sources

resource/vcf_cluster

Terraform Configuration

https://gist.github.com/stevet312/772728ab2fcaaab51744f431afd7e346

Debug Output

Screenshot 2024-04-02 at 6 05 45 PM

Panic Output

No response

Expected Behavior

Cluster specs should be posted to SDDC Manager, pass validation and begin creation.,

Actual Behavior

SDDC Manager fails to validate cluster creation spec due to missing vLCM image id in the POST.

Steps to Reproduce

  1. Available SDDC Manager, completed VCF Bring UP
  2. Host commissioning and network pool creation
  3. Add UUIDs to TFVARS
  4. Attempt to add one or more clusters through the module config

Environment Details

3 Racks of servers, 12 total hosts 3 Network pools (1 per rack)

VCF 5.1

Screenshots

No response

References

No response

dimitarproynov commented 6 months ago

Hi,

Please see https://github.com/vmware/terraform-provider-vcf/pull/148

Issue has already been addressed and will be released with next release.

pradeep17j commented 5 months ago

Is this fix already available in this repo ? If we pick this repo and do a dev override , we will be able to get this fix ?

dimitarproynov commented 5 months ago

Hi @pradeep17j

Yep, if you pull the current code from "main" and build the provider and setup the dev overrides then the issue should be fixed.

Regards, _Proynov

github-actions[bot] commented 4 months ago

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.