-
Notifications
You must be signed in to change notification settings - Fork 67
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
iso_download_pve doesn't check if the ISO already exists when checksum is set to "none" #179
Comments
That's a limitation of the Proxmox API. |
So my use case is more about skipping the ISO download rather than overwriting it if checksum="none" and the file already exists on the proxmox server, but maybe it's the same API limitation? |
Ah sorry, I should have read more carefully.
And the error
stems from the Proxmox API, not from Packer. So I guess an option to skip downloading an already present file, even without providing a checksum, would have to be implemented for the Proxmox API first. |
Overview of the Issue
iso_download_pve can't be used with checksum="none" if the ISO already exists on the proxmox server:
Use Case(s)
Checksumming ISO images can take a long time (the rocky linux ISO is > 10GB!) and it would be nice if we could disable it during development/testing of packer build pipelines.
In the past (before iso_download_pve), I handled the ISO outside packer during build development, and used "iso_file" instead of "iso_url" in the source definition before changing it back to "iso_url" with checksumming (controlled by a variable) before production use.
With "iso_download_pve" I can finally just set it to "iso_url" and avoid the long transfer times between the packer client and proxmox, but if checksum is set to "none" the builder correctly skips the checksum but doesn't check if the ISO already exists on the proxmox server before attempting to download it. So this works the first time an ISO is downloaded, but fails on subsequent builds.
Reproduction Steps
set
iso_download_pve = true
andchecksum = "none"
in aproxmox-iso
source and build the image twicePlugin and Packer version
Packer v1.8.6
proxmox plugin 1.1.2
The text was updated successfully, but these errors were encountered: