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

Migration: Forward migration errors (from Incus) #13966

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

boltmark
Copy link
Contributor

@boltmark boltmark commented Aug 22, 2024

This PR adds functionality to report source errors during copy. This helps to solve the issue of the incorrect error being reported when a live migration is attempted while migration.stateful is missing or set to false.

(Also rectifies a few unchecked type assertions in client/lxd_instances.go since the linter complained)

Closes #11948.

lxd/instance/drivers/driver_qemu.go Outdated Show resolved Hide resolved
lxd/instance/drivers/driver_qemu.go Outdated Show resolved Hide resolved
@boltmark boltmark force-pushed the forward-migration-err branch 2 times, most recently from a4622fb to dc91860 Compare August 23, 2024 00:10
lxd/migrate_instance.go Outdated Show resolved Hide resolved
Copy link
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.

Overall this looks encouraging @boltmark thanks!

lxd/migrate.go Outdated Show resolved Hide resolved
lxd/migrate.go Outdated Show resolved Hide resolved
@boltmark boltmark force-pushed the forward-migration-err branch 4 times, most recently from 82d24c1 to f249c75 Compare August 28, 2024 00:22
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
(cherry picked from commit 47310d37446077f9606705a6736952fae1ae5869)
Signed-off-by: Mark Bolton <mark.bolton@canonical.com>
License: Apache-2.0
@boltmark boltmark changed the title Migration: Forward migration errors Migration: Forward migration errors (from Incus) Aug 28, 2024
@boltmark
Copy link
Contributor Author

@tomponline I've updated this PR to cherry-pick the incus fix. Marking as ready.

@boltmark boltmark marked this pull request as ready for review August 28, 2024 20:37
Signed-off-by: Mark Bolton <mark.bolton@canonical.com>
@tomponline tomponline merged commit 4633da9 into canonical:main Aug 29, 2024
29 checks passed
hamistao pushed a commit to hamistao/lxd that referenced this pull request Aug 30, 2024
This PR adds functionality to report source errors during copy. This
helps to solve the issue of the incorrect error being reported when a
live migration is attempted while `migration.stateful` is missing or set
to false.

(Also rectifies a few unchecked type assertions in
`client/lxd_instances.go` since the linter complained)

Closes canonical#11948.
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

Successfully merging this pull request may close these issues.

Return migration errors to client correctly
4 participants