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

Resource CREATE failed: WaitConditionTimeout: resources.k8s_master_cloudinit_wait_cond: 0 of 1 received: #489

Closed
georgedriver opened this issue Jun 5, 2018 · 1 comment

Comments

@georgedriver
Copy link

Error as title.

main.tf

variable "alicloud_access_key" {
  default = ""
}
variable "alicloud_secret_key" {
  default = ""
}

provider "alicloud" {
  access_key = "${var.alicloud_access_key}"
  secret_key = "${var.alicloud_secret_key}"
  region     = "cn-shenzhen"
}

resource "alicloud_vpc" "clarity-lims-vpc" {
  name       = "test-vpc"
  cidr_block = "192.168.0.0/16"
}

resource "alicloud_vswitch" "clarity-nodes" {
  availability_zone = "cn-shenzhen-a"
  cidr_block        = "192.168.1.0/24"
  vpc_id            = "${alicloud_vpc.clarity-lims-vpc.id}"
}

data "alicloud_instance_types" "default-master" {
  availability_zone = "cn-shenzhen-a"
  cpu_core_count    = 2
  memory_size       = 4
}

data "alicloud_instance_types" "default-worker" {
  availability_zone = "cn-shenzhen-a"
  cpu_core_count    = 8
  memory_size       = 16
}

resource "alicloud_cs_kubernetes" "lims-cluster-1" {
  name                  = "lims-cluster-1"
  vswitch_id            = "${alicloud_vswitch.clarity-nodes.id}"
  new_nat_gateway       = true
  master_instance_type  = "ecs.n2.medium"
  worker_instance_type  = "ecs.n2.large"
  worker_number         = 1
  master_disk_category  = "cloud_efficiency"
  worker_disk_category  = "cloud_efficiency"
  master_disk_size      = 40
  worker_disk_size      = 100
  password              = "T_st1234#1"
  pod_cidr              = "172.20.0.0/16"
  service_cidr          = "172.21.0.0/20"
  enable_ssh            = true
}

Errors:

集群创建失败原因 : 

Resource CREATE failed: WaitConditionTimeout: resources.k8s_master_cloudinit_wait_cond: 0 of 1 received:


时间 | 信息
-- | --
2018-06-05 19:17:21 | c10860109a26c4cce8923a6a4a06e8baf \| Start describeStackInfo
2018-06-05 19:17:21 | c10860109a26c4cce8923a6a4a06e8baf \| Resource CREATE failed: WaitConditionTimeout: resources.k8s_master_cloudinit_wait_cond: 0 of 1 received:
2018-06-05 19:17:21 | c10860109a26c4cce8923a6a4a06e8baf \| Start describeStackInfo
2018-06-05 18:43:42 | c10860109a26c4cce8923a6a4a06e8baf \| Successfully to CreateStack
2018-06-05 18:43:42 | c10860109a26c4cce8923a6a4a06e8baf \| Start to wait stack ready
2018-06-05 18:43:40 | c10860109a26c4cce8923a6a4a06e8baf \| Start to create cluster task
2018-06-05 18:43:40 | c10860109a26c4cce8923a6a4a06e8baf \| Start to CreateK8sCluster
2018-06-05 18:43:40 | c10860109a26c4cce8923a6a4a06e8baf \| Start to CreateStack
2018-06-05 18:43:37 | c10860109a26c4cce8923a6a4a06e8baf \| Start to getNatGatway
2018-06-05 18:43:35 | c10860109a26c4cce8923a6a4a06e8baf \| Start to validateCIDR
2018-06-05 18:43:31 | c10860109a26c4cce8923a6a4a06e8baf \| Start create cluster certificate

It's really frustrating to meet errors in provision. And terraform just wait until timeout as the previous issue: #488

@xiaozhu36
Copy link
Collaborator

Hi @georgedriver this issue has been fixed. Please try again.

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

2 participants