Bug 1236391

Summary: When removing a VM with its disks, shareable LUNs are also removed
Product: Red Hat Enterprise Virtualization Manager Reporter: Allon Mureinik <amureini>
Component: ovirt-engineAssignee: Idan Shaby <ishaby>
Status: CLOSED CURRENTRELEASE QA Contact: Ori Gofen <ogofen>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: acanan, amureini, bgraveno, bugs, gklein, ishaby, kgoldbla, lpeer, lsurette, rbalakri, Rhev-m-bugs, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-3.6.0-3 Doc Type: Bug Fix
Doc Text:
Previously when removing a virtual machine and its disks, shareable LUNs attached to the virtual machine were also removed, resulting in other virtual machines no longer being able to access them. Shareable LUNs are no longer removed, enabling virtual machines to continue using them.
Story Points: ---
Clone Of: 1234767 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:
Bug Depends On: 1234767    
Bug Blocks:    

Description Allon Mureinik 2015-06-28 13:39:25 UTC
+++ This bug was initially created as a clone of Bug #1234767 +++

Description of problem:
When removing a VM with its disks, shareable LUNs are also removed.

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

How reproducible:
100%

Steps to Reproduce:
1. Create a direct LUN and mark it as shareable.
2. Create a VM and attach it the LUN you created.
3. Create another VM and attach it the LUN you created.
4. Remove the first VM using the webadmin (with the "Remove Disk(s)" check box checked).

Actual results:
The direct LUN is removed, and the second VM remains with no disks.

Expected results:
It shouldn't be removed since there might be other VMs that use it (like in this case).

Additional info:

--- Additional comment from Allon Mureinik on 2015-06-24 18:32:09 IDT ---

Idan, please add doctext explaining this bug.
--------------------------------------------------------------------------

This bug is a clone so RHEV's documentation can pick up the doctext.

Comment 1 Ori Gofen 2015-07-23 15:56:02 UTC
Verified

Comment 2 Allon Mureinik 2016-03-10 10:47:09 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 3 Allon Mureinik 2016-03-10 10:49:54 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE

Comment 4 Allon Mureinik 2016-03-10 12:06:25 UTC
RHEV 3.6.0 has been released, setting status to CLOSED CURRENTRELEASE