The image transfer is unnecessary complicated and buggy. When
transferring streamOptimized images we have to update the progress of
the NFC lease to prevent timeouts.
This patch replaces the complex usage of blocking queues and threads with
a simple read+write loop. It has the same performance and the code is
much cleaner. The NFC lease is updated with the loopingcall utility.
Reviewed: https:/ /review. openstack. org/322681 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f60a6d1c9d8 d1c8e4bba1db48d e070dd5c9b22a8
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit f60a6d1c9d8d1c8 e4bba1db48de070 dd5c9b22a8
Author: Radoslav Gerganov <email address hidden>
Date: Wed Feb 17 10:35:59 2016 +0200
VMware: Refactor the image transfer
The image transfer is unnecessary complicated and buggy. When
transferring streamOptimized images we have to update the progress of
the NFC lease to prevent timeouts.
This patch replaces the complex usage of blocking queues and threads with
a simple read+write loop. It has the same performance and the code is
much cleaner. The NFC lease is updated with the loopingcall utility.
Closes-Bug: #1546454 2a2a5c4b7d28518 12bef60d2ff 8421fc38602cc1e 5145b46ff4)
Closes-Bug: #1278690
Related-Bug: #1495429
Change-Id: I96e8e0682bcc64
(cherry picked from commit 2df83abaa0a5c82