Bug 1548348 - Updating external network provider via REST-API overwrites additionalProperties with default values
Summary: Updating external network provider via REST-API overwrites additionalProperti...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.2.1.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.2.2
: ---
Assignee: Dominik Holler
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-23 09:27 UTC by Dominik Holler
Modified: 2018-03-29 10:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-29 10:57:25 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
script which should set read_only to False (1.90 KB, text/x-python)
2018-02-23 09:27 UTC, Dominik Holler
no flags Details
script which should set read_only to False (1.90 KB, text/x-python)
2018-02-23 09:42 UTC, Dominik Holler
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 87797 0 master MERGED restapi: Respecting template in OpenstackNetworkProviderProperties 2018-02-23 11:29:17 UTC
oVirt gerrit 88119 0 ovirt-engine-4.2 MERGED restapi: Respecting template in OpenstackNetworkProviderProperties 2018-02-26 12:52:54 UTC

Description Dominik Holler 2018-02-23 09:27:52 UTC
Created attachment 1399779 [details]
script which should set read_only to False

Description of problem: On updating an OpenStackNetworkProvider, additionalProperties, e.g. read_only, are overwritten by default values instead of using the previous values.


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


How reproducible: Update OpenStackNetworkProvider via REST-API like in the attached script


Steps to Reproduce:
1. Update OpenStackNetworkProvider via REST-API
2.
3.

Actual results: Not updated additionalProperties like read_only are reset to default values.


Expected results: Not updated AdditionalProperties like read_only should remain the same value as before the update.


Additional info:

Comment 1 Dominik Holler 2018-02-23 09:42:23 UTC
Created attachment 1399793 [details]
script which should set read_only to False

Comment 2 Michael Burman 2018-03-06 15:30:32 UTC
Verified on - 4.2.2.2-0.1.el7

Comment 3 Sandro Bonazzola 2018-03-29 10:57:25 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.