Bug 1408876 - Deactivating a storage domain containing leases of running VMs should be blocked
Summary: Deactivating a storage domain containing leases of running VMs should be blocked
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Storage
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.2
Assignee: Tal Nisan
QA Contact: Lilach Zitnitski
URL:
Whiteboard:
Depends On:
Blocks: 1415668
TreeView+ depends on / blocked
 
Reported: 2016-12-27 21:59 UTC by Tal Nisan
Modified: 2017-02-21 12:37 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-02-01 14:34:41 UTC
oVirt Team: Storage
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 69218 0 master MERGED core: Add methods to obtain VMs and template with leases on domain to DAO 2016-12-29 10:47:25 UTC
oVirt gerrit 69219 0 master MERGED core: Block deactivation of a storage domain with running VMs with leases 2016-12-29 10:47:20 UTC
oVirt gerrit 69296 0 ovirt-engine-4.1 MERGED core: Add methods to obtain VMs and template with leases on domain to DAO 2016-12-29 16:30:00 UTC
oVirt gerrit 69297 0 ovirt-engine-4.1 MERGED core: Block deactivation of a storage domain with running VMs with leases 2016-12-29 16:29:53 UTC
oVirt gerrit 69393 0 master POST core: not all users set their leases on the same storage domain 2017-01-01 17:04:26 UTC

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


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