Skip to content

Fix dependent volume flag removal during same-host storage moves - #3138

Merged
stgraber merged 3 commits into
lxc:mainfrom
presztak:mv_dependent_fix
Apr 2, 2026
Merged

stgraber merged 3 commits into
lxc:mainfrom
presztak:mv_dependent_fix

Conversation

@presztak

@presztak presztak commented Apr 2, 2026

Copy link
Copy Markdown
Member

Previously, when moving an instance to a different storage on the same host, removing the instance would also clear the dependent flag on associated volumes. This was incorrect because the instance is recreated on the new storage and dependent volumes should not be modified during this workflow.

This PR introduces a new boolean argument cleanupDependencies, to control whether dependent resources are removed/updated during instance deletion.

Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
@presztak
presztak requested a review from stgraber as a code owner April 2, 2026 10:24
presztak added 2 commits April 2, 2026 16:24
Introduce a new boolean argument, cleanupDependencies, to control
whether dependent resources are updated when removing a device.

Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
โ€ฆRemove

Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
@stgraber
stgraber enabled auto-merge April 2, 2026 14:46
@stgraber
stgraber merged commit 662bd71 into lxc:main Apr 2, 2026
157 of 160 checks passed
@presztak
presztak deleted the mv_dependent_fix branch April 3, 2026 07:46
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