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

Packer Crash when image cannot be found #222

Closed
mhutter opened this issue Aug 13, 2024 · 1 comment · Fixed by #223 or #226
Closed

Packer Crash when image cannot be found #222

mhutter opened this issue Aug 13, 2024 · 1 comment · Fixed by #223 or #226
Assignees
Labels

Comments

@mhutter
Copy link

mhutter commented Aug 13, 2024

Overview of the Issue

When the base image for sources cannot be found, Packer crashes with SIGSEGV instead of a usable error message.

Reproduction Steps

Given this template, Packer will crash on build:

source "hcloud" "aarch64" {
  image = "fedora-38"
}

Note that the fedora-38 image does not exist anymore.

Plugin and Packer version

Packer v1.11.2

v1.5.4 of this plugin

Simplified Packer Buildfile

https://github.com/mhutter/hcloud-packer-coreos/blob/60deb2515edd6f71679c2b9ab295beba1aede9b7/template.pkr.hcl

Operating system and Environment details

Linux, x64

Log Fragments and crash.log files

See https://github.com/mhutter/hcloud-packer-coreos/actions/runs/10372210073/job/28714404526

@mhutter mhutter added the bug label Aug 13, 2024
mhutter added a commit to mhutter/hcloud-packer-coreos that referenced this issue Aug 13, 2024
This should prevent the build randomly failing when Hetzner deprecates
an image. As it turns out, Packer will crash when the image cannot be
found. (see hetznercloud/packer-plugin-hcloud#222)

Signed-off-by: Manuel Hutter <manuel@hutter.io>
@jooola jooola self-assigned this Aug 13, 2024
@jooola
Copy link
Member

jooola commented Aug 13, 2024

Thanks for the bug report, I can confirm the bug.

It will be solved with #223

@jooola jooola closed this as completed in da3b49b Aug 14, 2024
jooola pushed a commit that referenced this issue Aug 14, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.6.0](v1.5.4...v1.6.0)
(2024-08-14)


### Features

* allow attaching firewalls to the server
([#221](#221))
([73f10e4](73f10e4))


### Bug Fixes

* check if the image was found
([#223](#223))
([da3b49b](da3b49b)),
closes
[#222](#222)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants