Bug 1028759

Summary: [engine-backend] cannot detach a disk from a running VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Ayal Baron <abaron>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: abaron, acathrow, amureini, iheim, lpeer, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.3.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: is26 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:
Bug Depends On: 1015683    
Bug Blocks: 922475, 1029853, 1044030, 1054231    
Attachments:
Description Flags
logs none

Description Elad 2013-11-10 14:17:43 UTC
Created attachment 822078 [details]
logs

Description of problem:
Disk detachment from a running VM fails every time with a CanDoAction failure on engine.

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.32.beta1.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. create a VM with disk and start is
2. deactivate the disk 
3. detach (remove) the disk from the vm (without checking the 'remove permanently' check-box

Actual results:
I'm failing with a CanDoAction on engine:

2013-11-10 16:11:58,889 WARN  [org.ovirt.engine.core.bll.DetachDiskFromVmCommand] (ajp-/127.0.0.1:8702-5) [143302b4] CanDoAction of action DetachDiskFromVm failed. Reasons:VAR__ACTION__DETACH_ACTION_TO,VAR__TYPE__VM_DISK,ACTION_TYPE_FAILED_VM_IS_NOT_DOWN

Expected results:
It should be possible to detach a disk from a running VM

Additional info: engine and vdsm logs

Comment 2 Elad 2013-11-10 14:44:36 UTC
Steps to Reproduce:
1. create a VM with 2 disks and start is
2. deactivate the non-bootable disk 
3. detach (remove) the disk from the vm (without checking the 'remove permanently' check-box

Comment 3 Liron Aravot 2013-11-13 12:24:19 UTC
This issue relates to GWT serialization issue which is handled in this bug
https://bugzilla.redhat.com/show_bug.cgi?id=1015683
therefore i mark this one as depends on it, as it will be merged this should be resolved.

After this issue would be resolved, similar issue should reproduce with a little different steps (detaching an unplugged disk from vm from cluster in which hotplug/unplug isnt't supported), I've solved that in that bug 1029853  which  depends on that one.

Comment 4 Allon Mureinik 2013-11-27 09:57:30 UTC
Moving to MODIFIED since bug 1015683 is already there.

Comment 6 Elad 2013-12-05 09:59:09 UTC
bug 1015683 has nothing to do with this bug, removing dependency.

Comment 7 Allon Mureinik 2013-12-05 12:28:24 UTC
Elad,

The reason for the failure described in this bug is that the GUI does not pass (serialize) the parameters correctly to the backend, as described in comment 3.
This happens due to bug 1015683, hence the dependency.

Returning it, just to be on the safe side. If you think they should not be dependent, please elaborate.

Comment 8 Elad 2013-12-10 16:43:24 UTC
(In reply to Allon Mureinik from comment #7)
> Elad,
> 
> The reason for the failure described in this bug is that the GUI does not
> pass (serialize) the parameters correctly to the backend, as described in
> comment 3.
> This happens due to bug 1015683, hence the dependency.
> 
> Returning it, just to be on the safe side. If you think they should not be
> dependent, please elaborate.

I see.. anyway, it seems that this bug was fixed, so moving to VERIFIED.

checked on is26, disk removal from VM works as should be

Comment 9 Itamar Heim 2014-01-21 22:28:00 UTC
Closing - RHEV 3.3 Released

Comment 10 Itamar Heim 2014-01-21 22:28:00 UTC
Closing - RHEV 3.3 Released

Comment 11 Itamar Heim 2014-01-21 22:30:58 UTC
Closing - RHEV 3.3 Released