Pass the size when fetching image in xenapi driver
In commit 6e287c0f2bb7d4994d50f1763f412277e4dac6f7 the fetch_to_raw
method was changed to accept the volume size so it can fail when the
image doesn't fit in the destination volume. In this commit we also
updated all the volume drivers to pass the volume size to that method so
it could perform the check. The xenapi driver missed that change.
This commit updates the xenapi driver to pass the volume size when
fetching the image to enable the introduced check.
Change-Id: I89bc4b3b1c1e6b06f5c529166cf9ffa1fe600c96
Related-Bug: #1235358
(cherry picked from commit c4db75abddbb72ac5f717f6a9266e078b69206a8)
Reviewed: https:/ /review. openstack. org/58785 github. com/openstack/ cinder/ commit/ 704b72c09f6ffce 83f3adc0024f6ca 22e26f60bc
Committed: http://
Submitter: Jenkins
Branch: stable/havana
commit 704b72c09f6ffce 83f3adc0024f6ca 22e26f60bc
Author: Xavier Queralt <email address hidden>
Date: Fri Nov 22 10:39:37 2013 +0100
Pass the size when fetching image in xenapi driver
In commit 6e287c0f2bb7d49 94d50f1763f4122 77e4dac6f7 the fetch_to_raw
method was changed to accept the volume size so it can fail when the
image doesn't fit in the destination volume. In this commit we also
updated all the volume drivers to pass the volume size to that method so
it could perform the check. The xenapi driver missed that change.
This commit updates the xenapi driver to pass the volume size when
fetching the image to enable the introduced check.
Change-Id: I89bc4b3b1c1e6b 06f5c529166cf9f fa1fe600c96 c5f717f6a9266e0 78b69206a8)
Related-Bug: #1235358
(cherry picked from commit c4db75abddbb72a