Bug 1234767 - When removing a VM with its disks, shareable LUNs are also removed
Summary: When removing a VM with its disks, shareable LUNs are also removed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: m1
: 3.6.0
Assignee: Idan Shaby
QA Contact: Kevin Alon Goldblatt
URL:
Whiteboard: storage
Depends On:
Blocks: 1236391
TreeView+ depends on / blocked
 
Reported: 2015-06-23 08:23 UTC by Idan Shaby
Modified: 2016-03-10 06:12 UTC (History)
9 users (show)

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.
Clone Of:
: 1236391 (view as bug list)
Environment:
Last Closed: 2015-11-04 11:18:02 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 42730 0 master MERGED core: VM removal with disks also removes shareable LUNS Never

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.


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