vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
148 stars 112 forks source link

tanzu kubernetes clusters status of pending #1201

Open andrzej-dobrzynski-pushgaming opened 8 months ago

andrzej-dobrzynski-pushgaming commented 8 months ago

Hello

Description

We have created tanzu kubernetes clusters based the example https://github.com/vmware/terraform-provider-vcd/tree/main/examples/container-service-extension/v4.1

After the clusters are created the status is Available and The RDE has VCD-KE status section

    "status": {
      "vcdKe": {
        "state": "provisioned",

After the clusters are resized the status is Pending and The RDE has no VCD-KE status section and it never gets refreshed

    "status": {

why the status is Pending ?

Affected Resource(s)

vcd_rde

Expected Behavior

status is Available

Actual Behavior

status is Pending

Steps to Reproduce

1 create tanzu kubernetes cluster 2 resize tanzu kubernetes cluster

adambarreiro commented 8 months ago

Hi @andrzej-dobrzynski-pushgaming,

Thanks for reaching out. I believe it could be the same issue reported here: https://github.com/vmware/terraform-provider-vcd/pull/1139#issuecomment-1859209819

Let me know if these steps work, otherwise it could be a different one.

andrzej-dobrzynski-pushgaming commented 8 months ago

Hi @adambarreiro

Thanks for quick reply

We have added VCD-KE status section to The RDE input_entity

  "status": {
    "vcdKe": {
      "state": "provisioned",
      "defaultStorageClass": {
        "fileSystem": "${input_entity_fileSystem}",
        "k8sStorageClassName": "${input_entity_k8sStorageClassName}",
        "vcdStorageProfileName": "${input_entity_vcdStorageProfileName}",
        "useDeleteReclaimPolicy": ${input_entity_useDeleteReclaimPolicy}
      }
    }
  }

Now, the status is Available