Skip to content

Conversation

benjamreis
Copy link
Contributor

Raising during detach call can leak a tapdisk process that will cause trouble later.

@benjamreis
Copy link
Contributor Author

Issue found in our Linstor Driver that also applies to this one AFAWCU.

@benjamreis benjamreis force-pushed the lvhd-detach-not-raise branch from a443269 to 9f34882 Compare October 17, 2023 14:37
@benjamreis benjamreis changed the title Ensure we can detach when deflate call is not possible lvutil: Ensure we can detach when deflate call is not possible Oct 17, 2023
try:
detachThinImpl(session, lvmCache, srUuid, vdiUuid)
except Exception as e:
util.SMlog('Failed to detach properly VDI {}: {}'.format(vdiUuid, e))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is preferred to use f-string for new things now that the code is python3

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Raising during detach call can leak a tapdisk process
that will cause trouble later.

Signed-off-by: BenjiReis <[email protected]>
@benjamreis benjamreis force-pushed the lvhd-detach-not-raise branch from 9f34882 to f3c4bfd Compare November 30, 2023 07:55
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.

2 participants