Bug 692089

Summary: [vdsm][storage]Vdsm doesn't clean-up stale lvs after copyImage operation fails
Product: Red Hat Enterprise Linux 6 Reporter: Moran Goldboim <mgoldboi>
Component: vdsmAssignee: Igor Lvovsky <ilvovsky>
Status: CLOSED ERRATA QA Contact: Moran Goldboim <mgoldboi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1CC: abaron, bazulay, dron, iheim, ilvovsky, lpeer, sgrinber, ykaul
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: vdsm-4.9-65.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:09:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
vdsm log none

Description Moran Goldboim 2011-03-30 12:00:04 UTC
Created attachment 488747 [details]
vdsm log

Description of problem:
If creating a template operation fails vdsm doesn't remove the LV created, thus lots of "garbage" can be accumulated on the VG 

Version-Release number of selected component (if applicable):
vdsm-4.9-57.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.create a template
2.restart vdsm during the operation
3.
  
Actual results:
the lv created left on the VG

Expected results:


Additional info:

Comment 2 RHEL Program Management 2011-04-04 02:11:27 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Igor Lvovsky 2011-05-04 14:50:54 UTC
http://gerrit.usersys.redhat.com/#change,311

Comment 5 Dafna Ron 2011-05-17 11:06:55 UTC
verified on vdsm-4.9-65.el6.x86_64 with ic117

rollback cleans "garbage" from storage:


vgs during template create: 

[root@blond-vdsg ~]# vgs
   VG                                   #PV #LV #SN Attr   VSize  VFree 
  5bd17ddd-1cdc-4b25-bbbf-330b7c150d01   1  20   0 wz--n- 99.75g 49.25g


vgs after operation failed: 

[root@blond-vdsg ~]# vgs
   VG                                   #PV #LV #SN Attr   VSize  VFree 
  5bd17ddd-1cdc-4b25-bbbf-330b7c150d01   1  18   0 wz--n- 99.75g 60.38g

Comment 6 errata-xmlrpc 2011-12-06 07:09:56 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/RHEA-2011-1782.html