Hi,

Yesterday I had an AddDisk operation fail. The task is no longer running on the SPM but it's stuck in the engine DB and the failed disk is now locked. I've tried to clean it out using taskcleaner.sh, but either I'm using it incorrectly or it doesn't handle my specific scenario.

There were no running tasks (-T returned empty set). There were two commands (-o) which I then removed (-r) but the Engine UI is still reporting the tasks. Possibly because step table still reports non finished steps.

engine=# select step_id,start_time,end_time,status from step order by start_time;
               step_id                |         start_time         |          end_time          |  status 
--------------------------------------+----------------------------+----------------------------+----------
5c60afc8-102f-49a5-84aa-a299c21e23dd | 2019-06-20 15:23:04.689+00 | 2019-06-20 15:23:04.953+00 | FINISHED
562211a7-9d12-4e1c-9b3f-16edd751904f | 2019-06-20 15:23:04.985+00 | 2019-06-20 15:23:56.105+00 | FINISHED
5f49dde9-50d9-46a2-bfb4-7cb243a14515 | 2019-06-20 15:23:05.648+00 | 2019-06-20 15:23:17.35+00  | FAILED
5095bc73-e1a2-4ea5-9c20-37ee0ecc7ac0 | 2019-06-20 15:23:20.767+00 |                            | STARTED
a960ee64-8ef4-45de-b06c-5ddba4d71178 | 2019-06-20 15:23:23.201+00 |                            | STARTED
238ef349-d3dc-4923-8cc0-aa26b2d136d0 | 2019-06-20 15:23:27.67+00  |                            | STARTED
7f4ffe9a-6da5-485c-9732-9fc4cf93633b | 2019-06-20 15:23:35.806+00 |                            | STARTED
ecaaa983-057e-45bd-8f6e-20675fa14999 | 2019-06-20 15:23:45.93+00  |                            | STARTED
67f8247b-2b99-4fec-afa4-9f7a77fa71ea | 2019-06-20 15:23:56.105+00 |                            | STARTED
e8853408-d57c-4151-884a-691e70b0aff0 | 2019-06-21 12:01:09.636+00 | 2019-06-21 12:01:09.756+00 | FINISHED
4f03e90e-1c37-4bb7-9226-4c9ecc6425ea | 2019-06-21 12:01:09.762+00 | 2019-06-21 12:02:20.985+00 | FINISHED
(11 rows)

I don't want to manually delete those rows but don't know how else to resolve.

ovirt-engine-4.2.8.2

Thanks,

Alan