Why do alias from lxc images not exist for pylxd

,

When I list images with the CLI get alias names like: debian/9

lxc image list images: | grep debian
| debian/9 (7 more)                    | a5fbde1fe83b | yes    | Debian stretch amd64 (20210513_15:32)        | x86_64       | CONTAINER       | 65.87MB   | May 13, 2021 at 12:00am (UTC) |

When I try to check if they exist with pylxd they don’t.

>>> c = pylxd.Client("https://images.linuxcontainers.org")
>>> c.images.exists("debian/9", alias=True)
False

Why is that the case?

Most likely because pylxd doesn’t use simplestreams to query that image server but instead uses the LXD protocol (what we used prior to simplestreams).

In that case, the aliases must include the architecture name, so debian/9/amd64 should work in this case.