Bug 1119706

Summary: Jobs object that contain job with "Removing Snapshot..." doesn't finish
Product: [Retired] oVirt Reporter: Raz Tamir <ratamir>
Component: ovirt-engine-coreAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Raz Tamir <ratamir>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: acanan, amureini, bugs, gklein, iheim, juan.hernandez, rbalakri, yeylon
Target Milestone: ---Keywords: AutomationBlocker
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-3.5.0_rc1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:22:46 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 Raz Tamir 2014-07-15 10:24:36 UTC
Description of problem:
In REST api, the jobs object (located in /api/jobs) that contain job with removing snapshot description will not end the job and mark it as finished.
This is an automation blocker

<job href="/ovirt-engine/api/jobs/b821cc2c-b1bc-4f12-b4fc-a603fb285c80" id="b821cc2c-b1bc-4f12-b4fc-a603fb285c80"><actions><link href="/ovirt-engine/api/jobs/b821cc2c-b1bc-4f12-b4fc-a603fb285c80/clear" rel="clear"/><link href="/ovirt-engine/api/jobs/b821cc2c-b1bc-4f12-b4fc-a603fb285c80/end" rel="end"/></actions><description>Removing Snapshot live of VM vm_test</description><link href="/ovirt-engine/api/jobs/b821cc2c-b1bc-4f12-b4fc-a603fb285c80/steps" rel="steps"/><status><state>STARTED</state></status><owner href="/ovirt-engine/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc" id="fdfc627c-d875-11e0-90f0-83df133b58cc"/><start_time>2014-07-15T11:47:38.740+03:00</start_time><last_updated>2014-07-15T11:47:38.771+03:00</last_updated><external>false</external><auto_cleared>true</auto_cleared></job>


Version-Release number of selected component (if applicable):
ovirt-engine-3.5.0-0.0.master.20140629172257.git0b16ed7.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create snapshot
2. Remove the snapshot
3.

Actual results:
The job will remain in state started (<state>STARTED</state>) even though the snapshot already deleted

Expected results:
The relevant job state should change to FINISHED

Additional info:

Comment 1 Allon Mureinik 2014-07-23 10:35:39 UTC
For tacking purposes: this is another command context issue
(setting whiteboard to infra, regardless of the assignee's identity)

Also, moving back to POST, as this patch should be backported to the ovirt-engine-3.5 branch.

Comment 2 Raz Tamir 2014-08-11 07:25:27 UTC
Verified - ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch

Comment 3 Sandro Bonazzola 2014-10-17 12:22:46 UTC
oVirt 3.5 has been released and should include the fix for this issue.