Description of problem: When creating a VM lease through the REST API the storage domain should be validated to be: 1. Existing 2. In an UP status 3. To be a part of the storage pool the VM belongs to Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
-------------------------------------- Tested with the following code: ---------------------------------------- ovirt-engine-4.1.0.3-0.0.master.20170123115434.git8a69605.el7.centos.noarch Tested with the following scenario: Steps to Reproduce: 1. try to create vm lease while storage domain in maintenance mode 2. try to create vm lease while storage domain id does not exist 3. try to create vm lease while storage domain is attached to another dc Actual results: Error is shown that the storage domain is in maintenance mode / does not exist (according to the test) Expected results: Moving to VERIFIED!