Bug 927203

Summary: engine [UPGRADE]: in 3.0 DC, we do not allow move of disk which is deactivated and attached to a running vm because we detect it as live storage migration
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: Ayal Baron <abaron>
Status: CLOSED DUPLICATE QA Contact: Dafna Ron <dron>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, amureini, dyasny, hateya, iheim, lpeer, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---Keywords: Improvement
Target Release: 3.3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-26 21:10:35 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:
Embargoed:
Attachments:
Description Flags
logs none

Description Dafna Ron 2013-03-25 11:09:36 UTC
Created attachment 715953 [details]
logs

Description of problem:

I have a 3.0 DC with a 3.1 cluster which allows hotPlug. 
in a running vm with 2 disks, I deactivated one of he disks and tried to move it. 
we do not allow this because engine detects this action as live storage migration although when the disk is deactivated its no longer live (vdsm log shows unplug of disk when we deactivate it) hence, this action should be allowed. 

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

sf11 
vdsm-4.10.2-12.0.el6ev.x86_64

How reproducible:

100%

Steps to Reproduce:
1. create a running vm with rhel installed, on iscsi storage with 3.0 DC and 3.1 cluster
2. attach a second disk to the vm 
3. deactivate disk and try to move it
  
Actual results:

move shows that we are trying to live migrate a disk although the disk is no longer active hence live migration should not be used). and we fail the move with canDoAction. 

Expected results:

if disk is deactivated we should be able to move the disk since this is not live storage migration. 

Additional info:logs

Comment 1 Ayal Baron 2013-03-26 21:10:35 UTC
(In reply to comment #0)
> Created attachment 715953 [details]
> logs
> 
> Description of problem:
> 
> I have a 3.0 DC with a 3.1 cluster which allows hotPlug. 
> in a running vm with 2 disks, I deactivated one of he disks and tried to
> move it. 
> we do not allow this because engine detects this action as live storage
> migration although when the disk is deactivated its no longer live (vdsm log
> shows unplug of disk when we deactivate it) hence, this action should be
> allowed. 
> 
> Version-Release number of selected component (if applicable):
> 
> sf11 
> vdsm-4.10.2-12.0.el6ev.x86_64
> 
> How reproducible:
> 
> 100%
> 
> Steps to Reproduce:
> 1. create a running vm with rhel installed, on iscsi storage with 3.0 DC and
> 3.1 cluster
> 2. attach a second disk to the vm 
> 3. deactivate disk and try to move it
>   
> Actual results:
> 
> move shows that we are trying to live migrate a disk although the disk is no
> longer active hence live migration should not be used). and we fail the move
> with canDoAction. 
> 
> Expected results:
> 
> if disk is deactivated we should be able to move the disk since this is not
> live storage migration. 
> 
> Additional info:logs

We never allowed to move a disk while the VM is running even if it was deactivated.
We will not add features for old compatibility levels.

Comment 2 Allon Mureinik 2015-01-24 09:42:31 UTC
This was actually solved as part of bug 987783.

*** This bug has been marked as a duplicate of bug 987783 ***