Bug 970558 - creation of a bootable volume from an image does not honor size parameter
Summary: creation of a bootable volume from an image does not honor size parameter
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 3.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: rc
: 3.0
Assignee: Eric Harney
QA Contact: Giulio Fidente
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-04 10:58 UTC by Giulio Fidente
Modified: 2016-04-26 23:20 UTC (History)
5 users (show)

Fixed In Version: openstack-cinder-2013.1.2-2.el6ost
Doc Type: Bug Fix
Doc Text:
Previously, volumes created from Glance images were not being re-sized according to the passed parameters, when using NFS or GlusterFS backends, even though Cinder's DB reported the correct size. This has been fixed so that the backing file gets re-sized correctly as shown in Cinder DB.
Clone Of:
Environment:
Last Closed: 2013-06-27 17:16:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 30298 0 None None None Never
Red Hat Product Errata RHBA-2013:0968 0 normal SHIPPED_LIVE Red Hat OpenStack 3.0 ("Grizzly") bug fix and enhancement update 2013-06-27 21:14:27 UTC

Description Giulio Fidente 2013-06-04 10:58:29 UTC
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):
openstack-cinder-2013.1.1-3.el6ost


Steps to Reproduce:
1. create an image in glace
2. crate a volume from such an image and pass "1" as volume size


Actual results:
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


Expected results:
the volume is resized to the value passes as arg if that is bigger than the actual image size (virtual size)


Additional info:
upstream bug: https://bugs.launchpad.net/cinder/+bug/1183459
Eric suggests this should fix it: https://review.openstack.org/#/c/30298

Comment 2 Giulio Fidente 2013-06-13 11:26:50 UTC
verified using openstack-cinder-2013.1.2-3.el6ost.noarch

Comment 5 errata-xmlrpc 2013-06-27 17:16:07 UTC
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.

http://rhn.redhat.com/errata/RHBA-2013-0968.html


Note You need to log in before you can comment on or make changes to this bug.