-
Notifications
You must be signed in to change notification settings - Fork 933
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
Image export over devlxd for virtual machines #13878
Conversation
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 <[email protected]>
Additionally, specify field names in hander structs. Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Mark Laing <[email protected]>
…for VMs. Signed-off-by: Mark Laing <[email protected]>
Signed-off-by: Mark Laing <[email protected]>
Heads up @ru-fu - the "Documentation" label was applied to this issue. |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Associated test PR: canonical/lxd-ci#255 |
#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
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 thesecurity.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