nova/nova/tests/unit/virt/disk
Matt Riedemann e521616afd Don't launch guestfs in a thread pool if guestfs.debug is enabled
When guestfs.debug is enabled, we're handling callback events
from guestfs and logging them at debug level. When guestfs
is launched to inspect capabilities, that is currently done
in an eventlet thread pool. Because of the concurrent logging
along with the eventlet thread, we can hit an issue where eventlet
tries to switch threads and fails and then we hang the launch
call to guestfs, which hangs creating an instance.

This change simply avoids using a thread pool to launch guestfs
if guestfs.debug is True.

Change-Id: I0ffe93a031154b123c8beff96a695df5a280b935
Closes-Bug: #1737214
(cherry picked from commit 7c30da1384)
2018-01-31 14:07:25 +00:00
..
mount Port virt.disk.mount.test_nbd to Python 3 2016-12-08 10:15:41 +08:00
vfs Don't launch guestfs in a thread pool if guestfs.debug is enabled 2018-01-31 14:07:25 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_api.py Stop using mox in unit/virt/disk/test_api.py 2017-03-09 20:17:52 +07:00
test_inject.py Stop using mox stubs in nova/tests/unit/virt/disk 2016-11-21 20:39:26 +09:00