You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iso_download_pve can't be used with checksum="none" if the ISO already exists on the proxmox server:
==> proxmox-iso.xxxxx: Beginning download of https://download.rockylinux.org/pub/rocky/8/isos/x86_64/Rocky-8.7-x86_64-dvd1.iso to node proxmox
==> proxmox-iso.xxxxx: refusing to override existing file '/storage/directory/template/iso/Rocky-8.7-x86_64-dvd1.iso'
==> proxmox-iso.xxxxx: Step "stepDownloadISOOnPVE" failed, aborting...
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 and checksum = "none" in a proxmox-iso source and build the image twice
Plugin and Packer version
Packer v1.8.6
proxmox plugin 1.1.2
The text was updated successfully, but these errors were encountered:
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?
==> proxmox-iso.xxxxx: refusing to override existing file ...
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: