Bug 1343672 - stateful flag under vm_pool entity is missing from API
Summary: stateful flag under vm_pool entity is missing from API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.0.0-rc3
: 4.0.0
Assignee: Martin Betak
QA Contact: sefi litmanovich
URL:
Whiteboard:
Depends On:
Blocks: 1234394
TreeView+ depends on / blocked
 
Reported: 2016-06-07 16:06 UTC by sefi litmanovich
Modified: 2016-07-05 07:43 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-07-05 07:43:09 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 58047 0 None None None 2016-06-07 16:06:24 UTC
oVirt gerrit 58991 0 master MERGED restapi: Expose vm_pool.stateful field 2016-06-10 17:04:47 UTC
oVirt gerrit 58997 0 master MERGED restapi: Update to model 4.0.21 and metamodel 1.0.14 2016-06-10 16:46:43 UTC
oVirt gerrit 59014 0 ovirt-engine-4.0 MERGED restapi: Expose vm_pool.stateful field 2016-06-13 11:02:25 UTC
oVirt gerrit 59015 0 ovirt-engine-4.0 MERGED restapi: Update to model 4.0.21 and metamodel 1.0.14 2016-06-12 21:43:33 UTC

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.


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