Bug 1343672

Summary: stateful flag under vm_pool entity is missing from API
Product: [oVirt] ovirt-engine Reporter: sefi litmanovich <slitmano>
Component: RestAPIAssignee: Martin Betak <mbetak>
Status: CLOSED CURRENTRELEASE QA Contact: sefi litmanovich <slitmano>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0CC: bugs, eedri, michal.skrivanek, slitmano
Target Milestone: ovirt-4.0.0-rc3Flags: rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 4.0.0   
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: 2016-07-05 07:43:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1234394    

Description sefi litmanovich 2016-06-07 16:06:25 UTC
Description of problem:

A new RFE adds the option to create a stateful vm pool, RFE and test plan can be seen from: https://bugzilla.redhat.com/show_bug.cgi?id=1234394.
As part of the RFE a stateful attribute should be added to API under vm_pool entity to provide user the option of creating a stateful pool via API as well as webadmin.
That attribute is currently missing.

Version-Release number of selected component (if applicable):
rhevm-4.0.0.2-0.1.el7ev.noarch

How reproducible:
always

Steps to Reproduce:
option 1:
1. Create a vm pool via API add to pool's xml:
<stateful>true</stateful>
option 2:
2. Create a vm pool via webadmin, set pool to stateful (type sub-tab of new vm pool menu)
3. look at vm_pool entity xml with API

Actual results:
option 1:
400 Bad Request
option 2:
no stateful attribute exist in vm pool entity.

Expected results:
stateful attribute does exist.

Comment 1 Yaniv Kaul 2016-06-08 15:34:14 UTC
v3 or v4 API?

Comment 2 Juan Hernández 2016-06-08 18:38:54 UTC
As this is a new feature it will only be available in version 4 of the API.

Note that as it isn't a backwards compatibility breaking change (adding a new attribute isn't) it can be also added to version 3 of the API, if deemed necessary.

Comment 3 Eyal Edri 2016-06-23 13:55:21 UTC
included in the last released build of ovirt-4.0.0-rc3

Comment 4 sefi litmanovich 2016-06-27 16:27:35 UTC
Verified with rhevm-4.0.0.6-0.1.el7ev.noarch according to description.
<stateful> flag exists in is set correctly in both cases true/false.
flag doesn't exist when using api v3 as expected according to comment2.

Comment 5 Sandro Bonazzola 2016-07-05 07:43:09 UTC
oVirt 4.0.0 has been released, closing current release.