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

Bug 1408877

Summary: Detaching a storage domain containing leases of VMs or templates should be blocked
Product: [oVirt] ovirt-engine Reporter: Tal Nisan <tnisan>
Component: BLL.StorageAssignee: Tal Nisan <tnisan>
Status: CLOSED CURRENTRELEASE QA Contact: Lilach Zitnitski <lzitnits>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
Target Release: 4.1.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:55: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:

Description Tal Nisan 2016-12-27 22:01:28 UTC
Description of problem:
Detaching of a storage domain that contains leases of VMs or templates should be blocked

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Lilach Zitnitski 2017-01-10 08:12:04 UTC
--------------------------------------
Tested with the following code:
----------------------------------------
ovirt-engine-4.1.0-0.4.master.20170109222652.git53fd6cb.el7.centos.noarch

Tested with the following scenario:

Steps to Reproduce:
1. create new vm and create new vm lease on one of the storage domains
2. switch this storage domain to maintenance 
3. detach the storage domain with the lease

Actual results:
detach fails with warning about existing leases (of vms and templates) on this storage domain 

Expected results:

Moving to VERIFIED!