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

fix(vm): close libvirt connections #2392

Merged
merged 2 commits into from
Oct 15, 2024
Merged

fix(vm): close libvirt connections #2392

merged 2 commits into from
Oct 15, 2024

Conversation

kmd-fl
Copy link
Contributor

@kmd-fl kmd-fl commented Oct 9, 2024

Description

Close libvirt connection when we're done.

Motivation

We found a problem with Too many files on one of our provider's machines when deploying a deal on it: the nox process has too many open eventfd connections. Further investigation showed that the problem is that the Connection struct of the virt crate doesn't implement Drop, so the connection isn't closed.

Proposed Changes

Auto-close connection.

@kmd-fl kmd-fl requested a review from mikevoronov October 9, 2024 10:07
@kmd-fl kmd-fl added the e2e Run e2e workflow label Oct 9, 2024
Copy link
Member

@mikevoronov mikevoronov left a comment

Choose a reason for hiding this comment

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

utACK

@kmd-fl kmd-fl merged commit 944b4b6 into master Oct 15, 2024
20 checks passed
@kmd-fl kmd-fl deleted the fix-libvirt-conn branch October 15, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants