This is not a regression, it can be found with kernel on Trusty in cycle sru-20221114
Test failed with:
ubuntu-cloudimg-query is /usr/bin/ubuntu-cloudimg-query
wget is /usr/bin/wget
failed to get https://cloud-images.ubuntu.com/query/trusty/server/daily-dl.current.txt
There is no download available for release=trusty, stream=daily, arch=amd64
lxc_container: lxccontainer.c: create_run_template: 1092 container creation template for 2dcd9e61-a9cc-4a2c-afac-60433e791cae failed
lxc_container: lxc_create.c: main: 274 Error creating container 2dcd9e61-a9cc-4a2c-afac-60433e791cae
Failed creating ubuntu-cloud container
Look into the lxc-test-ubuntu code (/usr/bin/lxc-test-ubuntu):
for template in ubuntu ubuntu-cloud; do
# need a different name for each container so dnsmasq doesn't
# mess us up with its caching
if which uuidgen 2>&1 > /dev/null; then
name=$(uuidgen)
else
name=lxc-test-$template
fi
This is not a regression, it can be found with kernel on Trusty in cycle sru-20221114
Test failed with: cloudimg- query is /usr/bin/ ubuntu- cloudimg- query /cloud- images. ubuntu. com/query/ trusty/ server/ daily-dl. current. txt run_template: 1092 container creation template for 2dcd9e61- a9cc-4a2c- afac-60433e791c ae failed a9cc-4a2c- afac-60433e791c ae
ubuntu-
wget is /usr/bin/wget
failed to get https:/
There is no download available for release=trusty, stream=daily, arch=amd64
lxc_container: lxccontainer.c: create_
lxc_container: lxc_create.c: main: 274 Error creating container 2dcd9e61-
Failed creating ubuntu-cloud container
Look into the lxc-test-ubuntu code (/usr/bin/ lxc-test- ubuntu) :
for template in ubuntu ubuntu-cloud; do $(uuidgen) lxc-test- $template
# need a different name for each container so dnsmasq doesn't
# mess us up with its caching
if which uuidgen 2>&1 > /dev/null; then
name=
else
name=
fi
lxc-create -t $template -n $name || FAIL "creating $template container"
you will see it's failing with template= ubuntu- cloud at the lxc-create command.
The file, https:/ /cloud- images. ubuntu. com/query/ trusty/ server/ daily-dl. current. txt exists, however if you try to wget it, you will see:
$ wget https:/ /cloud- images. ubuntu. com/query/ trusty/ server/ daily-dl. current. txt /cloud- images. ubuntu. com/query/ trusty/ server/ daily-dl. current. txt ubuntu. com (cloud- images. ubuntu. com)... 185.125.190.37, 185.125.190.40, 2620:2d:4000:1::17, ... ubuntu. com (cloud- images. ubuntu. com)|185. 125.190. 37|:443. .. connected. ubuntu. com's certificate, issued by '/C=US/O=Let\'s Encrypt/CN=R3': ubuntu. com insecurely, use `--no-check- certificate' .
--2023-02-24 16:08:41-- https:/
Resolving cloud-images.
Connecting to cloud-images.
ERROR: cannot verify cloud-images.
Issued certificate has expired.
To connect to cloud-images.
We might need to find a way to update the certificate. Otherwise we will need to find a way to pass that "--no-check- certificate" flag to wget.