Bug 817817

Summary: ovirt-engine-backend [Task Manager]: please remove single unknown tasks from the task manager view
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: high    
Version: 3.1.0CC: acathrow, dyasny, iheim, Rhev-m-bugs, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: si6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-05-01 12:23:32 UTC
Created attachment 581360 [details]
log

Description of problem:

if we have a problem knowing the status of a synchroniouse task we show the task in the UI with a question mark (task is marked as UNKNOWN) in db. 
since it's a synchroniouse task, in case of a failure we should not show the task at all in the UI and remove it completely. 

the only exception is if the task is part of a bigger chain of synchronouse tasks (such as add domain command which calls on several synchronouse tasks), 
in that case we should show the task in UI (bug 817815 was opened to UI to change presentation of the task in UI). 

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

si2.1

How reproducible:

100%

Steps to Reproduce:
1. deactivate storage domain
2. while in image locked restart jboss
3.
  
Actual results:

task will become UNKNOWN and will be shown to user with question mark in the UI

Expected results:

we should not see the task at all if we cannot know what its status is, unless it is part of a bigger chain in which case we should see it as a step.  

Additional info: log

Comment 1 Yair Zaslavsky 2012-05-14 11:48:35 UTC
We can differentiate at query level -
GetAllJobs will not return jobs that their status is UNKNOWN.
GetAllJobsByCorrelationId - will return all jobs  regardless of their status.

Comment 2 Eli Mesika 2012-05-15 09:57:54 UTC
http://gerrit.ovirt.org/#change,4428

Comment 3 Dafna Ron 2012-06-14 13:36:03 UTC
cannot restart jboss because of bug 828277
will try to find another way to reproduce this bug without jboss restart

Comment 6 Dafna Ron 2012-06-18 09:05:30 UTC
verified on si6. 
unknown tasks are not shown in the task manager