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

lvutil: Ensure we can detach when deflate call is not possible #649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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 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 <benjamin.reis@vates.fr>
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.

None yet

2 participants