Bug 975916

Summary: cinder thinlvm allocates new snap based volumes outside the pool
Product: Red Hat OpenStack Reporter: Giulio Fidente <gfidente>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Giulio Fidente <gfidente>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: apevec, eharney, hateya, jkt, sclewis, sgordon
Target Milestone: z2Keywords: ZStream
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-2013.1.3-2.el6ost Doc Type: Bug Fix
Doc Text:
A bug in the ThinLVM driver for the Block Storage service (Cinder) caused volumes created from snapshots to be created incorrectly, resulting in a failure to create the volume or a volume created with an invalid configuration. A bug in the ThinLVM driver for the Block Storage service (Cinder) caused volumes created from snapshots to fail due to mismatched method parameters in the Cinder ThinLVM driver.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-03 20:23:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 993094, 995766    
Bug Blocks:    

Description Giulio Fidente 2013-06-19 15:18:44 UTC
Description of problem:
by going trough the sequence:
> origin (vol1) -> snapshot (snap1) -> create from snapshot (vol2)
vol2 gets allocated within the VG but outside the POOL


Version-Release number of selected component (if applicable):
openstack-cinder-2013.1.2-3.el6ost.noarch


Steps to Reproduce:
1. configure cinder with the ThinLVM driver
2. create a volume origin (v1)
3. create a snapshot of "v1" (s1)
4. create a volume based on "s1" (v2)


Expected results:
v2 should be placed within the VG POOL, as it happens for v1 and s1

Comment 1 Eric Harney 2013-07-29 16:37:00 UTC
Merged in upstream stable/grizzly for 2013.1.3.

Comment 2 Eric Harney 2013-08-10 23:22:30 UTC
Note that this is currently only fixed in that you will not get LVs created outside of the pool.  Volume clone from snapshot for the ThinLVM driver will still fail.  This is being followed up on in bug 995766 which requires another patch.

Needs to be documented as known issue for 3.0.z unless that bug also gets fixed and backported to the same release.

Comment 5 Giulio Fidente 2013-08-19 14:53:01 UTC
verified using openstack-cinder-2013.1.3-2.el6ost

Comment 7 errata-xmlrpc 2013-09-03 20:23:23 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/RHSA-2013-1198.html