Overview of the Issue
I'm getting no checksum found error when using proper values in iso_checksum_url and iso_urls generates
Reproduction Steps
...
"builders": [
{
"iso_checksum_type": "sha256",
"iso_checksum_url": "http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/SHA256SUMS",
"iso_urls": "http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/mini.iso",
...
Packer version
$ packer version
Packer v1.5.4
Simplified Packer Buildfile
{
"builders": [
{
"vm_name": "test",
"type": "qemu",
"ssh_username": "root",
"iso_checksum_type": "sha256",
"iso_checksum_url": "http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/SHA256SUMS",
"iso_urls": "http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/mini.iso"
}
]
}
Operating system and Environment details
Fedora 31
Log Fragments and crash.log files
$ PACKER_LOG=1 packer validate bug.json
2020/02/20 13:50:32 [INFO] Packer version: 1.5.4 [go1.13.7 linux amd64]
2020/02/20 13:50:32 Checking 'PACKER_CONFIG' for a config file path
2020/02/20 13:50:32 'PACKER_CONFIG' not set; checking the default config file path
2020/02/20 13:50:32 Attempting to open config file: /home/pruzicka/.packerconfig
2020/02/20 13:50:32 [WARN] Config file doesn't exist: /home/pruzicka/.packerconfig
2020/02/20 13:50:32 Setting cache directory: /home/pruzicka/git/packer-templates/packer_cache
2020/02/20 13:50:32 Creating plugin client for path: /usr/local/bin/packer
2020/02/20 13:50:32 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-qemu"}
2020/02/20 13:50:32 Waiting for RPC address for: /usr/local/bin/packer
2020/02/20 13:50:32 packer-builder-qemu plugin: [INFO] Packer version: 1.5.4 [go1.13.7 linux amd64]
2020/02/20 13:50:32 packer-builder-qemu plugin: Checking 'PACKER_CONFIG' for a config file path
2020/02/20 13:50:32 packer-builder-qemu plugin: 'PACKER_CONFIG' not set; checking the default config file path
2020/02/20 13:50:32 packer-builder-qemu plugin: Attempting to open config file: /home/pruzicka/.packerconfig
2020/02/20 13:50:32 packer-builder-qemu plugin: [WARN] Config file doesn't exist: /home/pruzicka/.packerconfig
2020/02/20 13:50:32 packer-builder-qemu plugin: Setting cache directory: /home/pruzicka/git/packer-templates/packer_cache
2020/02/20 13:50:32 packer-builder-qemu plugin: args: []string{"packer-builder-qemu"}
2020/02/20 13:50:32 packer-builder-qemu plugin: Plugin address: unix /tmp/packer-plugin872047162
2020/02/20 13:50:32 packer-builder-qemu plugin: Waiting for connection...
2020/02/20 13:50:32 Received unix RPC address for /usr/local/bin/packer: addr is /tmp/packer-plugin872047162
2020/02/20 13:50:32 packer-builder-qemu plugin: Serving a plugin connection...
2020/02/20 13:50:32 Preparing build: qemu
2020/02/20 13:50:32 packer-builder-qemu plugin: use detected accelerator: kvm
2020/02/20 13:50:32 packer-builder-qemu plugin: MemorySize 0 is too small, using default: 512
2020/02/20 13:50:32 packer-builder-qemu plugin: CpuCount 0 too small, using default: 1
2020/02/20 13:50:33 Build 'qemu' prepare failure: 1 error(s) occurred:
* Couldn't extract checksum from checksum file: no checksum found in: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/SHA256SUMS
* Couldn't extract checksum from checksum file: no checksum found in: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/SHA256SUMS
2020/02/20 13:50:33 [INFO] (telemetry) Finalizing.
Template validation failed. Errors are shown below.
Errors validating build 'qemu'. 1 error(s) occurred:
* Couldn't extract checksum from checksum file: no checksum found in: http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/SHA256SUMS
2020/02/20 13:50:33 waiting for all plugin processes to complete...
2020/02/20 13:50:33 /usr/local/bin/packer: plugin process exited
When I use packer 1.5.1 everything is working fine:
$ PACKER_LOG=1 /tmp/packer validate bug.json
2020/02/20 13:55:40 [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64]
2020/02/20 13:55:40 Attempting to open config file: /home/pruzicka/.packerconfig
2020/02/20 13:55:40 [WARN] Config file doesn't exist: /home/pruzicka/.packerconfig
2020/02/20 13:55:40 Setting cache directory: /home/pruzicka/git/packer-templates/packer_cache
2020/02/20 13:55:40 Plugin could not be found at /tmp/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu (exec: "/tmp/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu": stat /tmp/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu: no such file or directory). Checking same directory as executable.
2020/02/20 13:55:40 Current exe path: /tmp/packer
2020/02/20 13:55:40 Creating plugin client for path: /tmp/packer
2020/02/20 13:55:40 Starting plugin: /tmp/packer []string{"/tmp/packer", "plugin", "packer-builder-qemu"}
2020/02/20 13:55:40 Waiting for RPC address for: /tmp/packer
2020/02/20 13:55:40 packer-builder-qemu plugin: [INFO] Packer version: 1.5.1 [go1.13.5 linux amd64]
2020/02/20 13:55:40 packer-builder-qemu plugin: Attempting to open config file: /home/pruzicka/.packerconfig
2020/02/20 13:55:40 packer-builder-qemu plugin: [WARN] Config file doesn't exist: /home/pruzicka/.packerconfig
2020/02/20 13:55:40 packer-builder-qemu plugin: Setting cache directory: /home/pruzicka/git/packer-templates/packer_cache
2020/02/20 13:55:40 packer-builder-qemu plugin: args: []string{"packer-builder-qemu"}
2020/02/20 13:55:40 packer-builder-qemu plugin: Plugin address: unix /tmp/packer-plugin603693202
2020/02/20 13:55:40 packer-builder-qemu plugin: Waiting for connection...
2020/02/20 13:55:40 Received unix RPC address for /tmp/packer: addr is /tmp/packer-plugin603693202
2020/02/20 13:55:40 packer-builder-qemu plugin: Serving a plugin connection...
2020/02/20 13:55:40 Preparing build: qemu
2020/02/20 13:55:40 packer-builder-qemu plugin: use detected accelerator: kvm
2020/02/20 13:55:40 packer-builder-qemu plugin: MemorySize 0 is too small, using default: 512
2020/02/20 13:55:40 packer-builder-qemu plugin: CpuCount 0 too small, using default: 1
2020/02/20 13:55:40 [INFO] (telemetry) Finalizing.
Template validated successfully.
2020/02/20 13:55:41 waiting for all plugin processes to complete...
2020/02/20 13:55:41 /tmp/packer: plugin process exited
Overview of the Issue
I'm getting
no checksum founderror when using proper values iniso_checksum_urlandiso_urls generatesReproduction Steps
Packer version
Simplified Packer Buildfile
{ "builders": [ { "vm_name": "test", "type": "qemu", "ssh_username": "root", "iso_checksum_type": "sha256", "iso_checksum_url": "http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/SHA256SUMS", "iso_urls": "http://archive.ubuntu.com/ubuntu/dists/bionic-updates/main/installer-amd64/current/images/netboot/mini.iso" } ] }Operating system and Environment details
Fedora 31
Log Fragments and crash.log files
When I use packer
1.5.1everything is working fine: