Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1344479 - Live Merge completes but the 'job' table entry in the database is not marked as finished
Live Merge completes but the 'job' table entry in the database is not marked ...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
3.6.6
Unspecified Linux
urgent Severity urgent
: ovirt-4.0.0-rc2
: ---
Assigned To: Ala Hino
Kevin Alon Goldblatt
: ZStream
Depends On:
Blocks: 1348214
  Show dependency treegraph
 
Reported: 2016-06-09 15:08 EDT by Gordon Watson
Modified: 2017-03-21 17:19 EDT (History)
20 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, live merge tasks which completed displayed as running in the Manager. The task will now be presented as completed in the Manager, and will be removed from the appropriate database.
Story Points: ---
Clone Of:
: 1348214 (view as bug list)
Environment:
Last Closed: 2016-08-23 16:42:05 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
ahino: needinfo+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 59451 ovirt-engine-3.6 MERGED core: Fix task completion after removing a snapshot 2016-06-20 07:10 EDT
oVirt gerrit 59454 ovirt-engine-3.6.7 MERGED core: Fix task completion after removing a snapshot 2016-06-20 07:11 EDT
Red Hat Product Errata RHEA-2016:1743 normal SHIPPED_LIVE Red Hat Virtualization Manager 4.0 GA Enhancement (ovirt-engine) 2016-09-02 17:54:01 EDT

  None (edit)
Description Gordon Watson 2016-06-09 15:08:48 EDT
Description of problem:

Since upgrading to 3.6.6, we are now seeing instances of Live Merges completing, but the tasks in the Tasks pane in the RHEV Admin Portal are not being marked as having finished (an hourglass is displayed for the Finalizing step).

The 'RemoveDiskSnapshots' entry in the job table in the database is not getting changed to 'FINISHED'.

Thus it appears to the end-user that the snapshot deletion has not completed.


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

RHEV 3.6.6


How reproducible:

Not, but appears to be a repeatable problem.


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 8 Allon Mureinik 2016-06-10 02:30:23 EDT
Tentatively targeting to 3.6.8 until we have an RCA.
Comment 12 Raz Tamir 2016-06-15 11:31:36 EDT
Hi Gordon,
the operation that was performed was live merge of snapshot? or snapshot's disk live deletion?
Comment 13 Gordon Watson 2016-06-15 11:42:52 EDT
It was "snapshot's disk live deletion", i.e. a single disk live snapshot deletion as opposed to an entire live snapshot deletion. Please refer to comment #6, which provides the steps on how to reproduce this. 

When I opened the bug I didn't know exactly what caused it, hence the reproduction steps were added later.

Unfortunately, I'm going to be out of the office for an extended period of time, so I hope this helps to clarify the issue.

Regards, GFW.
Comment 17 Markus Stockhausen 2016-06-17 01:26:01 EDT
*** Bug 1347243 has been marked as a duplicate of this bug. ***
Comment 18 Markus Stockhausen 2016-06-17 01:26:53 EDT
Detailed logs can be found as attachment to bug 1347243
Comment 20 Markus Stockhausen 2016-06-20 01:21:37 EDT
Hi,

I think the solution does not cover the second bug as described in BZ1347243. 

The single disk live merge command starts its action with logging the wrong message: "Disks from snapshot deletion has been completed"

See engine log of BZ1347243:

...
2016-06-16 13:21:13,630 INFO Running command: RemoveDiskSnapshotsCommand
2016-06-16 13:21:13,738 INFO deletion has been completed <- WRONG!
2016-06-16 13:21:16,444 INFO Waiting on Live Merge child commands to complete
...
2016-06-16 13:22:42,169 INGO Merge command has completed
...
Comment 21 Ala Hino 2016-06-20 02:02:46 EDT
That issue reported in BZ 1344516 and already fixed.
Comment 22 Markus Stockhausen 2016-06-20 02:04:16 EDT
Good to see. Thanks for that info.
Comment 23 Allon Mureinik 2016-06-20 07:32:41 EDT
Ala - although the fix is obvious, many customers have faced this issue. Can you please provide some doctext highlighting it?
Comment 26 Allon Mureinik 2016-06-20 09:42:23 EDT
This bug does not reproduce on the 4.0 branch (the fix is for 3.6 only), but it was cloned to follow the z-stream process.

Setting to ON_QA so QA can keep me honest here.
Comment 27 Kevin Alon Goldblatt 2016-07-18 11:18:41 EDT
Tested with the following code:
---------------------------------------
vdsm-4.18.4-2.el7ev.x86_64
rhevm-4.0.2-0.2.rc1.el7ev.noarch

Tested using the following scenario:
---------------------------------------
1. Create a VM with one disk.
2. Create a snapshot.
3. Start VM.
4. Got to main 'Storage' tab.
5. Select SD in which disk resides.
6. Go to 'Disk Snapshots' tab.
7. Select snapshot.
8. Delete snapshot.


The engine log reports that the Live Merge completed successfully
The events log in the Web Admin reports that the Live Merge completed successfully
The tasks window reports all stages of the Live Merge as having completed successfully

Moving to VERIFIED!
Comment 30 errata-xmlrpc 2016-08-23 16:42:05 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://rhn.redhat.com/errata/RHEA-2016-1743.html

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