Created
August 20, 2019 22:20
-
-
Save rohitrd0987/85ebcaf016e128066b7b53c454a3871d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Terraform apply with appropriate varibles | |
Initializing modules... | |
- module.k8s | |
Getting source "./terraform-google-gke-infra" | |
Initializing provider plugins... | |
- Checking for available provider plugins on https://releases.hashicorp.com... | |
- Downloading plugin for provider "google" (1.19.0)... | |
- Downloading plugin for provider "google-beta" (2.3.0)... | |
Terraform has been successfully initialized! | |
You may now begin working with Terraform. Try running "terraform plan" to see | |
any changes that are required for your infrastructure. All Terraform commands | |
should now work. | |
If you ever set or change modules or backend configuration for Terraform, | |
rerun this command to reinitialize your working directory. If you forget, other | |
commands will detect it and remind you to do so if necessary. | |
Warning: module.k8s.google_container_cluster.cluster: "region": [DEPRECATED] Use location instead | |
data.google_client_config.gcloud: Refreshing state... | |
data.google_compute_network.vpc: Refreshing state... | |
module.k8s.google_compute_subnetwork.subnet: Creating... | |
creation_timestamp: "" => "<computed>" | |
description: "" => "Managed by Terraform" | |
fingerprint: "" => "<computed>" | |
gateway_address: "" => "<computed>" | |
ip_cidr_range: "" => "X.X.X.X/27" | |
name: "" => "test-XXX" | |
network: "" => "https://www.googleapis.com/compute/v1/projects/PROJECT_IDXXX/global/networks/VPCXXX" | |
private_ip_google_access: "" => "true" | |
project: "" => "PROJECT_IDXXX" | |
region: "" => "us-central1" | |
secondary_ip_range.#: "" => "2" | |
secondary_ip_range.0.ip_cidr_range: "" => "X.X.X.X/18" | |
secondary_ip_range.0.range_name: "" => "test-XXX-k8s-pod" | |
secondary_ip_range.1.ip_cidr_range: "" => "X.X.X.X/20" | |
secondary_ip_range.1.range_name: "" => "test-XXX-k8s-svc" | |
self_link: "" => "<computed>" | |
module.k8s.google_compute_subnetwork.subnet: Still creating... (10s elapsed) | |
module.k8s.google_compute_subnetwork.subnet: Still creating... (20s elapsed) | |
module.k8s.google_compute_subnetwork.subnet: Still creating... (30s elapsed) | |
module.k8s.google_compute_subnetwork.subnet: Still creating... (40s elapsed) | |
module.k8s.google_compute_subnetwork.subnet: Still creating... (50s elapsed) | |
module.k8s.google_compute_subnetwork.subnet: Still creating... (1m0s elapsed) | |
module.k8s.google_compute_subnetwork.subnet: Creation complete after 1m8s (ID: us-central1/test-rohit) | |
module.k8s.google_container_cluster.cluster: Creating... | |
additional_zones.#: "" => "<computed>" | |
addons_config.#: "" => "1" | |
addons_config.0.cloudrun_config.#: "" => "<computed>" | |
addons_config.0.horizontal_pod_autoscaling.#: "" => "1" | |
addons_config.0.horizontal_pod_autoscaling.0.disabled: "" => "false" | |
addons_config.0.http_load_balancing.#: "" => "1" | |
addons_config.0.http_load_balancing.0.disabled: "" => "false" | |
addons_config.0.istio_config.#: "" => "1" | |
addons_config.0.istio_config.0.auth: "" => "AUTH_MUTUAL_TLS" | |
addons_config.0.istio_config.0.disabled: "" => "false" | |
addons_config.0.kubernetes_dashboard.#: "" => "1" | |
addons_config.0.kubernetes_dashboard.0.disabled: "" => "true" | |
addons_config.0.network_policy_config.#: "" => "1" | |
addons_config.0.network_policy_config.0.disabled: "" => "false" | |
cluster_autoscaling.#: "" => "<computed>" | |
cluster_ipv4_cidr: "" => "X.X.X.X/18" | |
default_max_pods_per_node: "" => "<computed>" | |
description: "" => "Managed by Terraform" | |
enable_binary_authorization: "" => "false" | |
enable_kubernetes_alpha: "" => "false" | |
enable_legacy_abac: "" => "false" | |
enable_tpu: "" => "false" | |
endpoint: "" => "<computed>" | |
instance_group_urls.#: "" => "<computed>" | |
ip_allocation_policy.#: "" => "1" | |
ip_allocation_policy.0.cluster_ipv4_cidr_block: "" => "<computed>" | |
ip_allocation_policy.0.cluster_secondary_range_name: "" => "test-XXX-k8s-pod" | |
ip_allocation_policy.0.services_ipv4_cidr_block: "" => "<computed>" | |
ip_allocation_policy.0.services_secondary_range_name: "" => "test-XXX-k8s-svc" | |
ip_allocation_policy.0.use_ip_aliases: "" => "true" | |
location: "" => "<computed>" | |
logging_service: "" => "logging.googleapis.com/kubernetes" | |
master_auth.#: "" => "1" | |
master_auth.0.client_certificate: "" => "<computed>" | |
master_auth.0.client_key: "<sensitive>" => "<sensitive>" | |
master_auth.0.cluster_ca_certificate: "" => "<computed>" | |
master_authorized_networks_config.#: "" => "1" | |
master_authorized_networks_config.0.cidr_blocks.#: "" => "1" | |
master_authorized_networks_config.0.cidr_blocks.1985973915.cidr_block: "" => "X.X.X.X/8" | |
master_authorized_networks_config.0.cidr_blocks.1985973915.display_name: "" => "" | |
master_ipv4_cidr_block: "" => "<computed>" | |
master_version: "" => "<computed>" | |
monitoring_service: "" => "monitoring.googleapis.com/kubernetes" | |
name: "" => "test-XXX" | |
network: "" => "https://www.googleapis.com/compute/v1/projects/PROJECT_IDXXX/global/networks/VPCXXX" | |
network_policy.#: "" => "1" | |
network_policy.0.enabled: "" => "true" | |
network_policy.0.provider: "" => "CALICO" | |
node_config.#: "" => "<computed>" | |
node_locations.#: "" => "<computed>" | |
node_pool.#: "" => "1" | |
node_pool.0.autoscaling.#: "" => "1" | |
node_pool.0.autoscaling.0.max_node_count: "" => "10" | |
node_pool.0.autoscaling.0.min_node_count: "" => "4" | |
node_pool.0.initial_node_count: "" => "4" | |
node_pool.0.instance_group_urls.#: "" => "<computed>" | |
node_pool.0.management.#: "" => "1" | |
node_pool.0.management.0.auto_repair: "" => "false" | |
node_pool.0.management.0.auto_upgrade: "" => "false" | |
node_pool.0.max_pods_per_node: "" => "110" | |
node_pool.0.name: "" => "testXXX" | |
node_pool.0.name_prefix: "" => "<computed>" | |
node_pool.0.node_config.#: "" => "1" | |
node_pool.0.node_config.0.disk_size_gb: "" => "100" | |
node_pool.0.node_config.0.disk_type: "" => "pd-ssd" | |
node_pool.0.node_config.0.guest_accelerator.#: "" => "<computed>" | |
node_pool.0.node_config.0.image_type: "" => "UBUNTU" | |
node_pool.0.node_config.0.local_ssd_count: "" => "0" | |
node_pool.0.node_config.0.machine_type: "" => "n1-standard-8" | |
node_pool.0.node_config.0.metadata.%: "" => "<computed>" | |
node_pool.0.node_config.0.oauth_scopes.#: "" => "4" | |
node_pool.0.node_config.0.oauth_scopes.1277378754: "" => "https://www.googleapis.com/auth/monitoring" | |
node_pool.0.node_config.0.oauth_scopes.1632638332: "" => "https://www.googleapis.com/auth/devstorage.read_only" | |
node_pool.0.node_config.0.oauth_scopes.172152165: "" => "https://www.googleapis.com/auth/logging.write" | |
node_pool.0.node_config.0.oauth_scopes.299962681: "" => "https://www.googleapis.com/auth/compute" | |
node_pool.0.node_config.0.preemptible: "" => "false" | |
node_pool.0.node_config.0.service_account: "" => "<computed>" | |
node_pool.0.node_config.0.tags.#: "" => "1" | |
node_pool.0.node_config.0.tags.0: "" => "testXXX" | |
node_pool.0.node_config.0.workload_metadata_config.#: "" => "1" | |
node_pool.0.node_config.0.workload_metadata_config.0.node_metadata: "" => "SECURE" | |
node_pool.0.node_count: "" => "<computed>" | |
node_pool.0.version: "" => "<computed>" | |
node_version: "" => "<computed>" | |
pod_security_policy_config.#: "" => "1" | |
pod_security_policy_config.0.enabled: "" => "false" | |
private_cluster: "" => "<computed>" | |
private_cluster_config.#: "" => "1" | |
private_cluster_config.0.enable_private_endpoint: "" => "true" | |
private_cluster_config.0.enable_private_nodes: "" => "true" | |
private_cluster_config.0.master_ipv4_cidr_block: "" => "X.X.X.X/28" | |
private_cluster_config.0.private_endpoint: "" => "<computed>" | |
private_cluster_config.0.public_endpoint: "" => "<computed>" | |
project: "" => "PROJECT_IDXXX" | |
region: "" => "us-central1" | |
remove_default_node_pool: "" => "false" | |
subnetwork: "" => "https://www.googleapis.com/compute/v1/projects/PROJECT_IDXXX/regions/us-central1/subnetworks/testXXX" | |
tpu_ipv4_cidr_block: "" => "<computed>" | |
zone: "" => "<computed>" | |
module.k8s.google_container_cluster.cluster: Still creating... (10s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (20s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (30s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (40s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (50s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (1m0s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (1m10s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (1m20s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (1m30s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (1m40s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (1m50s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (2m0s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (2m10s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (2m20s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (2m30s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (2m40s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (2m50s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (3m0s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (3m10s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (3m20s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (3m30s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (3m40s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (3m50s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (4m0s elapsed) | |
module.k8s.google_container_cluster.cluster: Still creating... (4m10s elapsed) | |
Error: Error applying plan: | |
1 error(s) occurred: | |
* module.k8s.google_container_cluster.cluster: 1 error(s) occurred: | |
* google_container_cluster.cluster: unexpected EOF | |
panic: runtime error: invalid memory address or nil pointer dereference | |
2019-08-20T10:47:44.729-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1584819] | |
2019-08-20T10:47:44.729-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: | |
2019-08-20T10:47:44.729-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: goroutine 71 [running]: | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: github.com/terraform-providers/terraform-provider-google-beta/google-beta.flattenMaintenancePolicy(...) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google-beta/google-beta/resource_container_cluster.go:2047 | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: github.com/terraform-providers/terraform-provider-google-beta/google-beta.resourceContainerClusterRead(0xc000382310, 0x1976800, 0xc000521ba0, 0x17dfd20, 0x2e5dc80) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google-beta/google-beta/resource_container_cluster.go:909 +0x22d9 | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: github.com/terraform-providers/terraform-provider-google-beta/google-beta.resourceContainerClusterCreate(0xc000382310, 0x1976800, 0xc000521ba0, 0x0, 0x0) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google-beta/google-beta/resource_container_cluster.go:859 +0x18f5 | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: github.com/terraform-providers/terraform-provider-google-beta/vendor/github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc00046f420, 0xc0000c0730, 0xc0002da700, 0x1976800, 0xc000521ba0, 0x40b801, 0xc000260b80, 0x4c1cfc) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google-beta/vendor/github.com/hashicorp/terraform/helper/schema/resource.go:225 +0x351 | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: github.com/terraform-providers/terraform-provider-google-beta/vendor/github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc000429030, 0xc0000c0230, 0xc0000c0730, 0xc0002da700, 0xc0002e2000, 0x18, 0x7fb0005a0d80) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google-beta/vendor/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0x9c | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: github.com/terraform-providers/terraform-provider-google-beta/vendor/github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc0002222a0, 0xc0002da180, 0xc00015c670, 0x0, 0x0) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/terraform-providers/terraform-provider-google-beta/vendor/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57 | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: reflect.Value.call(0xc00015f0e0, 0xc0000b2ca8, 0x13, 0x1cbbf00, 0x4, 0xc000260f18, 0x3, 0x3, 0xc000472100, 0x4131d7, ...) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/goenv/versions/1.11.5/src/reflect/value.go:447 +0x454 | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: reflect.Value.Call(0xc00015f0e0, 0xc0000b2ca8, 0x13, 0xc000432f18, 0x3, 0x3, 0x12a05f200, 0xc000432f10, 0xc000432fb8) | |
2019-08-20T10:47:44.731-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/goenv/versions/1.11.5/src/reflect/value.go:308 +0xa4 | |
2019-08-20T10:47:44.732-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: net/rpc.(*service).call(0xc000473480, 0xc000422280, 0xc0006dc2a8, 0xc0006dc2c0, 0xc000536800, 0xc00057b400, 0x176aca0, 0xc0002da180, 0x16, 0x176ace0, ...) | |
2019-08-20T10:47:44.732-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/goenv/versions/1.11.5/src/net/rpc/server.go:384 +0x14e | |
2019-08-20T10:47:44.732-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: created by net/rpc.(*Server).ServeCodec | |
2019-08-20T10:47:44.732-0700 [DEBUG] plugin.terraform-provider-google-beta_v2.3.0_x4: /opt/goenv/versions/1.11.5/src/net/rpc/server.go:481 +0x47e | |
2019/08/20 10:47:44 [TRACE] root.k8s: eval: *terraform.EvalWriteState | |
2019/08/20 10:47:44 [TRACE] root.k8s: eval: *terraform.EvalApplyProvisioners | |
2019/08/20 10:47:44 [TRACE] root.k8s: eval: *terraform.EvalIf | |
2019/08/20 10:47:44 [TRACE] root.k8s: eval: *terraform.EvalWriteState | |
2019/08/20 10:47:44 [TRACE] root.k8s: eval: *terraform.EvalWriteDiff | |
2019/08/20 10:47:44 [TRACE] root.k8s: eval: *terraform.EvalApplyPost | |
2019/08/20 10:47:44 [ERROR] root.k8s: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred: | |
* google_container_cluster.cluster: unexpected EOF | |
2019/08/20 10:47:44 [ERROR] root.k8s: eval: *terraform.EvalSequence, err: 1 error(s) occurred: | |
* google_container_cluster.cluster: unexpected EOF | |
2019/08/20 10:47:44 [TRACE] [walkApply] Exiting eval tree: module.k8s.google_container_cluster.cluster | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.endpoint" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.local.legacy_kubeconfig" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.local.gcloud_kubeconfig" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.kubeconfig" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.client_key" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.cluster_name" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.cluster_ca_certificate" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.provider.google-beta (close)" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.instace_urls" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "module.k8s.output.client_certificate" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)" | |
2019/08/20 10:47:44 [TRACE] dag/walk: upstream errored, not walking "root" | |
2019/08/20 10:47:44 [TRACE] Preserving existing state lineage "7385d9ed-ee27-96e0-1350-e628c800902b" | |
2019-08-20T10:47:44.734-0700 [DEBUG] plugin: plugin process exited: path=/home/NAMEXXX/terraform/PROJECT_IDXXX/private-gke-subnet-cluster-nw-policy/.terraform/plugins/linux_amd64/terraform-provider-google-beta_v2.3.0_x4 | |
2019/08/20 10:47:44 [DEBUG] plugin: waiting for all plugin processes to complete... | |
2019-08-20T10:47:44.742-0700 [WARN ] plugin: error closing client during Kill: err="connection is shut down" | |
2019-08-20T10:47:44.747-0700 [DEBUG] plugin.terraform-provider-google_v1.19.0_x4: 2019/08/20 10:47:44 [ERR] plugin: plugin server: accept unix /tmp/plugin674271535: use of closed network connection | |
2019-08-20T10:47:44.750-0700 [DEBUG] plugin: plugin process exited: path=/home/NAMEXXX/terraform/PROJECT_IDXXX/private-gke-subnet-cluster-nw-policy/.terraform/plugins/linux_amd64/terraform-provider-google_v1.19.0_x4 | |
Terraform does not automatically rollback in the face of errors. | |
Instead, your Terraform state file has been partially updated with | |
any resources that successfully completed. Please address the error | |
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
Terraform crashed! This is always indicative of a bug within Terraform. | |
A crash log has been placed at "crash.log" relative to your current | |
working directory. It would be immensely helpful if you could please | |
report the crash with Terraform[1] so that we can fix this. | |
When reporting bugs, please include your terraform version. That | |
information is available on the first line of crash.log. You can also | |
get it by running 'terraform --version' on the command line. | |
[1]: https://github.com/hashicorp/terraform/issues | |
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
above and apply again to incrementally change your infrastructure. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment