Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

timeout while waiting for state to become 'created' #76

Closed
udayas81 opened this issue Aug 7, 2018 · 1 comment
Closed

timeout while waiting for state to become 'created' #76

udayas81 opened this issue Aug 7, 2018 · 1 comment

Comments

@udayas81
Copy link

udayas81 commented Aug 7, 2018

module "nat-zone-1" {
  source     = "../../"
  name       = "${var.network_name}-"
  region     = "${var.region}"
  zone       = "${var.zone1}"
  network    = "${var.network_name}"
  subnetwork = "prod-public-web-us-central1"
}

module "nat-zone-2" {
  source     = "../../"
  name       = "${var.nservice_account_scopesetwork_name}-"
  region     = "${var.region}"
  zone       = "${var.zone2}"
  network    = "${var.network_name}"
  subnetwork = "prod-public-web-us-central1"
}

module "nat-zone-3" {
  source     = "../../"
  name       = "${var.network_name}-"
  region     = "${var.region}"
  zone       = "${var.zone3}"
  network    = "${var.network_name}"
  subnetwork = "prod-public-web-us-central1"
}

Then I run terraform apply I get:

null_resource.dummy_dependency: Refreshing state... (ID: 5457516150144046587)
data.google_compute_instance_group.zonal: Refreshing state...


Error: Error refreshing state: 3 error(s) occurred:

* module.nat-zone-1.module.nat-gateway.google_compute_instance_group_manager.default: 1 error(s) occurred:

* module.nat-zone-1.module.nat-gateway.google_compute_instance_group_manager.default: google_compute_instance_group_manager.default: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 20m0s)
* module.nat-zone-3.module.nat-gateway.google_compute_instance_group_manager.default: 1 error(s) occurred:

* module.nat-zone-3.module.nat-gateway.google_compute_instance_group_manager.default: google_compute_instance_group_manager.default: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 20m0s)
* module.nat-zone-2.module.nat-gateway.google_compute_instance_group_manager.default: 1 error(s) occurred:

* module.nat-zone-2.module.nat-gateway.google_compute_instance_group_manager.default: google_compute_instance_group_manager.default: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 20m0s)
@danisla
Copy link
Contributor

danisla commented Aug 14, 2018

I think the health check is making the instance group periodically timeout.

Fixed with #79.

@danisla danisla closed this as completed Aug 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants