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

Bug 827908

Summary: ovirt-engine-backend [Multiple Domains]: Remove vm succeeds even though one of the images is located on domain in maintenance and we move disk to floating without alerting user
Product: Red Hat Enterprise Virtualization Manager Reporter: Dafna Ron <dron>
Component: ovirt-engineAssignee: mkublin <mkublin>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.0CC: abaron, amureini, bazulay, dyasny, iheim, lpeer, mkublin, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ---   
Target Release: 3.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: SI7 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:
Attachments:
Description Flags
log none

Description Dafna Ron 2012-06-03 16:09:41 UTC
Description of problem:

remove of vm when one of the images is located on a domain in maintenance succeeds.
if the disk is marked as bootable then the action will fail, if the disk is one of the other disks the action will succeed even though we get an error from vdsm.
disk will become floating without alerting the user on the failure.

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

si4

How reproducible:

100%

Steps to Reproduce:
1. create 3 domains + vm with disks located on each domain
2. put the domain with disk on maintenance (the disk which is not marked as bootable)
3. remove vm
 
Actual results:

if the disk is marked as bootable action will fail.
if the disk is not marked as bootable the action will succeed and disk will become floating without alerting the user.

Expected results:

1. we should have consistent behavior - regardless of if the disk is bootable or not
2. if one disk fails to be deleted we should either fail the delete of the vm entity or report to the user that delete failed and disk was changed to floating.

Additional info: logs

Comment 1 Dafna Ron 2012-06-03 16:10:32 UTC
Created attachment 588888 [details]
log

Comment 2 mkublin 2012-06-14 09:05:28 UTC
http://gerrit.ovirt.org/#/c/5343/, pushed

Comment 3 Ayal Baron 2012-06-24 09:13:54 UTC
Please verify also what happens if domain is moved to maintenance (or just inactive) after removeVM started (mark disk as wipe after delete).

Comment 4 Dafna Ron 2012-06-25 14:41:45 UTC
verified on si7 
cannot remove vm once domain is in maintenance and cannot deactivate domain once remove started