E569
Skip to content

Image export over devlxd for virtual machines#13878

Merged
tomponline merged 5 commits intocanonical:mainfrom
markylaing:vm-devlxd-image-export
Aug 6, 2024
Merged

Image export over devlxd for virtual machines#13878
tomponline merged 5 commits intocanonical:mainfrom
markylaing:vm-devlxd-image-export

Conversation

@markylaing
Copy link
Copy Markdown
Contributor
@markylaing markylaing commented Aug 5, 2024

Adds an endpoint to the LXD agent /dev/lxd socket listener that proxies requests to /1.0/images/{fingerprint}/export on the host LXD devlxd listener.

Additionally cleans up lxd-agent/devlxd.go and moves the security.devlxd.images config key from the container specific config key map into the shared container/VM config key map and regenerates the metadata.

I just worked on this to speed up my local test runs :)

Closes #12589

Single letter or abbreviated variable names should only be used in small
scopes and not in struct fields (see
https://google.github.io/styleguide/go/decisions.html#single-letter-variable-names).

Signed-off-by: Mark Laing <mark.laing@canonical.com>
Additionally, specify field names in hander structs.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
…for VMs.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
Signed-off-by: Mark Laing <mark.laing@canonical.com>
@markylaing markylaing self-assigned this Aug 5, 2024
@github-actions github-actions bot added the Documentation Documentation needs updating label Aug 5, 2024
@github-actions
Copy link
Copy Markdown
github-actions bot commented Aug 5, 2024

Heads up @ru-fu - the "Documentation" label was applied to this issue.

Copy link
Copy Markdown
Member
@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

Please could we have an update to lxd-ci as well to catch regressions. Ta

Copy link
Copy Markdown
Member
@tomponline tomponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tomponline tomponline merged commit da24dfd into canonical:main Aug 6, 2024
@markylaing
Copy link
Copy Markdown
Contributor Author

LGTM thanks!

Please could we have an update to lxd-ci as well to catch regressions. Ta

Associated test PR: canonical/lxd-ci#255

tomponline added a commit that referenced this pull request Nov 11, 2024
#13878 Added `security.devlxd.images` for virtual machines but this key
was not live-updatable. There was no particular reason for this. The
endpoint is always available in the LXD agent and access is restricted
by the host daemon.

This PR allows the config key to be set while the instance is running.

Closes #14206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation needs updating

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for security.devlxd.images on VMs

2 participants

0