Bug 1033193 - [RFE] [engine-backend] removing a shareable disk is blocked in case it's attached to an exporting VM
Summary: [RFE] [engine-backend] removing a shareable disk is blocked in case it's atta...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs
Version: 3.3.0
Hardware: x86_64
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3.5.0
Assignee: Allon Mureinik
QA Contact: Shai Revivo
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 16:43 UTC by Elad
Modified: 2016-02-10 20:21 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-30 12:18:09 UTC
oVirt Team: Storage
Target Upstream Version:


Attachments (Terms of Use)
logs and screenshot (641.46 KB, application/x-gzip)
2013-11-21 16:43 UTC, Elad
no flags Details

Description Elad 2013-11-21 16:43:38 UTC
Created attachment 827361 [details]
logs and screenshot

Description of problem:
Engine blocks user from removing a shareable disk while it's attached to a VM that is being exporting to an export domain. The disk is not attached to any other VM, and the VM that is being copying to the export domain is down.

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.35.beta1.el6ev.noarch
vdsm-4.13.0-0.9.beta1.el6ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. have a pool with a data domain and export domain
2. create a VM with 2 disks: 1 shareable and one non-shareable
3. export the VM and remove the shareable disk from the system

Actual results:
Engine blocks the disk removal.
We're getting this message on UI:

"Error while executing action: Cannot remove Virtual Machine Disk. At least one of the VMs is not down."

engine.log:

2013-11-21 18:30:02,331 WARN  [org.ovirt.engine.core.bll.RemoveDiskCommand] (ajp-/127.0.0.1:8702-5) [3fa88e6d] CanDoAction of action RemoveDisk failed. Reasons:VAR__ACTION__REMOVE,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_VM_IS_NOT_DOWN


Expected results:
The shareable disk is not attached to any running VM and the VM export has nothing to do with the disk because it's shareable. Therefore, it should be possible to remove the shareable disk from the system

Additional info: logs and screenshot

Comment 1 Tal Nisan 2014-04-30 12:18:09 UTC
The fact that shareable disks aren't exported along with the VM is actually a bug so in the light of this, this RFE is closed.
Bug 1093007 was opened for the export bug


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