oVirt: Stop all running tasks

So you know what makes me angry? Tasks that won’t stop running. This happened to me at work and it infuriated me. I had to go though mailing lists to figure it out, but here is the solution.

SSH into ovirt-engine as root, then run:

su postgres
psql -d engine -U postgres
select * from job order by start_time desc;

This group of commands switches us to the postgres user, allowing access to the oVirt database. Then we access said database and list all the columns and rows in the job table.

Grab the job_id for the task you want to delete, then use the DeleteJob procedure:

select DeleteJob('UUID_HERE');

For example:

select DeleteJob('8424f7a9-2a4c-4567-b528-45bbc1c2534f');

Give the web GUI a minute or so to catch up with you. The tasks should be gone. If it is still running, make sure the UUID was correct.

If when you try and run psql you get command not found, try using this after switching to the postgres user:

scl enable rh-postgresql10 "psql -d engine -U postgres"


And then picking up at the select command.



About: Ryan Parker

I currently work as a system administrator for the local school district. I also have a side job helping small to medium business with their technology. One of my hobbies is building out infrastructures for myself, friends, and clients.


Leave a Reply

Your email address will not be published. Required fields are marked *