Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1585641

Summary: REST API doesn't return display -> type element for VM in VMpool with All-content header
Product: [oVirt] ovirt-engine Reporter: Lucie Leistnerova <lleistne>
Component: RestAPIAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Eli Mesika <emesika>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.4.1CC: bugs, lsvaty, mperina, rnori
Target Milestone: ovirt-4.2.5Keywords: Automation
Target Release: ---Flags: rule-engine: ovirt-4.2+
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: 2018-07-31 15:26:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lucie Leistnerova 2018-06-04 09:08:22 UTC
Description of problem:
Call /ovirt-engine/api/vmpools with 'All-content: True' doesn't return <type> element in VMpool -> VM -> display.


Version-Release number of selected component (if applicable):
ovirt-engine-restapi-4.2.4.1-0.1.el7.noarch

How reproducible: always


Steps to Reproduce:
1. create some template and VM pool from it with 1 VM
2. run url without all-content first

curl -k -u admin@internal:passwd -H "Prefer: persistent-auth" https://engine/ovirt-engine/api/vmpools

        <vm href="/ovirt-engine/api/vms/de711526-d5d9-4a2c-ba79-2ad6e81819fa" id="de711526-d5d9-4a2c-ba79-2ad6e81819fa">
            ...
            <display>
                <allow_override>false</allow_override>
                <copy_paste_enabled>true</copy_paste_enabled>
                <disconnect_action>LOCK_SCREEN</disconnect_action>
                <file_transfer_enabled>true</file_transfer_enabled>
                <monitors>1</monitors>
                <single_qxl_pci>false</single_qxl_pci>
                <smartcard_enabled>false</smartcard_enabled>
                <type>spice</type>
            </display>

3. now run it with all-content

curl -k -u admin@internal:passwd -H "Prefer: persistent-auth" -H "All-content: true" https://engine/ovirt-engine/api/vmpools

Actual results: vm -> display element doesn't contain <type>

        <vm href="/ovirt-engine/api/vms/de711526-d5d9-4a2c-ba79-2ad6e81819fa" id="de711526-d5d9-4a2c-ba79-2ad6e81819fa">
            ...
            <display>
                <allow_override>false</allow_override>
                <copy_paste_enabled>true</copy_paste_enabled>
                <disconnect_action>LOCK_SCREEN</disconnect_action>
                <file_transfer_enabled>true</file_transfer_enabled>
                <monitors>1</monitors>
                <single_qxl_pci>false</single_qxl_pci>
                <smartcard_enabled>false</smartcard_enabled>
            </display>



Expected results: <type>spice</type> should be there


Additional info:
<display> elements with/without All-content from /ovirt-engine/api/vms are both correct.

Comment 1 Sandro Bonazzola 2018-07-31 15:26:35 UTC
This bugzilla is included in oVirt 4.2.5 release, published on July 30th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.