Skip to content

r/cluster: import does not include vmnic and vds #210

@pradeep17j

Description

@pradeep17j

Code of Conduct

  • I have read and agree to the Code of Conduct.
  • 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.7.3

Terraform Provider

v0.10.0

VMware Cloud Foundation

5.2

Description

Import of a cluster resource does not return vmnic and vds information. If there is a existing cluster that needs to converted to a terraform managed resource, an import can be done and show can be used to extract the resource config file. If this resource does not have all the required fields for cluster operations, terraform plan and apply will not work

Affected Resources or Data Sources

r/vcf_cluster

Terraform Configuration

Output of terraform show:

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

Debug Output

terraform.tfstate file after import:

https://gist.github.com/pradeep17j/9d5c926fa805260b825c37200afe6fd0

Panic Output

No response

Expected Behavior

Return all the required fields for a resource when performing an import operation.

Actual Behavior

The vds and vmnic information missing after an import operation.

Steps to Reproduce

Example:

terraform import vcf_cluster.clus2 "801b1c2f-33be-497b-bc28-04fc463fa40d"

801b1c2f-33be-497b-bc28-04fc463fa40d is the ID of the management domain default cluster.

Environment Details

No response

Screenshots

No response

References

No response

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions