Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Timeout when instance_group_manager is run #47

@Logan-Kang

Description

@Logan-Kang

Hello

I git clone this code and upgraded it to 0.12
The upgrade to 0.12 removed the unnecessary update_strategy, rolling_update_policy. Then, the test was conducted, and the generation was stopped due to timeout while performing instance_group_manager.
After that, timeout occurs continuously in the refreshing state even if I perform the terraform apply or terraform destroy again.

module "mig1" {
source = "../../"
module_enabled = var.module_enabled
region = var.region
zone = var.zone
zonal = true
name = var.network_name
machine_type = "n1-standatd-1"
size = 3
target_tags = [var.network_name]
service_port = 80
service_port_name = "http"
startup_script = data.template_file.startup-script.rendered
wait_for_instances = true

network = google_compute_subnetwork.default.name
subnetwork = google_compute_subnetwork.default.name
instance_labels = var.labels
http_health_check = var.http_health_check

/* update_strategy = "ROLLING_UPDATE"

rolling_update_policy = [

{

type = "PROACTIVE"

minimal_action = "REPLACE"

max_surge_fixed = 4

max_unavailable_fixed = 4

min_ready_sec = 50

},

]*/
}

error:

module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [4m20s elapsed]
module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [4m30s elapsed]
module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [4m40s elapsed]
module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [4m50s elapsed]
module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [5m0s elapsed]
module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [5m10s elapsed]
module.mig1.google_compute_instance_group_manager.default[0]: Still creating... [5m20s elapsed]

Error: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 5m0s)

$~/terraform/sample/terraform-google-managed-instance-group/examples/zonal$ terraform apply
var.machine_type
Enter a value: n1-standard-1

data.template_file.startup-script: Refreshing state...
data.google_compute_zones.available: Refreshing state...
module.mig1.data.google_compute_zones.available: Refreshing state...
google_compute_network.default: Refreshing state... [id=projects/iaas-demo-208601/global/networks/mig-zonal-example]
module.mig1.google_compute_health_check.mig-health-check[0]: Refreshing state... [id=projects/iaas-demo-208601/global/healthChecks/mig-zonal-example]
google_compute_subnetwork.default: Refreshing state... [id=projects/iaas-demo-208601/regions/asia-northeast3/subnetworks/mig-zonal-example]
module.mig1.google_compute_firewall.mig-health-check[0]: Refreshing state... [id=projects/iaas-demo-208601/global/firewalls/mig-zonal-example-vm-hc]
module.mig1.google_compute_firewall.default-ssh[0]: Refreshing state... [id=projects/iaas-demo-208601/global/firewalls/mig-zonal-example-vm-ssh]
module.mig1.google_compute_instance_template.default[0]: Refreshing state... [id=projects/iaas-demo-208601/global/instanceTemplates/default-20200714000854582100000001]
module.mig1.google_compute_instance_group_manager.default[0]: Refreshing state... [id=projects/iaas-demo-208601/zones/asia-northeast3-b/instanceGroupManagers/mig-zonal-example]

Error: timeout while waiting for state to become 'created' (last state: 'creating', timeout: 5m0s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions