Bug 1435636 - [RFE] [engine-backend] Running tasks should be listed upon storage domain deactivation
Summary: [RFE] [engine-backend] Running tasks should be listed upon storage domain dea...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RFEs
Version: 4.1.1.5
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.3.0
: ---
Assignee: Tal Nisan
QA Contact: Shir Fishbain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-24 12:29 UTC by Elad
Modified: 2019-02-13 07:43 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.3.0_rc
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-02-13 07:43:23 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.3?
rule-engine: planning_ack?
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 95621 0 master MERGED core: Map action type from async tasks 2018-11-22 08:16:55 UTC
oVirt gerrit 95622 0 master MERGED core: On storage domain with tasks maintenance show task action types 2018-11-22 08:17:13 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.