lxc: Failure to download images
Originated from here: https://forum.turris.cz/t/create-lxc-container/13560
Steps to reproduce:
- Run
lxc-create -t download -n <name>
- Select a distribution, release and archicture.
Expected results:
The selected image is downloaded and used to create a container.
Actual result:
It fails with the following error:
ERROR: Failed to download <IMAGE_URL>
lxc-create: <name>: lxccontainer.c: create_run_template: 1617 Failed to create container from template
lxc-create: <name>: tools/lxc_create.c: main: 327 Failed to create container <name>
Tested with ArchLinux/latest/armv7l
and Debian/Buster/armv7l
with the same results. As investigated by both capturing the communication and checking the webserver's log, it sends an HTTP request first which is redirected to HTTPS by 301 and then it repeats it with an HTTPS request (via TLS 1.3). The webserver logs these requests as successful and probably all data is transferred but at the client side it is treated as failure.