Bug 1646375 - [Rest API] GET request ovirt-engine/api/instancetypes/[ID]/graphicsconsoles results with null
Summary: [Rest API] GET request ovirt-engine/api/instancetypes/[ID]/graphicsconsoles r...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
low
high
Target Milestone: ovirt-4.3.0
: ---
Assignee: Andrej Krejcir
QA Contact: Pedut
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-05 13:33 UTC by Pedut
Modified: 2019-02-13 07:46 UTC (History)
7 users (show)

Fixed In Version: ovirt-engine-4.3.0_rc
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2019-02-13 07:46:39 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.3+
rule-engine: blocker+


Attachments (Terms of Use)
graphicsconsoles v4.2 vs v4.3 (124.16 KB, image/png)
2018-11-05 13:33 UTC, Pedut
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 95695 0 master MERGED restapi: Fix links for GraphicsConsole of InstanceType 2018-11-26 12:29:49 UTC

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.


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