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
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.
http://gerrit.ovirt.org/#change,4428
cannot restart jboss because of bug 828277 will try to find another way to reproduce this bug without jboss restart
verified on si6. unknown tasks are not shown in the task manager