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

lxd-agent: Adds an operation wait endpoint to fix VM exec operations #12372

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

markylaing
Copy link
Contributor

@markylaing markylaing commented Oct 12, 2023

After recent changes to the client in #12349, when calling ExecInstance we wait for the operation to complete by directly calling the operation wait endpoint instead of listening for the event.

When calling exec on a VM, the client is used to connect with the LXD agent via vsock. This was failing with a 404 because the endpoint didn't exist.

After recent changes to the client in canonical#12349, when calling ExecInstance
we wait for the operation to complete by directly calling the operation
wait endpoint instead of listening for the event.

When calling exec on a VM, the client is used to connect with the LXD
agent via vsock. This was failing with a 404 because the
endpoint didn't exist.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
@tomponline tomponline changed the title lxd-agent: Adds an operation wait endpoint. lxd-agent: Adds an operation wait endpoint Oct 12, 2023
@tomponline tomponline changed the title lxd-agent: Adds an operation wait endpoint lxd-agent: Adds an operation wait endpoint to fix VM exec operations Oct 12, 2023
Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

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

It tested fine after you showed me how to update the lxd-agent copy of the VM, thanks!

@tomponline tomponline merged commit 8158186 into canonical:main Oct 12, 2023
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants