Bug 1056922

Summary: Storage Live Migration should only snapshot the migrated disk
Product: [Retired] oVirt Reporter: Allon Mureinik <amureini>
Component: ovirt-engine-coreAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4CC: acanan, acathrow, derez, ebenahar, iheim, lnatapov, nlevinki, sbonazzo, scohen, ukar, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-3.4.0-beta3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:31:45 UTC 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: 1054219    
Bug Blocks:    

Description Allon Mureinik 2014-01-23 07:50:40 UTC
Description of problem:
The first step in Storage Live Migration is to take a live snapshot, which currently (oVirt 3.4) snapshots all the VM's disks.
This is of course redundant, and only the disks being migrated should be snapshoted.

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

How reproducible:
100%

Steps to Reproduce:
1. Create a DC with compatibility version of at least 3.1
2. Create a cluster
3. Create a host in the cluster
4. Create two storage domains
5. Create a VM with two disks on storage domain A
6. Run the VM
7. Live migrate ONE disk to storage domain B

Actual results:
A live snapshot is taken with includes both disks

Expected results:
The live snapshot should include only one disk

Additional info:

Comment 1 Sandro Bonazzola 2014-02-07 11:31:55 UTC
Please backport to 3.4 branch or re-target to 3.5

Comment 2 Daniel Erez 2014-02-09 19:18:52 UTC
backported to ovirt-engine-3.4 branch

Comment 3 Sandro Bonazzola 2014-02-19 12:27:24 UTC
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA

Comment 4 Gadi Ickowicz 2014-03-18 09:10:26 UTC
Verified on AV2.1 . Snapshot was created only for the disk that was moved:
2014-03-18 11:04:38,949 INFO  [org.ovirt.engine.core.bll.lsm.LiveMigrateVmDisksCommand] (org.ovirt.thread.pool-4-thread-43) [334459bb] Running command: LiveMigrateVmDisksCommand Task handler: LiveSnapshotTaskHandl
2014-03-18 11:04:39,073 INFO  [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand] (org.ovirt.thread.pool-4-thread-43) Running command: CreateAllSnapshotsFromVmCommand internal: true. Entities affected :  I
2014-03-18 11:04:39,105 INFO  [org.ovirt.engine.core.bll.CreateSnapshotCommand] (org.ovirt.thread.pool-4-thread-43) [1de4de11] Running command: CreateSnapshotCommand internal: true. Entities affected :  ID: 000000
2014-03-18 11:04:39,126 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (org.ovirt.thread.pool-4-thread-43) [1de4de11] START, CreateSnapshotVDSCommand( storagePoolId = 8efc483e-644f-4ee8
2014-03-18 11:04:39,127 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (org.ovirt.thread.pool-4-thread-43) [1de4de11] -- executeIrsBrokerCommand: calling 'createVolume' with two new par
2014-03-18 11:04:39,188 INFO  [org.ovirt.engine.core.vdsbroker.irsbroker.CreateSnapshotVDSCommand] (org.ovirt.thread.pool-4-thread-43) [1de4de11] FINISH, CreateSnapshotVDSCommand, return: 9e7b3b0a-fd54-42d7-a557-c

Comment 5 Sandro Bonazzola 2014-03-31 12:31:45 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released

Comment 6 Allon Mureinik 2015-01-24 09:27:21 UTC
*** Bug 1185492 has been marked as a duplicate of this bug. ***