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

Operation wait extension #12380

Merged
merged 2 commits into from
Oct 14, 2023
Merged

Conversation

markylaing
Copy link
Contributor

#12349 introduced to the client the concept of waiting for an operation to complete via the operation wait endpoint rather than using the events websocket. This is used for InstanceExec and InstanceConsole.

Unfortunately this did not work for VMs as the lxd-agent did not contain the operation wait endpoint. This was fixed in #12372, but this fix will not work for older versions of the lxd-agent. This change introduces an API extension for the change so that we can check if the operation wait endpoint exists before choosing how to handle waiting for the operation.

@markylaing markylaing self-assigned this Oct 13, 2023
@markylaing markylaing added the Bug Confirmed to be a bug label Oct 13, 2023
@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Oct 13, 2023
client/lxd_instances.go Outdated Show resolved Hide resolved
client/lxd_instances.go Outdated Show resolved Hide resolved
@markylaing markylaing force-pushed the operation-wait-extension branch from 52e07ba to 9e2fbf9 Compare October 13, 2023 11:47
doc/api-extensions.md Outdated Show resolved Hide resolved
Signed-off-by: Mark Laing <mark.laing@canonical.com>
…o events API.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
@markylaing markylaing force-pushed the operation-wait-extension branch from 9e2fbf9 to 5aeb90c Compare October 13, 2023 13:28
@tomponline tomponline merged commit f0d733c into canonical:main Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Changes to the REST API Bug Confirmed to be a bug Documentation Documentation needs updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants