Bug 1257132 - removing VM pool job doesn't end
Summary: removing VM pool job doesn't end
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-3.6.0-ga
: 3.6.0
Assignee: Shmuel Melamud
QA Contact: sefi litmanovich
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-26 10:39 UTC by Oved Ourfali
Modified: 2016-02-10 19:24 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-11-04 11:29:02 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-3.6.0+
rule-engine: blocker+
ylavi: planning_ack+
michal.skrivanek: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 46473 0 master MERGED core: Correctly finish Remove VM Pool job Never
oVirt gerrit 47077 0 ovirt-engine-3.6 MERGED core: Correctly finish Remove VM Pool job Never
oVirt gerrit 47126 0 ovirt-engine-3.6.0 MERGED core: Correctly finish Remove VM Pool job Never

Description Oved Ourfali 2015-08-26 10:39:22 UTC
Description of problem:
When removing a VM pool of VMs (with disks), the removal works, but the task never ends.

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


How reproducible:
Always

Steps to Reproduce:
1. Create VM pool from template, with at least 2 VMs, and the template should consist of at least one disk
2. Remove the VM pool


Actual results:
The tasks never end.

Expected results:
They should end.

Additional info:

1:

The issue is that as of 3.6, RemoveVmPoolCommand calls RemoveVmCommand.
RemoveVmCommand sets the parent command to the RemoveVmPoolCommand, and not to the RemoveVmCommand.

Not sure what's the right thing to do there. Either to set the parent to the current command, or to implement endAction logic in the RemoveVmPoolCommand.
The patch that changed RemoveVmCommand in the past was "git show 5633d52a".

Changing it back fixed the issue, but not sure whether it screwed up something else.

2:
I'm aware of the following bugs:
Bug 1211512 - POOL vm tasks doesn't ends 
Bug 1248090 - Tasks drawer doesn't display jobs/step tree correctly

However, the issue happens regardless, and it shouldn't interfere with reproducing + fixing this issue. The tree will still be "weird", but we have a patch for that that is under verification (https://gerrit.ovirt.org/#/c/45008/).

Comment 1 sefi litmanovich 2015-10-25 12:03:19 UTC
Verified with rhevm-3.6.0.2-0.1.el6.noarch according to steps in description.

Comment 2 Sandro Bonazzola 2015-11-04 11:29:02 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.


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