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

wait-for-cluster.sh throw error jq: command not found #150

Closed
ponkyky opened this issue May 15, 2019 · 1 comment · Fixed by #151
Closed

wait-for-cluster.sh throw error jq: command not found #150

ponkyky opened this issue May 15, 2019 · 1 comment · Fixed by #151

Comments

@ponkyky
Copy link

ponkyky commented May 15, 2019

I've been testing this module for a PoC, but it seems that a script in deployment process assume the presence of a binary which is not present anymore in COS.

The complete error :

module.gke.module.cluster.null_resource.wait_for_regional_cluster: Error running command '/home/ponky/perso/test-gke-module/.terraform/modules/25f7ceaf47579277166eb8da7c1678a8/terraform-google-modules-terraform-google-kubernetes-engine-79542bc/scripts/wait-for-cluster.sh test-module-240713 gke-test-0f2bc90b': exit status 127.
Output: Waiting for cluster gke-test-0f2bc90b in project test-module-240713 to reconcile...
/home/ponky/perso/test-gke-module/.terraform/modules/25f7ceaf47579277166eb8da7c1678a8/terraform-google-modules-terraform-google-kubernetes-engine-79542bc/scripts/wait-for-cluster.sh: line 25: jq: command not found

Terraform version

Terraform v0.11.13
+ provider.google v2.3.0
+ provider.google-beta v2.3.0
+ provider.kubernetes v1.6.2
+ provider.null v2.1.2
+ provider.random v2.1.2

Configuration file

provider.tf

provider "random" {
  version = "~> 2.1"
}

provider "google" {
  version     = "~> 2.3"
  credentials = "<CREDENTIAL_PATH>"
  region      = "europe-west1"
}

provider "google-beta" {
  version     = "~> 2.3"
  credentials = "<CREDENTIAL_PATH>"
  region      = "europe-west1"
}

main.tf

resource "random_id" "gke_id" {
  byte_length = 4
  prefix      = "gke-test-"
}

module "gke" {
  source            = "terraform-google-modules/kubernetes-engine/google"
  version           = "2.0.1"
  project_id        = "<PROJECT_ID>"
  name              = "${random_id.gke_id.hex}"
  region            = "europe-west1"
  network           = "default"
  subnetwork        = "default"
  ip_range_pods     = "p1"
  ip_range_services = "p2"
}

Expected Behavior

Terraform creates plan successfully without error.

Actual Behavior

terraform apply errors with

module.gke.module.cluster.null_resource.wait_for_regional_cluster: Error running command '/home/ponky/perso/test-gke-module/.terraform/modules/25f7ceaf47579277166eb8da7c1678a8/terraform-google-modules-terraform-google-kubernetes-engine-79542bc/scripts/wait-for-cluster.sh test-module-240713 gke-test-0f2bc90b': exit status 127.
Output: Waiting for cluster gke-test-0f2bc90b in project test-module-240713 to reconcile...
/home/ponky/perso/test-gke-module/.terraform/modules/25f7ceaf47579277166eb8da7c1678a8/terraform-google-modules-terraform-google-kubernetes-engine-79542bc/scripts/wait-for-cluster.sh: line 25: jq: command not found

Steps to Reproduce

terraform plan -out=test-plan && terraform apply test-plan

@morgante
Copy link
Contributor

Looks like we don't document the requirement of installing jq: https://stedolan.github.io/jq/

morgante added a commit that referenced this issue May 21, 2019
aaron-lane added a commit that referenced this issue May 27, 2019
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this issue Jul 15, 2024
CPL-markus pushed a commit to WALTER-GROUP/terraform-google-kubernetes-engine that referenced this issue Jul 15, 2024
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

Successfully merging a pull request may close this issue.

2 participants