bitpoke / stack

Open-Source WordPress Infrastructure on Kubernetes
https://www.bitpoke.io/stack
Apache License 2.0
165 stars 30 forks source link

Warnings and 'Error 500: Internal Error Encountered' when creating GKE cluster #81

Closed bharrold closed 4 years ago

bharrold commented 4 years ago

What happened: After running terraform apply -var-file="cluster.tfvars", returned the following warnings and 500 error:

Warning: Interpolation-only expressions are deprecated

  on main.tf line 3, in provider "google-beta":
   3:   project = "${var.project}"

Terraform 0.11 and earlier required all non-constant expressions to be
provided via interpolation syntax, but this pattern is now deprecated. To
silence this warning, remove the "${ sequence from the start and the }"
sequence from the end of this expression, leaving just the inner expression.

Template interpolation syntax is still used to construct strings from
expressions when the template includes multiple interpolation sequences or a
mixture of literal strings and interpolations. This deprecation applies only
to templates that consist entirely of a single interpolation sequence.

(and 27 more similar warnings elsewhere)

Warning: Quoted type constraints are deprecated

  on main.tf line 9, in variable "project":
   9:   type = "string"

Terraform 0.11 and earlier required type constraints to be given in quotes,
but that form is now deprecated and will be removed in a future version of
Terraform. To silence this warning, remove the quotes around "string".

(and 15 more similar warnings elsewhere)

Warning: "region": [DEPRECATED] Use location instead

  on ../../modules/gke/main.tf line 1, in resource "google_container_cluster" "cluster":
   1: resource "google_container_cluster" "cluster" {

Warning: "additional_zones": [DEPRECATED] Use node_locations instead

  on ../../modules/gke/main.tf line 1, in resource "google_container_cluster" "cluster":
   1: resource "google_container_cluster" "cluster" {

Warning: "ip_allocation_policy.0.create_subnetwork": [DEPRECATED] This field is being removed in 3.0.0. Define an explicit google_compute_subnetwork and use subnetwork instead.

  on ../../modules/gke/main.tf line 1, in resource "google_container_cluster" "cluster":
   1: resource "google_container_cluster" "cluster" {

Warning: Quoted references are deprecated

  on ../../modules/gke/main.tf line 2, in resource "google_container_cluster" "cluster":
   2:   provider = "google-beta"

In this context, references are expected literally rather than in quotes.
Terraform 0.11 and earlier required quotes, but quoted references are now
deprecated and will be removed in a future version of Terraform. Remove the
quotes surrounding this reference to silence this warning.

(and 4 more similar warnings elsewhere)

Warning: "region": [DEPRECATED] use location instead

  on ../../modules/gke/main.tf line 46, in resource "google_container_node_pool" "system":
  46: resource "google_container_node_pool" "system" {

(and 3 more similar warnings elsewhere)

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

module.stack.google_container_cluster.cluster: Creating...
module.stack.google_container_cluster.cluster: Still creating... [10s elapsed]
module.stack.google_container_cluster.cluster: Still creating... [20s elapsed]
module.stack.google_container_cluster.cluster: Still creating... [30s elapsed]
module.stack.google_container_cluster.cluster: Still creating... [40s elapsed]
module.stack.google_container_cluster.cluster: Still creating... [50s elapsed]
module.stack.google_container_cluster.cluster: Still creating... [1m0s elapsed]

Error: googleapi: Error 500: Internal error encountered., backendError

  on ../../modules/gke/main.tf line 1, in resource "google_container_cluster" "cluster":
   1: resource "google_container_cluster" "cluster" {

How to reproduce it: Following steps: https://www.presslabs.com/docs/stack/quickstarts/install-stack-on-gke/

Might be related to https://github.com/hashicorp/terraform/issues/16981 or https://github.com/presslabs/stack/issues/69

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can add lifecycle/frozen label to indicate that this issue or PR should not be auto-closed due to inactivity.

stale[bot] commented 4 years ago

This issue has been closed due to lack of activity.