Bug 1027242 - Wrong error message when detaching an export domain with locked disks
Summary: Wrong error message when detaching an export domain with locked disks
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.5.0
Assignee: Maor
QA Contact: Elad
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 12:16 UTC by Allon Mureinik
Modified: 2016-02-10 16:59 UTC (History)
8 users (show)

Fixed In Version: ovirt-engine-3.5.0_beta2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-17 12:36:26 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)

Description Allon Mureinik 2013-11-06 12:16:38 UTC
Description of problem:
When attempting to detach an export domain that has locked disks the wrong error message is displayed

Version-Release number of selected component (if applicable):
RHEVM 3.3.

How reproducible:
100%

Steps to Reproduce:
1. Create a VM with multiple disks
2. Create an export domain
3. Export the VM to the export domain
4. While exporting (with the VM's disks locked), attempt to detach the export domain.

Actual results:
Detach fails with "Cannot detach a non empty Storage Domain. -Please remove all VMs / Templates / Disks and try again."

Expected results:
Error message should be "Cannot detach Storage Domain with locked disks {disks}", or something to that effect.

Additional info:

Comment 2 Allon Mureinik 2014-08-27 16:09:50 UTC
The operation fails anyway, just with the wrong message - pushing out to 3.5.1

Comment 3 Allon Mureinik 2014-09-01 09:21:55 UTC
The message "Cannot detach a non empty Storage Domain. -Please remove all VMs / Templates / Disks and try again." was removed as part of the attach/detach storage domain feature, and is not a reason to block the detaching of ANY domain any more.

Moving to QA to verify.

Comment 4 Elad 2014-09-01 11:26:23 UTC
When trying to detach an export domain (put it to maintenance) while there are locked disks that are being exported to the export domain, the error that is thrown to user is:

	
	
Operation Canceled
Error while executing action: Cannot deactivate Data Domain while there are running tasks on this data domain.
-Please wait until tasks will finish and try again.


Verified using ovirt-3.5-RC1.1
ovirt-engine-3.5.0-0.0.master.20140821064931.gitb794d66.el6.noarch

Comment 5 Sandro Bonazzola 2014-10-17 12:36:26 UTC
oVirt 3.5 has been released and should include the fix for this issue.


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