Skip to content

incusd/storage/linstor: Propagate error when volume filler fails#2971

Merged
stgraber merged 1 commit intolxc:mainfrom
luissimas:fix-linstor-fill-error-handling
Feb 25, 2026
Merged

incusd/storage/linstor: Propagate error when volume filler fails#2971
stgraber merged 1 commit intolxc:mainfrom
luissimas:fix-linstor-fill-error-handling

Conversation

@luissimas
Copy link
Copy Markdown
Contributor

The current implementation was incorrectly suppressing errors that
occurred in the filler function when creating volumes via the Linstor
driver.

When any error ocurred in the filler function, the reversion logic would
delete the volume, but the return nil would signal to the caller that
the operation succeeded, causing a "Resource definition not found" error
when performing any subsequent Linstor operations on the volume.

Signed-off-by: Luís Simas [email protected]

The current implementation was incorrectly suppressing errors that
occurred in the filler function when creating volumes via the Linstor
driver.

When any error ocurred in the filler function, the reversion logic would
delete the volume, but the return nil would signal to the caller that
the operation succeeded, causing a "Resource definition not found" error
when performing any subsequent Linstor operations on the volume.

Signed-off-by: Luís Simas <[email protected]>
@luissimas luissimas requested a review from stgraber as a code owner February 24, 2026 20:05
@luissimas
Copy link
Copy Markdown
Contributor Author

Most likely the cause to #2964

@stgraber stgraber merged commit 39f9010 into lxc:main Feb 25, 2026
157 of 160 checks passed
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