Bug 1273094

Summary: 4.0: can't remove vm template - the disks are removed and the template stays locked
Product: [oVirt] ovirt-engine Reporter: Idan Shaby <ishaby>
Component: BLL.VirtAssignee: Ravi Nori <rnori>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: ahadas, amureini, bugs, masayag, mperina, pstehlik, smelamud, tnisan
Target Milestone: ovirt-4.0.0-alphaKeywords: Regression
Target Release: 4.0.0Flags: rule-engine: ovirt-4.0.0+
rule-engine: blocker+
rule-engine: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt 4.0.0 alpha1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 07:59:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Idan Shaby 2015-10-19 14:40:36 UTC
Description of problem:
When trying to remove a vm template via the webadmin, the disks are removed but the template itself is not removed and its status is stuck as "locked".

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

How reproducible:
100%

Steps to Reproduce:
1. Create a vm via the webadmin.
2. Add a disk to the vm.
3. Navigate to the "Templates" tab and try to remove the template.

Actual results:
The template's disk is removed but the template itself doesn't, it's stuck as locked.

Expected results:
The template should be removed.

Additional info:

Comment 1 Tal Nisan 2015-10-19 14:42:56 UTC
Seems like something regarding the end action after the children commands are finished, Moti, can it be related to your recent change?

Comment 2 Arik 2015-10-19 14:59:57 UTC
It seems like this is yet another problem that is caused by Ib3261800f383a6e3973acab4bd16079594fa4149. This change was not merged d/s.

As Tal commented, the end-action is not called when child commands are finished. It happened for us also on hibernate (note that I changed the hibernate command today so it won't reproduce on the hibernate command anymore). When reverting the said patch, the hibernate worked again.

Therefore, moving to infra.

Comment 3 Red Hat Bugzilla Rules Engine 2015-10-19 15:02:05 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 4 Tal Nisan 2015-10-19 15:03:14 UTC
OK, good news Arik, so it doesn't interfere with 3.6 then, thanks.

Comment 5 Martin Perina 2016-02-22 09:09:22 UTC
Changing severity to low as it's targeted to 4.0

Comment 6 Ilanit Stein 2016-06-15 13:04:06 UTC
Verified on rhevm-4.0.0.2-0.1:

Created a VM.
Added VM a disk
Created a template
Removed the template - successfully
Removed the VM - successfully.

Comment 7 Sandro Bonazzola 2016-07-05 07:59:12 UTC
oVirt 4.0.0 has been released, closing current release.