On Mon, Nov 26, 2018 at 1:39 PM Stefano Stagnaro <stefanos@prismatelecomtesting.com> wrote:
[snip] 
The job is hanged since user has killed fallocate process on the host. However, I can't kill task from the hosts itself since vdsm-client returns zero task on any host:

# vdsm-client Host getAllTasksInfo
{}

How can I deal with it? I already tried to restart ovirt-engine.service but task is still there and prevent me to put the involved storage domain into maintenance.

I also tried the "clear" method for service "job" via RestAPI but it fails since it's not an external job.

Thank you,
--
Stefano Stagnaro


I think in these cases you have to use taskcleaner.sh
Last year I had similar problems with hung tasks and I was pointed to taskcleaner.sh from Fred:

but it was not so user friendly in its syntax
During engine-setup there are cleaning stages when you see

[ INFO ] Cleaning async tasks and compensations
[ INFO ] Unlocking existing entities

So one chance could be to run 
engine-setup --offline (to prevent updates)
and let it do the clean stage
Putting environment into global maintenance before in case of self hosted engine

There are also detailed docs on rh portal, such as
but they need subscription for access.... and for pure oVirt I only found this:

It would be nice to have a free documentation entry point for oVirt users facing this kind of problems, in my opinion.

HIH,
Gianluca