Skip to content

Client-side near-live migration - #3754

Merged
stgraber merged 4 commits into
lxc:mainfrom
presztak:client_nearlive
Aug 2, 2026
Merged

stgraber merged 4 commits into
lxc:mainfrom
presztak:client_nearlive

Conversation

@presztak

Copy link
Copy Markdown
Member

Near-live migration for the cluster <-> cluster case.

Part of: #3059

@presztak
presztak marked this pull request as ready for review July 31, 2026 15:59
@presztak
presztak requested a review from stgraber as a code owner July 31, 2026 15:59
Comment thread cmd/incus/move_nearlive.go Resolved
Comment thread cmd/incus/move_nearlive.go Resolved
Comment thread cmd/incus/move_nearlive.go Resolved
Comment thread cmd/incus/move_nearlive.go Resolved
Comment thread cmd/incus/move_nearlive.go Resolved
Comment thread cmd/incus/move_nearlive.go Resolved
@stgraber

stgraber commented Aug 1, 2026

Copy link
Copy Markdown
Member

Logic generally seems fine but the over-use of small functions actually makes it harder for me to follow and understand the flow.

The use of functions and const all makes sense if they're called multiple times (we don't want to duplicate code or const) but it's not the case here and it just makes it harder to follow.

@presztak
presztak requested a review from stgraber August 1, 2026 10:34
Comment thread cmd/incus/copy.go Resolved
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…inal sync

In near-live migration, dependent volumes are handled separately
during the third pass. Including them in the final sync is
redundant and should be prevented.

Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
@stgraber

stgraber commented Aug 2, 2026

Copy link
Copy Markdown
Member

@presztak in your follow-up PR can you add system testing for this stuff? It should be possible to test it easily enough when running the testsuite on ZFS or btrfs.

@stgraber
stgraber merged commit 6c24cc4 into lxc:main Aug 2, 2026
57 checks passed
@presztak
presztak deleted the client_nearlive branch August 3, 2026 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants