Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent "context deadline exceeded" errors on "nutanix_karbon_cluster" resource #544

Closed
kingsleyck opened this issue Jan 31, 2023 · 1 comment
Assignees
Labels

Comments

@kingsleyck
Copy link

kingsleyck commented Jan 31, 2023

Nutanix Cluster Information

  • Nutanix Cluster (Prism Element / AOS): 5.20.3
  • Nutanix Prism Central: pc.2022.6.0.1

Terraform Version

Terraform v1.3.7
on windows_amd64

  • provider registry.terraform.io/nutanix/nutanix v1.7.1

Affected Resource(s)

resource "nutanix_karbon_cluster"

Terraform Configuration Files

resource "nutanix_karbon_cluster" "example_cluster" {
  name       = "example_cluster"
  version    = "1.18.15-1"
  storage_class_config {
    reclaim_policy = "Delete"
    volumes_config {
      file_system                = "ext4"
      flash_mode                 = false
      password                   = "my_pe_pw"
      prism_element_cluster_uuid = "my_pe_cluster_uuid"
      storage_container          = "my_storage_container_name"
      username                   = "my_pe_username"
    }
  }
  cni_config {
    node_cidr_mask_size = 24
    pod_ipv4_cidr       = "172.20.0.0/16"
    service_ipv4_cidr   = "172.19.0.0/16"
  }
  worker_node_pool {
    node_os_version = "ntnx-1.0"
    num_instances   = 1
    ahv_config {
      network_uuid               = "my_subnet_id"
      prism_element_cluster_uuid = "my_pe_cluster_uuid"
    }
  }
  etcd_node_pool {
    node_os_version = "ntnx-1.0"
    num_instances   = 1
    ahv_config {

      network_uuid               = "my_subnet_id"
      prism_element_cluster_uuid = "my_pe_cluster_uuid"
    }
  }
  master_node_pool {
    node_os_version = "ntnx-1.0"
    num_instances   = 1
    ahv_config {
      network_uuid               = "my_subnet_id"
      prism_element_cluster_uuid = "my_pe_cluster_uuid"
    }
  }
}

Expected Behavior

Terraform should wait for the resource status (success | fail) or allow customizing the resource timeout.

Actual Behavior

Error: error waiting for karbon cluster to create: context deadline exceeded

In this case, the Karbon cluster is created successfully but Terraform will taint the resource and loop on destroy / create for subsequent apply.

Steps to Reproduce

  1. terraform apply

References

  • #0000 <!---Github Issue number --->
@abhimutant abhimutant self-assigned this Feb 28, 2023
@abhimutant abhimutant added the 1.9 label Mar 3, 2023
@abhimutant abhimutant added 1.8.2 and removed 1.9 labels Mar 21, 2023
@abhimutant
Copy link
Collaborator

PR: #563

@abhimutant abhimutant added 1.9 and removed 1.8.2 labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants