forked from openstack/nova
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libvirt: Wrap un-proxied listDevices() and listAllDevices()
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)
- Loading branch information
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/unproxied-libvirt-list-devices-7cd218c1a33535c9.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fixes: | ||
- | | ||
`Bug #2091033`_: Fixed calls to libvirt ``listDevices()`` and | ||
``listAllDevices()`` from potentially blocking all other greenthreads | ||
in ``nova-compute``. Under certain circumstances, it was possible for | ||
the ``nova-compute`` service to freeze with all other greenthreads | ||
blocked and unable to perform any other activities including logging. | ||
This issue has been fixed by wrapping the libvirt ``listDevices()`` | ||
and ``listAllDevices()`` calls with ``eventlet.tpool.Proxy``. | ||
.. _Bug #2091033: https://bugs.launchpad.net/nova/+bug/2091033 |