]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Pass the size when fetching image in xenapi driver
authorXavier Queralt <xqueralt@redhat.com>
Fri, 22 Nov 2013 09:39:37 +0000 (10:39 +0100)
committerXavier Queralt <xqueralt@redhat.com>
Fri, 22 Nov 2013 09:39:37 +0000 (10:39 +0100)
commitc4db75abddbb72ac5f717f6a9266e078b69206a8
treeecade353fe1fc3159cbdd126921fdc61def9a2fd
parent653c403b047822e3a4b270c78218142d1ec33347
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
cinder/tests/test_xenapi_sm.py
cinder/volume/drivers/xenapi/sm.py