Bug 864530 - [RFE] Force removal of an object does not work as expected
Summary: [RFE] Force removal of an object does not work as expected
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Andrew Cathrow
QA Contact: yeylon@redhat.com
URL:
Whiteboard: virt
Depends On:
Blocks: 890826
TreeView+ depends on / blocked
 
Reported: 2012-10-09 14:10 UTC by Ido Begun
Modified: 2016-04-18 06:44 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-03 06:34:15 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:
sherold: Triaged+


Attachments (Terms of Use)

Description Ido Begun 2012-10-09 14:10:08 UTC
Description of problem:
Currently force remove doesn't work when there are tasks running.
Force removal should succeed removing a locked VM even if there are tasks running.

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

How reproducible:
100%

Steps to Reproduce:
1.Lock a VM (i.e. create a template)
2.Force remove locked VM
  
Actual results:
Removal fails - [Cannot force remove VM when there are running tasks.]

Expected results:
VM is removed.

Additional info:

Comment 1 Haim 2012-10-10 14:04:28 UTC
logs please. also, is this really expected?

Comment 2 Andrew Cathrow 2012-10-14 12:21:47 UTC
(In reply to comment #1)
> logs please. also, is this really expected?

Until we have a cancel option on this task is this really a bug?

Comment 3 Yaniv Kaul 2012-10-14 12:25:36 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > logs please. also, is this really expected?
> 
> Until we have a cancel option on this task is this really a bug?

You can wait 50 hours and hope the task would die.

Comment 4 Michal Skrivanek 2012-10-15 12:50:11 UTC
not easy. might bring a lot of issues if we allow canceling a task in the middle. Let's revisit in 3.2

btw having r/o and r/w locks should help to mitigate some of these issue

Comment 5 Oded Ramraz 2012-12-27 09:11:31 UTC
I recommend to add the option to remove a VM forcibly without taking into consideration the storage domain status / tasks status or any other logic.

Comment 6 Simon Grinberg 2013-01-01 11:52:05 UTC
(In reply to comment #5)
> I recommend to add the option to remove a VM forcibly without taking into
> consideration the storage domain status / tasks status or any other logic.

With the lock release utility should this be covered?
Since we don't have cancel task, I prefer this to be done under GSS supervision (they may also help with proper cleanup of the task). 

Removing a single VM with leftovers is not the same as force remove storage domain where you can later clean it up on the storage side. 

Removing the 3.2 target - need to revisit for 3.3 with proper solution based on cancel tasks or comment #4 or even both.

Comment 7 Oded Ramraz 2013-03-11 07:48:15 UTC
I encountered new situation where floating disks failed to remove , I suggest to add the option to forcibly remove floating disks as well ( at least from API )

Comment 10 Itamar Heim 2014-08-03 06:34:15 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.


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