Bug 1937310 - [REST] live update of the network filter parameter does not update the libvirt XML on the host
Summary: [REST] live update of the network filter parameter does not update the libvir...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.4.5.8
Hardware: All
OS: Linux
high
high
Target Milestone: ovirt-4.4.6
: 4.4.6.3
Assignee: eraviv
QA Contact: Guy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-10 11:01 UTC by Guy
Modified: 2021-05-05 05:36 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.4.6.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-05 05:36:07 UTC
oVirt Team: Network
Embargoed:
pm-rhel: ovirt-4.4+
aoconnor: blocker-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 113887 0 master MERGED restapi: live update vnic network filter parameter 2021-03-29 09:47:16 UTC
oVirt gerrit 113888 0 master MERGED restapi: live add vnic network filter parameters 2021-03-29 09:47:20 UTC
oVirt gerrit 113889 0 master MERGED restapi: live remove vnic network filter parameter 2021-03-29 09:47:22 UTC

Description Guy 2021-03-10 11:01:08 UTC
Description of problem:

When trying to update network filter parameter on a live update through the rest api (running VM), then the DB is getting updated (presented in the UI), but in fact the libvirt XML on the host does not get updated.

Note: It's worth to mention that it is reproducible only through rest api. In case making a live update through the UI, then the libvirt XML on the host is getting updated well.


Version-Release number of selected component (if applicable): ovirt-engine-4.4.5.8-0.1.el8ev.noarch


How reproducible: always 


Steps to Reproduce:
1. create network filter parameter on VM vNIC.
2. start the VM.
3. try to update the network filter value through the rest API using the following request:

PUT <engine_fqdn>/vms/<vm_id>/nics/<nic_id>/networkfilterparameters/<network_filter_id>

body request: 

<network_filter_parameter>
  <name><any_filter_name></name>
  <value>any_filter_value</value>
</network_filter_parameter>


Actual results:

the ovirt engine returns 200 OK and a valid body response and the UI is getting updated indeed, but the libvirt XML on the host is not.

Expected results:

the UI is getting updated and libvirt XML on the host gets updated too.

Comment 2 Martin Perina 2021-03-10 12:49:37 UTC
Workaround is to use UI until RESTAPI part is fixed

Comment 3 RHEL Program Management 2021-03-10 12:49:40 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 4 Guy 2021-04-12 13:46:08 UTC
verified POST {fqdn}/ovirt-engine/api/vms/{vm_id}/nics/{nic_id}/networkfilterparameters works as expected

verified PUT {fqdn}/ovirt-engine/api/vms/{vm_id}/nics/{nic_id}/networkfilterparameters/{network_filter_id} works as expected

verified DELETE {fqdn}/ovirt-engine/api/vms/{vm_id}/nics/{nic_id}/networkfilterparameters/{network_filter_id} works as expected

engine version ovirt-engine-4.4.6.3-0.8.el8ev.noarch

Comment 5 Sandro Bonazzola 2021-05-05 05:36:07 UTC
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021.

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