Bug 817817 - ovirt-engine-backend [Task Manager]: please remove single unknown tasks from the task manager view
Summary: ovirt-engine-backend [Task Manager]: please remove single unknown tasks from ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
: ---
Assignee: Eli Mesika
QA Contact: Dafna Ron
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-01 12:23 UTC by Dafna Ron
Modified: 2016-02-10 19:10 UTC (History)
7 users (show)

Fixed In Version: si6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log (8.36 KB, application/x-xz)
2012-05-01 12:23 UTC, Dafna Ron
no flags Details

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


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