-
Notifications
You must be signed in to change notification settings - Fork 45
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
Support redirects with iso_url & iso_checksum #63
Comments
@hashicorp it looks like from the Code Owners file that there is a @hashicorp/packer team, but I don't know who I should reach out to about making sure someone at least saw this issue (not necessarily do anything about it, but just want to make sure that @hashicorp/packer isn't a dead team tag or something ). Even if it's an 👀 emoji on the post or something. |
I ran into this issue today. OS: Debian unstable
To work around the issue I replaced the mirror with one found using Eg.
|
Ya, I have done that for my personal setup, and thank you for the recommendation 😊, but it's not a "solution". Mainly because the mirror you typically get redirected to relative to your geographic location. So, if I plug in the address from that and I'm in the US then someone in China is going to try and reach out to a US mirror. It's going to be extremely slow, compared to if packer handled this it'll automatically choose the closest mirror. |
Hey @elreydetoda, sorry for taking this long to address this, I'm taking a look at this behaviour. From the looks of it, it seems the problem has its roots in the SDK (even in the go-getter project which is a direct dependency of the SDK), which leads me to wonder: have you tried this redirection for the checksum with other builders? If so, so you experience the same problem? If my intuition is correct, the problem should be widespread. Fortunately we do maintain the whole chain here, so it's not unaddressable, but I want to make sure I'm looking at the right place, can you confirm? I'll try to replicate it locally and test this with multiple builders in the meantime, I'll submit some patches if I can get it to work. Thanks for signalling this problem, I hope we can get it fixed soon. |
Overview of the Issue
While I'm experiencing other issues (bento & packer data source which aren't addressable by you I'm pretty sure), I also noticed while looking at the debug logs (PACKER_LOG=1) for my build that the QEMU build doesn't appear to follow redirects.
While I've used http urls for ISO checksums before, I attempted to use a URL that redirects to the checksum and ISO but it appeared to fail on the initial getting of the file as you can see in the image below:
I technically haven't tested if the
iso_url
works with a redirect, but I'm imagining it doesn't sinceiso_checksum
doesn't.Here are the links I am using:
Reproduction Steps
packer build centos-stream-9-x86_64.json
- using the linked to packer build filePlugin and Packer version
Packer v1.7.9
Simplified Packer Buildfile
https://github.com/elreydetoda/bento/blob/da1b122d89dc045c1020165e7f264c0935f7d571/packer_templates/centos/centos-stream-9-x86_64.json
Operating system and Environment details
OS: Ubuntu 21.10
arch: amd64
Log Fragments and crash.log files
packer.log
The text was updated successfully, but these errors were encountered: