Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1590292

Summary: Can't perform Live disk migration for the 2nd time after a failed attempt : Operation canceled - VM is performing an operation on a snapshot
Product: [oVirt] ovirt-engine Reporter: Evelina Shames <eshames>
Component: BLL.StorageAssignee: Benny Zlotnik <bzlotnik>
Status: CLOSED CURRENTRELEASE QA Contact: Yosi Ben Shimon <ybenshim>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.4CC: bugs, tnisan, ybenshim
Target Milestone: ovirt-4.2.5Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.4.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-31 15:30:08 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:    
Bug Blocks: 1580437, 1584993    
Attachments:
Description Flags
Logs none

Description Evelina Shames 2018-06-12 11:26:36 UTC
Created attachment 1450471 [details]
Logs

Description of problem:
while trying to verify 1580437:
1st live migration of the disk failed as expected due to SPM network connection to storage domain was blocked.
2nd live migration canceled with the following message in UI:
"Operation Canceled
Error while executing action: Cannot create Snapshot. The VM is performing an operation on a Snapshot. Please wait for the operation to finish, and try again."

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.4.2-0.1

How reproducible:
100%

Steps to Reproduce:
1. create VM from template on ISCSI domain & start VM.
2. Start disk migration from iSCSI SD to another iSCSI SD & block Network connection from SPM to the storage domain -> disk migration failed as expected.
3. Unblock Network connection to SD from the host that was SPM before.
4. Start again disk migration from iSCSI SD to another iSCSI SD. 

Actual results:
"Operation Canceled
Error while executing action: Cannot create Snapshot. The VM is performing an operation on a Snapshot. Please wait for the operation to finish, and try again."

Expected results:
Operation should succeed.

Additional info:
logs are attached.

Comment 1 Tal Nisan 2018-06-12 12:11:00 UTC
Benny, this look familiar, didn't you fix a similar bug?

Comment 2 Benny Zlotnik 2018-06-12 12:25:18 UTC
(In reply to Tal Nisan from comment #1)
> Benny, this look familiar, didn't you fix a similar bug?

Nope, it looks like a new one. I checked and it looks like the actual problem is that the snapshot remains locked after the failure

Comment 3 Benny Zlotnik 2018-06-14 12:11:49 UTC
Just a note:
This issue not related to LSM but to specifically to snapshot creation.

To reproduce it is possible to:
1. Initiate snapshot creation
2. Block connection to the storage (should be timed to have the task created successfully by vdsm and reported to the engine)

Comment 4 Sandro Bonazzola 2018-06-29 15:30:45 UTC
$ git tag --contains a1c1a328d0e1ab24fed52d2bbb594e4400ac45aa
ovirt-engine-4.2.4.5

This can be tested in 4.2.4

Comment 5 Yosi Ben Shimon 2018-07-03 09:07:05 UTC
Tested using:
ovirt-engine-4.2.4.5-0.1.el7_3.noarch

Ran the automation TC (TestCase6000).

Actual result:
The 1st migration failed as expected.
The 2nd migration succeeded after the connection between the SPM and the storage was unblocked.

Moving to VERIFIED

Comment 6 Sandro Bonazzola 2018-07-31 15:30:08 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.