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

googlecompute-export - Update default image or make it configurable #243

Open
benjben opened this issue Dec 20, 2024 · 0 comments · Fixed by reemo-io/packer-plugin-googlecompute#1 · May be fixed by #251
Open

googlecompute-export - Update default image or make it configurable #243

benjben opened this issue Dec 20, 2024 · 0 comments · Fixed by reemo-io/packer-plugin-googlecompute#1 · May be fixed by #251

Comments

@benjben
Copy link

benjben commented Dec 20, 2024

Overview of the Issue

Hard coded source image doesn't exist any more.

googlecompute-export uses debian-9-worker image family in project compute-image-tools.

However, there is no image any more in this family:

 ~ gcloud compute images list --filter debian --project compute-image-tools
NAME                                PROJECT              FAMILY                  DEPRECATED  STATUS
debian-11-worker-v20241210          compute-image-tools  debian-11-worker                    READY
debian-12-worker-arm64-v20241210    compute-image-tools  debian-12-worker-arm64              READY
debian-12-worker-v20241210          compute-image-tools  debian-12-worker                    READY
debian-11-bullseye-v20241210        debian-cloud         debian-11                           READY
debian-12-bookworm-arm64-v20241210  debian-cloud         debian-12-arm64                     READY
debian-12-bookworm-v20241210        debian-cloud         debian-12                           READY

Reproduction Steps

Use googlecompute-export

Plugin and Packer version

Packer version : 1.11.2

Operating system and Environment details

Ubuntu 22.04 in Github Actions

Log Fragments and crash.log files

==> googlecompute (googlecompute-export): Exporting image snowplow-mini-0-22-0-rc2-large-1734689425 to destination: [gs://snowplow-mini/snowplow-mini-0-22-0-rc2-large-1734689425.tar.gz]
==> googlecompute (googlecompute-export): Creating temporary RSA SSH key for instance...
==> googlecompute (googlecompute-export): Error getting source image for instance creation: Could not find image, debian-9-worker, in projects, [compute-image-tools]: 1 error(s) occurred:
==> googlecompute (googlecompute-export): 
==> googlecompute (googlecompute-export): * googleapi: Error 404: The resource 'projects/compute-image-tools/global/images/family/debian-9-worker' was not found, notFound

Full error can be found in the Github Action here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants