Bug 883921

Summary: Floating disks created although template creation failed
Product: Red Hat Enterprise Virtualization Manager Reporter: Vered Volansky <vered>
Component: ovirt-engineAssignee: Liron Aravot <laravot>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, acathrow, amureini, iheim, jkt, laravot, lpeer, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: All   
Whiteboard: storage
Fixed In Version: is1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1019461    
Attachments:
Description Flags
vdsm.log
none
engine.log none

Description Vered Volansky 2012-12-05 15:24:14 UTC
Created attachment 658266 [details]
vdsm.log

Description of problem:
When template creation from vm fails, the vm's disks are duplicated and remain floating in the system.

Version-Release number of selected component (if applicable):
3.1 rc

How reproducible:


Steps to Reproduce:
1.Create a template from a vm with disks and fail one of the images.
  
Actual results:
Template creation is failed, no new templates in the system.
The vm's disks all have floating copies.

Expected results:
If there's no template, there shouldn't be a disk.

Additional info:
logs, look at around 16:00, Dec 5.

Comment 1 Vered Volansky 2012-12-05 16:01:30 UTC
Created attachment 658271 [details]
engine.log

Comment 2 Liron Aravot 2013-02-13 15:14:41 UTC
on failure all the added images will be removed from the db and there will be an attempt to remove it from the storage to avoid storage leak.

http://gerrit.ovirt.org/#/c/12027/

Comment 3 Haim 2013-02-28 17:33:20 UTC
Vered, once floating disk being created, can they being removed from the system?

Comment 5 Elad 2013-07-14 15:14:28 UTC
Template's disks are being deleted after failure in template creation.

Verified on RHEV3.3 (IS5):
vdsm-4.11.0-121.git082925a.el6.x86_64
rhevm-3.3.0-0.6.master.el6ev.noarch

Comment 6 Itamar Heim 2014-01-21 22:21:17 UTC
Closing - RHEV 3.3 Released

Comment 7 Itamar Heim 2014-01-21 22:26:42 UTC
Closing - RHEV 3.3 Released