Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 883380

Summary: webadmin: when we copy a template disks from template tab -> disks sub tab, although the template is locked its shown in UI as unlocked
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engine-webadmin-portalAssignee: Daniel Erez <derez>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: abaron, amureini, dyasny, ecohen, iheim, mkenneth, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---Keywords: Reopened
Target Release: 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: sf3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-11 09:19:29 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
log none

Description Dafna Ron 2012-12-04 12:46:53 UTC
Created attachment 657497 [details]
log

Description of problem:

create several storage domains under the pool. 
create/import a template
template tab -> disks sub tab -> select the disk -> copy

the template does not appear as locked in UI. if we try to use it (create a vm from the template) we will get a CanDoAction that its used. 

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

si24.5

How reproducible:

100%

Steps to Reproduce:
1. create several domains under a pool and create/import a template
2. go to templates tab -> disks sub tab -> select disk -> copy
3. go to vm's tab -> new desktop -> select template -> create vm
  
Actual results:

although the template appears as unlocked in UI its actually locked 

Expected results:

template should also appear as locked in UI 

Additional info: engine log

Comment 1 Allon Mureinik 2012-12-05 10:07:36 UTC
Will be solved when we have readlocks for templates.

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

Comment 2 Dafna Ron 2012-12-05 10:12:03 UTC
Allon, this is not s duplicate of 81562. 
this bug is not about changing the lock behaviour so that we can create a vm while the template is being used. 
 
we currently do lock the template but when we copy the template to a different domain from the templates tab and not from the disks tab the template does not appear as locked in UI even though its locked in db.

Comment 11 Daniel Erez 2012-12-27 07:57:27 UTC
patch sent:
http://gerrit.ovirt.org/#/c/10411/
Change-Id: Icc9657350160aff2bc7bc5626b486b139c1832cf

Comment 12 Dafna Ron 2013-01-07 15:11:07 UTC
verified on sf3, when the disk is locked and we select the template we see a message in the new vm dialogue that the disk is locked. 

The following disks are in status Locked: NFS-RHEL6_iSCSI_Disk1

Comment 13 Itamar Heim 2013-06-11 09:19:29 UTC
3.2 has been released

Comment 14 Itamar Heim 2013-06-11 09:42:52 UTC
3.2 has been released