Bug 2040305

Summary: Nmstate rust should support ovsdb actions
Product: Red Hat Enterprise Linux 8 Reporter: Gris Ge <fge>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.6CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: 8.6Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:34:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gris Ge 2022-01-13 12:31:42 UTC
Description of problem:

The nmstate rust should support the same feature supported by python one:
 * Interface level ovsdb external_ids modification.

---
interfaces:
- name: br0
  type: ovs-bridge
  state: up
  bridge:
    port:
    - name: ovs0
    - name: eth1
  ovs-db:
    external_ids:
      gris: 10
- name: eth1
  type: ethernet
  state: up
  ovs-db:
    external_ids:
      gris: abc
- name: ovs0
  type: ovs-interface
  state: up
  ovs-db:
    external_ids:
      gris: abc

 * Global external_ids and other_config modification.

ovs-db:
  external_ids:
    hostname: el8
    ovn-bridge-mappings: provider:br-provider
    ovn-remote: "1"
    rundir: /var/run/openvswitch
    system-id: 0c773599-80ac-450b-85f3-ff71192743cf
  other_config:
    stats-update-interval: "10000"

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Fernando F. Mancera 2022-01-27 10:36:41 UTC
I have tested this with nmstate-rust. It is working fine, I didn't find any regression.

Comment 4 Mingyu Shi 2022-02-10 15:53:04 UTC
Verified with versions:
nmstate-1.2.1-0.2.alpha2.el8.x86_64
nispor-1.2.3-1.el8.x86_64
NetworkManager-1.36.0-0.7.el8.x86_64
openvswitch2.15-2.15.0-70.el8fdp.x86_64

The feature implemented, but there are some issues when compared the behavior with nmstate python, refer to:
https://bugzilla.redhat.com/show_bug.cgi?id=2053150
https://bugzilla.redhat.com/show_bug.cgi?id=2053100

Comment 6 errata-xmlrpc 2022-05-10 13:34:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nmstate bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:1772