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

Bug 1646375

Summary: [Rest API] GET request ovirt-engine/api/instancetypes/[ID]/graphicsconsoles results with null
Product: [oVirt] ovirt-engine Reporter: Pedut <pchocron>
Component: RestAPIAssignee: Andrej Krejcir <akrejcir>
Status: CLOSED CURRENTRELEASE QA Contact: Pedut <pchocron>
Severity: high Docs Contact:
Priority: low    
Version: 4.3.0CC: bugs, mavital, michal.skrivanek, pagranat, ratamir, rbarry, Rhev-m-bugs
Target Milestone: ovirt-4.3.0Keywords: Automation, Regression
Target Release: ---Flags: rule-engine: ovirt-4.3+
rule-engine: blocker+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.3.0_rc Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-13 07:46:39 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:
Attachments:
Description Flags
graphicsconsoles v4.2 vs v4.3 none

Description Pedut 2018-11-05 13:33:22 UTC
Created attachment 1501890 [details]
graphicsconsoles v4.2 vs v4.3

Description of problem:

GET request ovirt-engine/api/instancetypes/[ID]/graphicsconsoles results with null

Version-Release number of selected component (if applicable):

Engine Version: 4.3.0-0.0.el7
OS Version: RHEL - 7.6 - 4.el7
LIBVIRT Version: libvirt-4.5.0-10.el7
VDSM Version: vdsm-4.30.1-29.el7

How reproducible:
100%

Steps to Reproduce:
1. Send GET request "ovirt-engine/api/instancetypes"
2. choose instance type from the received response and send GET request "/ovirt-engine/api/instancetypes/[INSTANCE TYPE ID]/graphicsconsoles"
3.

Actual results:
/ovirt-engine/api/instancetypes/[INSTANCE TYPE ID]/null/[GRAPHIC CONSOLE ID]

Expected results:
/ovirt-engine/api/instancetypes/[INSTANCE TYPE ID]/graphicsconsoles/[GRAPHIC CONSOLE ID]

Additional info:

2018-11-05 10:35:21,280 - MainThread - graphicsconsoles - DEBUG - Response body for GET request is:
<graphics_consoles>
    <graphics_console href="/ovirt-engine/api/instancetypes/1abb04a9-b052-49cf-897f-4c0abe6819ff/null/7370696365" id="7370696365">
        <protocol>spice</protocol>
        <instance_type href="/ovirt-engine/api/instancetypes/1abb04a9-b052-49cf-897f-4c0abe6819ff" id="1abb04a9-b052-49cf-897f-4c0abe6819ff"/>
    </graphics_console>
</graphics_consoles>

2018-11-05 10:35:51,652 - MainThread - root - INFO - Remove console None devices from the resource.
2018-11-05 10:36:03,189 - MainThread - graphicsconsoles - INFO - Using Correlation-Id: graphicsconsoles_delete_8601f661-83a2-46ad
2018-11-05 10:36:03,189 - MainThread - graphicsconsoles - DEBUG - DELETE request content is --  url:/ovirt-engine/api/instancetypes/1abb04a9-b052-49cf-897f-4c0abe6819ff/null/7370696365
2018-11-05 10:36:03,289 - MainThread - core_api - DEBUG - Request DELETE response time: 0.006
2018-11-05 10:36:03,290 - MainThread - graphicsconsoles - DEBUG - Cleaning Correlation-Id: graphicsconsoles_delete_8601f661-83a2-46ad
2018-11-05 10:36:03,291 - MainThread - graphicsconsoles - ERROR - Details was not found on body
2018-11-05 10:36:03,291 - MainThread - api_utils - ERROR - Failed to delete element NOT as expected:
        Status: 404
        Reason: Not Found

2018-11-05 10:36:03,292 - MainThread - graphicsconsoles - ERROR - Response code is not valid, expected is: [200, 202, 204], actual is: 404

Comment 1 Red Hat Bugzilla Rules Engine 2018-11-06 12:43:28 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Pedut 2018-11-27 12:35:36 UTC
Still reproduced in 4.3.0-0.2.master.20181121071050.gita8fcd23.el7.

Comment 3 Andrej Krejcir 2018-11-27 12:51:46 UTC
The package 4.3.0-0.2.master.20181121071050.gita8fcd23.el7 was build last week, and this change was merged to master only yesterday.

Please update the package and try again.

Comment 4 Pedut 2018-11-28 10:45:04 UTC
Verified on 4.3.0-0.2.master.20181127150027.gitd731af3.el7.

Comment 5 Sandro Bonazzola 2019-02-13 07:46:39 UTC
This bugzilla is included in oVirt 4.3.0 release, published on February 4th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.0 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.