Bug 1033193

Summary: [RFE] [engine-backend] removing a shareable disk is blocked in case it's attached to an exporting VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: RFEsAssignee: Allon Mureinik <amureini>
Status: CLOSED WONTFIX QA Contact: Shai Revivo <srevivo>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, amureini, gklein, iheim, lpeer, Rhev-m-bugs, scohen, tnisan, yeylon
Target Milestone: ---Keywords: FutureFeature, Improvement
Target Release: 3.5.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-30 12:18:09 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:
Attachments:
Description Flags
logs and screenshot none

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