Bug 1327278 - [REST API] Template does not inherit usb support type from parent Vm if it is set to 'native' when create via API
Summary: [REST API] Template does not inherit usb support type from parent Vm if it is...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 3.6.5.1
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.3
Assignee: Shahar Havivi
QA Contact: sefi litmanovich
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-14 16:13 UTC by sefi litmanovich
Modified: 2017-02-15 14:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-02-15 14:57:19 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
gklein: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 71017 0 master MERGED api: cannot enable usb via the api 2017-01-24 10:38:29 UTC
oVirt gerrit 71076 0 ovirt-engine-4.1 MERGED api: cannot enable usb via the api 2017-01-24 12:26:59 UTC

Description sefi litmanovich 2016-04-14 16:13:32 UTC
Version-Release number of selected component (if applicable):


How reproducible:
rhevm-3.6.5.3-0.1.el6.noarch

Steps to Reproduce:
1. Create a vm (via webadmin or api) -> set graphic protocal=spice, enable USB support and set to native.
2. Create a new template from this vm using the api:

https://{engine_url}/ovirt-engine/api/templates/

POST:
Content-Type=application/xml
Accept=application/xml

<template>
    <name>test_template</name>
    <vm id="{vm_id}"/>
</template>

3.

Actual results:
Template is created but usb support is set to 'disabled'.

Expected results:
Template is created, usb support is enabled and set to 'native'.

Additional info:

Comment 1 sefi litmanovich 2017-02-01 15:36:54 UTC
Verified with rhevm-4.1.0.3-0.1.el7 according to steps in description.


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