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

libvirt: Wrap un-proxied listDevices() and listAllDevices() #144

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

priteau
Copy link
Member

@priteau priteau commented Jan 20, 2025

This is similar to change I668643c836d46a25df46d4c99a973af5e50a39db where the objects returned in a list from a libvirt call were not tpool.Proxy wrapped. Because the objects are not wrapped, calling methods on them such as listCaps() can block all other greenthreads and can cause nova-compute to freeze for hours in certain scenarios.

This adds the same wrapping to libvirt calls which return lists of virNodeDevice.

Closes-Bug: #2091033

Change-Id: I60d6f04d374e9ede5895a43b7a75e955b0fea3c5 (cherry picked from commit f304b9e)

@priteau priteau requested a review from a team as a code owner January 20, 2025 21:39
@priteau priteau requested review from darmach and mnasiadka January 20, 2025 21:40
@priteau priteau self-assigned this Jan 20, 2025
This is similar to change I668643c836d46a25df46d4c99a973af5e50a39db
where the objects returned in a list from a libvirt call were not
tpool.Proxy wrapped. Because the objects are not wrapped, calling
methods on them such as listCaps() can block all other greenthreads
and can cause nova-compute to freeze for hours in certain scenarios.

This adds the same wrapping to libvirt calls which return lists of
virNodeDevice.

Closes-Bug: #2091033

Change-Id: I60d6f04d374e9ede5895a43b7a75e955b0fea3c5
(cherry picked from commit f304b9e)
@priteau priteau force-pushed the nova-bug-2091033-antelope branch from 3190f23 to 3c88b76 Compare January 21, 2025 08:33
@priteau priteau merged commit 5e5ed11 into stackhpc/2023.1 Jan 21, 2025
3 checks passed
@priteau priteau deleted the nova-bug-2091033-antelope branch January 21, 2025 08:58
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.

3 participants