Bug 1234767

Summary: When removing a VM with its disks, shareable LUNs are also removed
Product: [Retired] oVirt Reporter: Idan Shaby <ishaby>
Component: ovirt-engine-coreAssignee: Idan Shaby <ishaby>
Status: CLOSED CURRENTRELEASE QA Contact: Kevin Alon Goldblatt <kgoldbla>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5CC: acanan, amureini, bugs, ecohen, gklein, ishaby, lsurette, rbalakri, yeylon
Target Milestone: m1   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: ovirt-3.6.0-3 Doc Type: Bug Fix
Doc Text:
Cause: When removing a VM with its disks, shareable direct LUNs are also removed. Consequence: Other VMs that might use these disks can no longer do that because they were removed. Fix: Shareable direct LUNs are not removed in any case (just like disk images). Result: Other VMs that might use these disks can still use them.
Story Points: ---
Clone Of:
: 1236391 (view as bug list) Environment:
Last Closed: 2015-11-04 11:18:02 UTC 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:    
Bug Blocks: 1236391    

Description Idan Shaby 2015-06-23 08:23:27 UTC
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:

Comment 1 Allon Mureinik 2015-06-24 15:32:09 UTC
Idan, please add doctext explaining this bug.

Comment 2 Max Kovgan 2015-06-28 14:12:05 UTC
ovirt-3.6.0-3 release

Comment 3 Kevin Alon Goldblatt 2015-07-07 12:29:07 UTC
Verified with Version:
-------------------------------------------------------------
vdsm-4.17.0-1054.git562e711.el7.noarchrpm -qa 
ovirt-engine-3.6.0-0.0.master.20150627185750.git6f063c1.el6.noarch

Verified with the following scenario:
-------------------------------------------------------------
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). >>>>> The Shared disk remains in the second VM.


Moving to Verified!

Comment 4 Sandro Bonazzola 2015-11-04 11:18: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.