Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1597554

Summary: No ability to cancel tasks form the UI
Product: Red Hat Enterprise Virtualization Manager Reporter: Piotr Kliczewski <pkliczew>
Component: ovirt-engineAssignee: Ravi Nori <rnori>
Status: CLOSED WONTFIX QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.3CC: guillaume.pavese, lsurette, mperina, Rhev-m-bugs, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-22 17:39:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Piotr Kliczewski 2018-07-03 08:24:02 UTC
Copied description of the issue from BZ #1592180

> i tried to modify a bonding mode (mode 2 to mode 1) on a host and something 
> seems to have gone wrong.
>
> Since I tried rebooting the host, tried all args variants of taskcleaner.sh 
> (never got anything listed by this command)
>
> I still have two tasks listed as running in the manager for hours :
>
> "Invoking Activate Host" and "Configuring networks on host"
>
> That seems to prevent me from reinstalling the host or removing it :
> "Cannot remove Host. Related operation is currently in progress. Please try 
> again later."
>
> Which is unfortunate as I am now stuck.
-------------------
> I managed to "recover" by powering off the engine, rebooting the host holding 
> it then hosted-engine --vm-start
>
> The two phantom tasks are now gone and my two hosts are up and running...

Comment 2 Sandro Bonazzola 2019-01-28 09:44:06 UTC
This bug has not been marked as blocker for oVirt 4.3.0.
Since we are releasing it tomorrow, January 29th, this bug has been re-targeted to 4.3.1.

Comment 4 Martin Perina 2019-02-22 17:39:31 UTC
There is no infrastructure which would link commands/jobs/tasks running on RHV Manager with tasks running in VDSM, meaning that each RHV Manager command can run multiple tasks, but RHV Manager is able only to monitor them and detect they finished with success or failure, there is no common infrastructure to cancel existing task. The main reason that VDSM tasks are usually running low level operations which in many cases cannot even be cancelled, so possibility to cancel task needs to be implemented for each such task.

Based on above it doesn't make sense to implement common infrastructure to cancel running tasks, because ability to cancel the task needs to be provided by each concrete task and there might be different ways how to cancel such task. So please file specific RFE to add ability to cancel specific task. For example we have already implemented specialized cancel option for live migration flow.