Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any plans to support simplestream in pylxd #494

Open
fliiiix opened this issue Nov 19, 2021 · 0 comments
Open

Are there any plans to support simplestream in pylxd #494

fliiiix opened this issue Nov 19, 2021 · 0 comments

Comments

@fliiiix
Copy link
Contributor

fliiiix commented Nov 19, 2021

Reason for this is the official mirror is simple stream

see this example which fails:

import pylxd

def __get_remote_image_fingerprint(remote, image_name):
    image_fingerprint = image_name
    if remote:
        remote_client = pylxd.Client(remote)
    else:
        remote_client = pylxd.Client()
    if remote_client.images.exists(image_name, alias=True):
        image_fingerprint = remote_client.images.get_by_alias(image_name).fingerprint
    else:
        if not remote_client.images.exists(image_name):
            raise LxdImageNotFoundError(
                "Image '{}' not found on server '{}'".format(image_name, remote)
            )
    return image_fingerprint


remote = "https://images.linuxcontainers.org"
image_name = "debian/buster/i386"

__get_remote_image_fingerprint(remote, image_name)

And https://discuss.linuxcontainers.org/t/problem-with-the-uk-mirror/12632 for more context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant