Bug 966090 - engine: vdsm restart during VmReplicateDiskFinishVDSCommand will rollback on the LSM but will not send DeleteImage leaving the image and volume in the target and source domains
Summary: engine: vdsm restart during VmReplicateDiskFinishVDSCommand will rollback on ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Nobody's working on this, feel free to take it
QA Contact: Elad
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-22 12:49 UTC by Dafna Ron
Modified: 2016-02-10 16:45 UTC (History)
10 users (show)

Fixed In Version: is1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 22:18:27 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (4.48 MB, application/x-gzip)
2013-05-22 12:49 UTC, Dafna Ron
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 14722 0 None None None Never

Description Dafna Ron 2013-05-22 12:49:41 UTC
Created attachment 751716 [details]
logs

Description of problem:

restart vdsm when VmReplicateDiskFinishVDSCommand is run. 
the engine rolls back on the LSM but does not send DeleteImage which leaves the image and snapshot in both domains. 
this will cause several issues such as, if I decided to remove the vm and import the back up from the export domain I will not be able to do that since we have left over images which user can only clean with gss. 

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

sf17.1

How reproducible:

100%

Steps to Reproduce:
1. create a vm from template on iscsi storage and run it on hsm host
2. restart vdsm on spm when VmReplicateDiskFinishVDSCommand is run 
3. shut down the vm
4. export the vm
5. remove the vm
6. import the vm 

Actual results:

engine rolls back on the LSM but does not send DeleteImage 

Expected results:

if we decide to roll back we should remove images in the target
if we decide not to roll back (since the sync image completed and the only step after that is delete image) we should delete the images from the source. 

USER IMPACT: in this case, I can't import the vm back to the setup after deleting it. 

Additional info: logs

Comment 2 Elad 2013-08-22 07:12:47 UTC
DeleteImage is sent to vdsm after a failure in LSM:

2013-08-21 15:30:41,103 ERROR [org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand] (pool-5-thread-47) [72a210fa] Ending command with failure: org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand

2013-08-21 15:30:42,085 ERROR [org.ovirt.engine.core.bll.lsm.LiveMigrateDiskCommand] (pool-5-thread-47) [72a210fa] Reverting task deleteImage, handler: org.ovirt.engine.core.bll.lsm.CreateImagePlaceholderTaskHandler

Verified on RHEVM3.3 - IS10:
rhevm-3.3.0-0.15.master.el6ev.noarch
vdsm-4.12.0-61.git8178ec2.el6ev.x86_64

Comment 3 Itamar Heim 2014-01-21 22:18:27 UTC
Closing - RHEV 3.3 Released

Comment 4 Itamar Heim 2014-01-21 22:24:49 UTC
Closing - RHEV 3.3 Released


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