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

Cluster creation failed #84

Open
NareshAnaparthi opened this issue May 21, 2021 · 4 comments
Open

Cluster creation failed #84

NareshAnaparthi opened this issue May 21, 2021 · 4 comments

Comments

@NareshAnaparthi
Copy link

Hi,

Tried to provision standard cluster using below template and failed after some time as shown below. Any inputs really helps. Thank you

resource "confluentcloud_kafka_cluster" "cluster" {
name = var.cluster_name
service_provider = "azure"
region = "westus2"
availability = "HIGH"
environment_id = module.environment.environment_id
deployment = {
sku = "STANDARD"
}
}

_....
confluentcloud_kafka_cluster.cluster: Still creating... [18m30s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [18m40s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [18m50s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [19m0s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [19m10s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [19m20s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [19m30s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [19m40s elapsed]
confluentcloud_kafka_cluster.cluster: Still creating... [19m50s elapsed]

Error: Error waiting for cluster (lkc-132dv) to be ready: context deadline exceeded

on main.tf line 40, in resource "confluentcloud_kafka_cluster" "cluster":
40: resource "confluentcloud_kafka_cluster" "cluster" {

Makefile:149: recipe for target 'apply_dev1_westus2_confluent_kafka_test' failed
make: *** [apply_dev1_westus2_confluent_kafka_test] Error 1_

@NareshAnaparthi
Copy link
Author

Cluster was created. But, not sure why terraform apply got timed out/failed with below error

Error: Error waiting for cluster (lkc-132dv) to be ready: context deadline exceeded

@NareshAnaparthi
Copy link
Author

Could some one assist on this please ? Tried with below version (Terraform 0.13v)
terraform {
required_providers {
confluentcloud = {
source = "Mongey/confluentcloud"
}
kafka = {
source = "Mongey/kafka"
#version = "0.2.11"
}
}
}

@egor-georgiev
Copy link
Contributor

While trying to create a dedicated Confluent cluster, I get the same timeout at around 20 minutes into creation. Similarly to the case of @NareshAnaparthi, cluster got created in the end, but Terraform failed.
Parameters:

  • dedicated cluster
  • 2 ckus
  • high availability
  • AWS, us-east-1
  • TF version: 0.13
  • provider version: 0.0.12

As per Confluent documentation, it can take up to 24 hours in order to provision dedicated clusters. @Mongey, is it possible to parametrize timeout for cluster types in order to allow more time for creation of dedicated clusters? @NareshAnaparthi, did you end up finding a way to work around this issue?
Console output:

19:42:53  confluentcloud_kafka_cluster.cluster: Still creating... [19m20s elapsed]
19:43:02  confluentcloud_kafka_cluster.cluster: Still creating... [19m30s elapsed]
19:43:11  confluentcloud_kafka_cluster.cluster: Still creating... [19m40s elapsed]
19:43:23  confluentcloud_kafka_cluster.cluster: Still creating... [19m50s elapsed]
19:43:32  
19:43:32  Error: Error waiting for cluster (lkc-123abc) to be ready: context deadline exceeded
19:43:32  
19:43:32    with confluentcloud_kafka_cluster.cluster,
19:43:32    on confluent-cluster.tf line 7, in resource "confluentcloud_kafka_cluster" "cluster":
19:43:32     7: resource "confluentcloud_kafka_cluster" "cluster" {

@borisnaydis
Copy link
Contributor

borisnaydis commented Dec 8, 2021

Since the PR that fixes the issue has been accepted, the only thing remaining is a new release.
@Mongey, could you tell us when we can expect one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants