Juju bootstrap for lxd: cannot start bootstrap instance in availability zone : no matching image found

juju bootstrap localhost throws an error. failed to bootstrap model: cannot start bootstrap instance in availability zone : no matching image found

Is anything to with corporate network? Since I am able to bootstrap with my personal laptop.

Any help would be much appreciated. Thankyou !

$ lxd version 5.14

$ sudo snap install --channel 2.9/stable juju --classic

juju (2.9/stable) 2.9.42 from Canonical✓ installed

$ juju clouds

Cloud Regions Default Type Credentials Source Description

localhost 1 localhost lxd 1 built-in LXD Container Hypervisor

$ juju bootstrap localhost lxd-controller --debug --bootstrap-series=focal

00:22:18 DEBUG juju.cloudconfig.instancecfg instancecfg.go:923 Setting numa ctl preference to false 00:22:18 DEBUG juju.environs imagemetadata.go:119 obtained image datasource “default ubuntu cloud images” 00:22:18 DEBUG juju.container.lxd connection.go:197 LXD requires https://, using: https://cloud-images.ubuntu.com/releases

00:22:19 ERROR juju.cmd.juju.commands bootstrap.go:885 failed to bootstrap model: cannot start bootstrap instance in availability zone “lxdhostmachine”: no matching image found

I am able to access https://cloud-images.ubuntu.com/releases without an issue.

Does lxc launch ubuntu:20.04 work from the same terminal as running the juju bootstrap command?

I have a vanilla ubuntu 23.04 machine which I have used juju on yet and I’m unable to reproduce the issue today. There have been some intermittent issues with availability of cloud images.

Hi… Yes, lxc launch ubuntu:20.04 is working fine.

$ lxc image list

±------±-------------±-------±--------------------------------------------±-------------±----------±---------±------------------------------+ | ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE | ±------±-------------±-------±--------------------------------------------±-------------±----------±---------±------------------------------+

| | 3f04ed906801 | no | ubuntu 20.04 LTS amd64 (daily) (20230612) | x86_64 | CONTAINER | 436.65MB | Jun 13, 2023 at 12:02pm (UTC) | ±------±-------------±-------±--------------------------------------------±-------------±----------±---------±------------------------------+

| | 884a62161ef5 | no | ubuntu 20.04 LTS amd64 (release) (20230606) | x86_64 | CONTAINER | 436.66MB | Jun 14, 2023 at 6:40pm (UTC) | ±------±-------------±-------±--------------------------------------------±-------------±----------±---------±------------------------------+

I am also suspecting corporate network makes cloud images are not available while accessing https://cloud-images.ubuntu.com/releases.

But curl command for this url is working fine. Not sure how to debug this issue.

As mentioned above juju urls were blocked in the firewall.