VMware: specify chunk size when reading image data
When reading OVA image data from Glance without specifying chunk size,
nova-compute tries to read the entire tar stream in memory because this
is how the tar fileobject is implemented. This patch fixes this by
specifying the chunk size to be 64KB.
Change-Id: I953dfa1c28c25886306e1c9afe281cf2faca4db5
Closes-Bug: #1495834
(cherry picked from commit 71d2d31b9b86df4071c3728666842eec6cd1c727)
Reviewed: https:/ /review. openstack. org/266096 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=51bfbbd8291 6f08daa97ae3ab7 400ec581571105
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit 51bfbbd82916f08 daa97ae3ab7400e c581571105
Author: Radoslav Gerganov <email address hidden>
Date: Tue Oct 6 16:01:45 2015 +0300
VMware: specify chunk size when reading image data
When reading OVA image data from Glance without specifying chunk size,
nova-compute tries to read the entire tar stream in memory because this
is how the tar fileobject is implemented. This patch fixes this by
specifying the chunk size to be 64KB.
Change-Id: I953dfa1c28c258 86306e1c9afe281 cf2faca4db5 071c3728666842e ec6cd1c727)
Closes-Bug: #1495834
(cherry picked from commit 71d2d31b9b86df4