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

Storage: Fix refresh of zfs backed VM volumes (from Incus) #13305

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

roosterfish
Copy link
Contributor

From lxc/incus#517.
Fixes #13304.

The ZFS logic has most of its functions call themselves with the filesystem datset after processing the block volume for virtual machines.

This is usually correct, but in the case of receiving a refresh stream, we specifically want to handle the snapshot rollback separately for both volumes.

(cherry picked from commit 2fc95eb5ef355ad507d4369b355b687713f920f9)

License: Apache-2.0

The ZFS logic has most of its functions call themselves with the
filesystem datset after processing the block volume for virtual
machines.

This is usually correct, but in the case of receiving a refresh stream,
we specifically want to handle the snapshot rollback separately for both
volumes.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
(cherry picked from commit 2fc95eb5ef355ad507d4369b355b687713f920f9)
Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
License: Apache-2.0
@tomponline tomponline changed the title Storage: Fix refresh of zfs backed VM volumes Storage: Fix refresh of zfs backed VM volumes (from Incus) Apr 11, 2024
@tomponline
Copy link
Member

@roosterfish thanks! Did you confirm this is an issue and that this fixes it in your own tests?

@roosterfish
Copy link
Contributor Author

@roosterfish thanks! Did you confirm this is an issue and that this fixes it in your own tests?

Yes it also affects us and is resolved by the fix. I'll push an addition to the lxd-ci tests next.

@tomponline
Copy link
Member

Yes it also affects us and is resolved by the fix. I'll push an addition to the lxd-ci tests next.

Excellent work thanks!

@tomponline tomponline merged commit 76ea9ec into canonical:main Apr 11, 2024
28 checks passed
@roosterfish roosterfish deleted the fix_zfs_snap branch April 11, 2024 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants