commit 1414c3fa8e12604a35e2c299dcac13830a419aaf
Author: Edward Hope-Morley <email address hidden>
Date: Mon Aug 19 14:22:11 2013 +0100
Add rbd store support for zero size image
If glanceclient does not provide image size to RBD store add() it
will create a zero-size image and fail when writing to it. If
provided with zero size we now work out the size of each chunk
being written and resize the rbd image prior to each write. This
will be much slower than if new the image size on create but it
will at least work.
There is a corresponding glanceclient fix to ensure content-length
is set if known by the glanceclient, see bug 1220197
Reviewed: https:/ /review. openstack. org/42640 github. com/openstack/ glance/ commit/ 1414c3fa8e12604 a35e2c299dcac13 830a419aaf
Committed: http://
Submitter: Jenkins
Branch: master
commit 1414c3fa8e12604 a35e2c299dcac13 830a419aaf
Author: Edward Hope-Morley <email address hidden>
Date: Mon Aug 19 14:22:11 2013 +0100
Add rbd store support for zero size image
If glanceclient does not provide image size to RBD store add() it
will create a zero-size image and fail when writing to it. If
provided with zero size we now work out the size of each chunk
being written and resize the rbd image prior to each write. This
will be much slower than if new the image size on create but it
will at least work.
There is a corresponding glanceclient fix to ensure content-length
is set if known by the glanceclient, see bug 1220197
Change-Id: I014c4b71c77c92 b9876786d1ba438 cdb90f83233
Fixes: bug #1213880