Bug 470904

Summary: lvremove -ff VG can fail when VG contains snapshot
Product: [Fedora] Fedora Reporter: Jaroslav Stava <jstava>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 10CC: agk, bmarzins, bmr, dwysocha, heinzm, lvm-team, mbroz, prajnoha, prockai, vedran
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-12 07:55:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Stava 2008-11-10 20:08:49 UTC
Description of problem:
lvremove -ff VG can fail when VG contains snapshot.
lvremove removes the LVs one by one using process_each_lv()
which is unaware of dependencies between the LVs.

How reproducible:
Allways when using the following steps.

Steps to Reproduce:
1. vgcreate vg /dev/sda
2. lvcreate -n lv1 -l 4 vg
3. lvcreate -s -n snap -l 4 vg/lv1
4. lvremove -ff vg

Actual results:
Can't remove logical volume "tlv" under snapshot
Logical volume "snap" successfully removed

($? = 5)
doesn't remove vg/lv1

Expected results:
Logical volume "snap" successfully removed
Logical volume "lv1" successfully removed

IOW "lvremove VG" should behave like "vgremove VG" without 
actually removing the VG.

Comment 1 Bug Zapper 2008-11-26 05:09:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Peter Rajnoha 2008-12-08 12:28:18 UTC
The fix has already been uploaded to upstream (version 2.02.44).

Comment 3 Fedora Update System 2009-07-03 09:29:44 UTC
lvm2-2.02.48-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/lvm2-2.02.48-1.fc11

Comment 4 Bug Zapper 2009-11-18 12:39:59 UTC
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '10'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 10's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 10 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 5 Dave Wysochanski 2009-12-08 22:04:02 UTC
Fixed on F11 as stated.