Bug 906213 - image creation doesn't lock vms
Summary: image creation doesn't lock vms
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.1.0
Assignee: Nobody's working on this, feel free to take it
QA Contact:
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-31 06:56 UTC by Qixiang Wan
Modified: 2016-02-10 20:22 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-03 13:57:33 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Qixiang Wan 2013-01-31 06:56:05 UTC
Description of problem:
image creation should lock vms, but the vm is in 'Down' status during that period.

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

rhevm-3.1.0-43.el6ev.noarch
vdsm-4.9.6-45.1.el6_3.x86_64

How reproducible:
100%

Found this with NFS storage, not sure whether it happen with other storage types, and don't have more newer version of RHEV env to check this issue on hand.

Steps to Reproduce:
1. Create a vm in rhevm
2. Attach a disk to the vm
  
Actual results:

disk status is "Locked" and vm status is "Down"

Expected results:
VM should be locked while 


Additional info:

Comment 1 Ayal Baron 2013-02-03 13:57:33 UTC
When creating a new image the VM is by design not locked as you can perform other actions. The only thing locked is the disk.

Comment 2 Qixiang Wan 2013-02-04 02:38:52 UTC
(In reply to comment #1)
> When creating a new image the VM is by design not locked as you can perform
> other actions. The only thing locked is the disk.

That doesn't make sense, so user need to check both the VM status and disk status before booting up the vm? And I checked with RHEV 3.0, creating image does lock the vm as "image_locked", but not for RHEV 3.1.

I'm just want to confirm developer is aware of this change, thanks.

Comment 3 Ayal Baron 2013-02-07 08:10:38 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > When creating a new image the VM is by design not locked as you can perform
> > other actions. The only thing locked is the disk.
> 
> That doesn't make sense, so user need to check both the VM status and disk
> status before booting up the vm? And I checked with RHEV 3.0, creating image
> does lock the vm as "image_locked", but not for RHEV 3.1.

You are correct that in 3.0 that was the behaviour.  we changed the semantics to allow running more operations in parallel.
User doesn't have to check anything, engine does it for the user.  You will not be able to run a VM when the disk is locked.

> 
> I'm just want to confirm developer is aware of this change, thanks.


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