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

Bug 1435636

Summary: [RFE] [engine-backend] Running tasks should be listed upon storage domain deactivation
Product: [oVirt] ovirt-engine Reporter: Elad <ebenahar>
Component: RFEsAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Shir Fishbain <sfishbai>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1.1.5CC: bugs, tnisan
Target Milestone: ovirt-4.3.0Keywords: FutureFeature
Target Release: ---Flags: rule-engine: ovirt-4.3?
rule-engine: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.0_rc Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-13 07:43:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Elad 2017-03-24 12:29:23 UTC
Description of problem:
Engine should list the tasks that are preventing storage domain or SPM deactivation. 
Currently, it just informs that there are running tasks and the operation is locked.

For example, putting domain in maintenance right after removal of a disk that resides on it should be blocked and engine should report something like the following:

"
Error while executing action: Cannot deactivate Storage while there are running tasks on this Storage. The running tasks are:

-Remove disk

-Please wait until tasks will finish and try again.

"

Comment 1 Tal Nisan 2018-11-21 16:50:46 UTC
Looked into this RFE, unfortunately this is impossible to implement in a nice and user friendly manner.
The only available human readable info in an async task is the command name, I've displayed it as it's better that nothing.
Example:

Error while executing action: Cannot deactivate Storage while there are running tasks on this Storage.
-Tasks running: AddImageFromScratch
-Please wait until tasks will finish and try again.

Comment 2 Red Hat Bugzilla Rules Engine 2018-11-22 08:17:44 UTC
This request has been proposed for two releases. This is invalid flag usage. The ovirt-future release flag has been cleared. If you wish to change the release flag, you must clear one release flag and then set the other release flag to ?.

Comment 3 Shir Fishbain 2019-01-30 15:44:44 UTC
Verified

ovirt-engine-4.3.0-0.8.rc2.el7.noarch
vdsm-4.30.6-1.el7ev.x86_64

The message that appears: 
Error while executing an action: Cannot deactivate Storage while there are running tasks on this Storage.
-Tasks running: RemoveDisk
-Please wait until tasks will finish and try again.

Comment 4 Sandro Bonazzola 2019-02-13 07:43:23 UTC
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.