Red Hat Bugzilla – Bug 970558
creation of a bootable volume from an image does not honor size parameter
Last modified: 2016-04-26 19:20:44 EDT
Description of problem:
volumes created from glance images are saved on database with using the size passed as argument but the actual image file does not get resized accordingly
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create an image in glace
2. crate a volume from such an image and pass "1" as volume size
the volume will be reported as of 1Gb but the actual file in the filesystem will match instead the virtual size reported by qemu-img for the glance image
the volume is resized to the value passes as arg if that is bigger than the actual image size (virtual size)
upstream bug: https://bugs.launchpad.net/cinder/+bug/1183459
Eric suggests this should fix it: https://review.openstack.org/#/c/30298
verified using openstack-cinder-2013.1.2-3.el6ost.noarch
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.