Description of problem: To add a lease using gui, you must enable high availability first, while using REST you can add lease without enabling HA, and I think there should be no difference between the gui and the rest. Also, when adding lease using the REST without enabling first the HA, it make it possible to do so in the gui (adding lease without enabling the HA). I think when adding lease using REST, it should fail if high availability is disabled, or the add lease command will automatically change the HA as well.
-------------------------------------- Tested with the following code: ---------------------------------------- rhevm-4.1.1.2-0.1.el7.noarch vdsm-4.19.6-1.el7ev.x86_64 Tested with the following scenario: Steps to Reproduce: 1. add vm lease using rest api while high-availability is disabled 2. Actual results: operation fails, can't add lease while high availability is set to false Expected results: Moving to VERIFIED!