Bug 1408876

Summary: Deactivating a storage domain containing leases of running VMs 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: high Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: bugs, eheftman, gklein, tnisan
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: Enhancement
Doc Text:
This release enables Virtual Machines to lease areas on the storage domain. If a Virtual Machine has a lease on a storage domain, it will not be possible to move this storage domain into maintenance mode. If the user attempts to do so, an error message will appear explaining that a virtual machine currently has a lease on this storage.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:34:41 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: 1415668    

Description Tal Nisan 2016-12-27 21:59:17 UTC
Description of problem:
Deactivation of a storage domain that contains leases of VMs 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:19:55 UTC
--------------------------------------
Tested with the following code:
----------------------------------------
ovirt-engine-4.1.0-0.4.master.20170109222652.git53fd6cb.el7.centos.noarch
vdsm-4.19.1-18.git79e5ea5.el7.centos.x86_64

Tested with the following scenario:

Steps to Reproduce:
1. create new vm with vm lease on one of the storage domains
2. start the vm
3. try to switch to maintenance the storage domain with the vm's lease

Actual results:
can't deactivate the storage domain while it holds a running vm's lease

Expected results:

Moving to VERIFIED!

Comment 3 Emma Heftman 2017-01-19 14:09:51 UTC
Hi Tal. This feature sounds like something that needs to be documented as it changes the way the system behaves.

Comment 4 Tal Nisan 2017-01-23 13:37:25 UTC
Indeed, and we've discussed it via irc so I'm removing the needinfo, let me know if there's anything more I can help with