terraform-google-modules / terraform-google-jenkins

Creates a Compute Engine instance running Jenkins
https://registry.terraform.io/modules/terraform-google-modules/jenkins/google
Apache License 2.0
31 stars 69 forks source link

Compute image not found #23

Open teamfighter opened 4 years ago

teamfighter commented 4 years ago

Looks like completly broken.

✗ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

module.jenkins.data.google_compute_image.jenkins: Refreshing state...
module.jenkins.data.google_compute_image.jenkins_worker: Refreshing state...

Error: error retrieving image information: googleapi: Error 404: The resource 'projects/bitnami-launchpad/global/images/bitnami-jenkins-2-176-2-0-linux-debian-9-x86-64' was not found, notFound

  on .terraform/modules/jenkins/main.tf line 52, in data "google_compute_image" "jenkins":
  52: data "google_compute_image" "jenkins" {

If I add jenkins_boot_disk_source_image = "bitnami-jenkins-2-222-3-0-linux-debian-9-x86-64-nami" to main.tf, it creates all resources but because of breaking changes in Jenkins 2-222-3 startup script is failing so deployment (wait_for_jenkins step) goes forever.

cakeben commented 4 years ago

Hi @teamfighter I had to fork the repo and use image bitnami-jenkins-2-222-4-3-r01-linux-debian-10-x86-64-nami

as seen here https://github.com/cakeben/terraform-google-jenkins/blob/ae5687c9d683479eb9e52fda686b49788d7eb21b/variables.tf#L43

morgante commented 4 years ago

@cakeben A PR to fix this would be appreciated if you have a chance.