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

Bug 1413397

Summary: Creation of VM leases should be blocked for data center versions lower than 4.1
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: ahadas, bugs, gklein
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:50:08 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 2017-01-15 18:20:54 UTC
Description of problem:
Currently creation of VM leases in data centers with version lower that 4.1 resulting in VDSM calls to a non existing verb

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


How reproducible:
100%

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Tal Nisan 2017-01-15 18:22:56 UTC
While a patch disabling the feature in the UI was introduced (see trackers), the feature should be first and foremost disabled in the backend both for the UI and more important the REST API calls

Comment 2 Tal Nisan 2017-01-15 18:26:49 UTC
Arik, I've disabled it for all flows aside for import VM as in that flow it's a reasonable scenario to export a VM with lease from 4.1 setup and import it to a 4.0 setup.
I thought to import without adding the lease and issue an audit log about it, what do you think?

Comment 3 Arik 2017-01-16 14:34:47 UTC
(In reply to Tal Nisan from comment #2)
> Arik, I've disabled it for all flows aside for import VM as in that flow
> it's a reasonable scenario to export a VM with lease from 4.1 setup and
> import it to a 4.0 setup.
> I thought to import without adding the lease and issue an audit log about
> it, what do you think?

Makes sense.

Comment 4 Lilach Zitnitski 2017-01-23 14:38:30 UTC
--------------------------------------
Tested with the following code:
----------------------------------------
ovirt-engine-4.1.0.3-0.0.master.20170123115434.git8a69605.el7.centos.noarch
vdsm-4.19.2-1.el7.centos.x86_64

Tested with the following scenario:

Steps to Reproduce:
1. create new vm in 4.0 cluster
2. configure this vm High available and create vm lease

Actual results:
can't create the vm with vm lease, VM leases are not supported for this virtual machine compatibility version.

Expected results:

Moving to VERIFIED!