summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-02-25 12:00:05 +0000
committerDaniel P. Berrange <berrange@redhat.com>2013-02-25 12:01:23 +0000
commitea07be64a455caa19e5088639cad70ee0e4e91fb (patch)
tree73216b7afae9c71815105c39cd5e3b9ef2177ade /nova/utils.py
parent42d058b2a1364266560dcd0aa205e743741d0a41 (diff)
downloadnova-ea07be64a455caa19e5088639cad70ee0e4e91fb.tar.gz
nova-ea07be64a455caa19e5088639cad70ee0e4e91fb.tar.xz
nova-ea07be64a455caa19e5088639cad70ee0e4e91fb.zip
Run libguestfs API calls in a thread pool
The libguestfs API is a binding to a native C library, and thus it will block greenthreads. To avoid this all libguestfs API calls need to be run in a threadpool. This can be done by just wrapping the GuestFS object in an eventlet.tpool.Proxy object Fixes bug #1132742 Change-Id: I877ad9e88442e41c9ad234503d9b1ddf1fb27408 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions