Bug 1028759 - [engine-backend] cannot detach a disk from a running VM
Summary: [engine-backend] cannot detach a disk from a running VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.3.0
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Ayal Baron
QA Contact: Elad
URL:
Whiteboard: storage
Depends On: 1015683
Blocks: 922475 1029853 3.3snap4 1054231
TreeView+ depends on / blocked
 
Reported: 2013-11-10 14:17 UTC by Elad
Modified: 2016-02-10 17:07 UTC (History)
8 users (show)

Fixed In Version: is26
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (5.53 MB, application/x-gzip)
2013-11-10 14:17 UTC, Elad
no flags Details

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


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