Snapshot: offload glance upload in a native thread
Execute glance upload in a native thread as it may block the current
coroutine until it completes.
Despite the fact we use eventlet monkey_patching [1] to achieve cooperative
yielding for network IO, file IO on busy file system may still get
nova-compute hanging.
Stick those IO in a native thread using eventlet tpool.execute() [2]
avoid this issue.
Reviewed: https:/ /review. opendev. org/734776 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=be9b7358473 ca5276cff3c6491 f88cd512d118b8
Committed: https:/
Submitter: Zuul
Branch: master
commit be9b7358473ca52 76cff3c6491f88c d512d118b8
Author: Alexandre Arents <email address hidden>
Date: Tue Jun 9 14:17:37 2020 +0000
Snapshot: offload glance upload in a native thread
Execute glance upload in a native thread as it may block the current
coroutine until it completes.
Despite the fact we use eventlet monkey_patching [1] to achieve cooperative
yielding for network IO, file IO on busy file system may still get
nova-compute hanging.
Stick those IO in a native thread using eventlet tpool.execute() [2]
avoid this issue.
[1] https:/ /eventlet. net/doc/ patching. html /eventlet. net/doc/ threading. html
[2] https:/
Closes-Bug: #1874032 9aab4f2bb500fcc fbde4190726
Change-Id: I8dbc579e003796