Bug 1535573 - [REST API] External network creation response body returns invalid external provider ID
Summary: [REST API] External network creation response body returns invalid external p...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.2
: ---
Assignee: Dominik Holler
QA Contact: Mor
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-17 16:07 UTC by Mor
Modified: 2018-03-29 11:19 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.2.2
Clone Of:
Environment:
Last Closed: 2018-03-29 11:19:34 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
logs (4.63 MB, application/octet-stream)
2018-01-17 16:16 UTC, Mor
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 86502 0 master MERGED restapi: Fix mapping of external provider 2018-01-29 18:25:39 UTC

Description Mor 2018-01-17 16:07:51 UTC
Description of problem:
When creating external network through oVirt REST API:

Sending POST on https://<server>/ovirt-engine/api/networks with body:
<network>
 <name>test</name>
 <external_provider id=[EP_ID]/>
 <data_center id=[DC_ID]/>
</network>

Results in:
HTTP CREATED (201)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
...
...
<network href="/ovirt-engine/api/networks/<NET_ID>" id="<NET_ID>">    
    <external_provider href="/ovirt-engine/api/openstacknetworkproviders/<WRONG_ID>" id="<WRONG_ID>"/>
</network>

<WRONG_ID> is invalid provider ID.

Version-Release number of selected component (if applicable):
RHV 4.2.1.1-0.1.el7

How reproducible:
100%

Steps to Reproduce:
1. Create 'test' network using REST and attach it to external provider ID.

Actual results:
Invalid response for external provider ID.

Expected results:
Should be valid.

Additional info:

Comment 1 Mor 2018-01-17 16:16:12 UTC
Created attachment 1382561 [details]
logs

Comment 2 Mor 2018-02-28 08:37:06 UTC
Verified on:
RHV Version 4.2.2.1-0.1

Comment 3 Sandro Bonazzola 2018-03-29 11:19:34 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

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