Bug 1108242

Summary: Force remove storage domain from data center causes data corruption to remaining vm's which had disks on the removed domain
Product: Red Hat Enterprise Virtualization Manager Reporter: Ori Gofen <ogofen>
Component: ovirt-engineAssignee: Maor <mlipchuk>
Status: CLOSED CURRENTRELEASE QA Contact: Ori Gofen <ogofen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acanan, amureini, gklein, iheim, lpeer, mlipchuk, rbalakri, Rhev-m-bugs, scohen, tnisan, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-engine-3.5.0_beta Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Ori Gofen 2014-06-11 15:05:29 UTC
Created attachment 907689 [details]
vdsm+engine logs

Description of problem:

Force remove storage domain(aka destroy) from a DC with 2 or more storage domain
can cause disappearance of the vm from a DC without any pop-up warning or error on logs, or in the case of vm that is in status: "up", it becomes external, all the disks he had becomes floating disks and all attempts to add or attach them back is block by CanDoAction:
"Cannot add Virtual Machine Disk. This VM is not managed by the engine"
the result is the loss of what can be a vital data since all Virtual Machine Memory is deleted,or cannot be accessed. 


Version-Release number of selected component (if applicable):
av9.5
vdsm-4.14.7-3.el6ev.x86_64
rhevm-3.4.0-0.21.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:

case 1:make vm disappear
Setup:
one host
two domains
1.create vm + 2 disks (one on each domain)
2.make sure the vm is down
3.force remove one domain

case 2:make vm an external vm
Setup:
one host
two domains
1.create vm + 2 disks (one on each domain)
2.make sure the vm is up
3.deactivate one disk
4.force remove the domain with the deactivated disk

Actual results:

all of vm's virtual ram is lost

Expected results:
a warning window should notify the user in case of deleted/external vm
or
this operation shouldn't cause any damage to vm (more probably)

Additional info:

I have attached the logs

Comment 1 Ori Gofen 2014-07-15 08:49:11 UTC
verified on oVirt-beta

Comment 2 Allon Mureinik 2015-02-16 19:14:00 UTC
RHEV-M 3.5.0 has been released, closing this bug.

Comment 3 Allon Mureinik 2015-02-16 19:14:02 UTC
RHEV-M 3.5.0 has been released, closing this bug.