Bug 1309294

Summary: Failed to syncDbRecords after successful live merge because host is down
Product: [oVirt] ovirt-engine Reporter: Ala Hino <ahino>
Component: BLL.StorageAssignee: Ala Hino <ahino>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.3CC: amureini, bugs, gklein, gpadgett, mgoldboi, sbonazzo, ylavi
Target Milestone: ovirt-3.6.5Flags: rule-engine: ovirt-3.6.z+
ylavi: planning_ack+
amureini: devel_ack+
acanan: testing_ack+
Target Release: 3.6.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-21 14:39:25 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:

Description Ala Hino 2016-02-17 12:01:23 UTC
Description of problem:
After successful live merge, if during host goes down after completion of live merge but before calling 'syncDbRecords', flow fails because 'syncDbRecords' calls vdsm to get image info.

This bug is to make sure we remove the call to vdsm outside of 'syncDbRecords'.

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


How reproducible:
100%

Steps to Reproduce:
1. (Lively) remove a snapshot
2. After/before DESTROY_IMAGE_CHECK completes, take shutdown host
3. Update the db fails

Actual results:
Db update fails

Expected results:
Db to be updated with the correct data regarding live merge

Additional info:

Comment 1 Allon Mureinik 2016-02-18 11:45:52 UTC
*** Bug 1309293 has been marked as a duplicate of this bug. ***

Comment 2 Allon Mureinik 2016-02-28 13:26:54 UTC
This patch should be backported to the ovirt-engine-3.6 branch. Setting the status back to POST.

Comment 3 Elad 2016-04-04 12:26:58 UTC
Tested the following on 2 builds:
rhevm-3.6.3-0.1.el6.noarch - doesn't contain the fix
rhevm-3.6.5-0.1.el6.noarch - contains the fix


1. Remove a snapshot lively
2. After DESTROY_IMAGE_CHECK completes, stopped vdsm

On the older build, the volume became Illegal and on the latest it got removed.