Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2016297

Summary: Nmstate rust should support OVS interface
Product: Red Hat Enterprise Linux 9 Reporter: Gris Ge <fge>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: unspecified Docs Contact:
Priority: high    
Version: 9.0CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 9.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-2.0.0-0.1.alpha4.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:32:35 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 2021-10-21 08:39:38 UTC
Description of problem:

Nmstate rust code should passing all existing tests in CI and downstream.


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 2021-11-04 10:34:26 UTC
I've tested the patch manually when reviewing it. In addition, the CI tests are passing.

Comment 4 Mingyu Shi 2022-01-17 01:10:05 UTC
Verified with versions:
nmstate-2.0.0-0.7.alpha6.el9.x86_64
nispor-1.2.3-1.el9.x86_64
NetworkManager-1.36.0-0.3.el9.x86_64
openvswitch2.15-2.15.0-33.el9fdp.x86_64
kernel 5.14.0-42.el9.x86_64

cat << EOF > rust-ovs.yaml
interfaces:
- name: rust-ovsbr0
  type: ovs-bridge
  state: up
  bridge:
    port:
    - name: rust-ovs0
    - name: rust-dummy27
    - name: rust-ovsbond0
      vlan:
        mode: access
        tag: 0
      link-aggregation:
        mode: balance-slb
        port:
        - name: rust-dummy28
        - name: rust-ovs1
      vlan:
        mode: trunk
        tag: 1
    - name: rust-ovsbond2
      link-aggregation:
        mode: balance-tcp
        port:
        - name: rust-dummy30
        - name: rust-dummy31
- name: rust-ovs0
  type: ovs-interface
  state: up
- name: rust-ovs1
  type: ovs-interface
  state: up

- {name: rust-dummy27, type: dummy, state: up}
- {name: rust-dummy28, type: dummy, state: up}
- {name: rust-dummy29, type: dummy, state: up}
- {name: rust-dummy30, type: dummy, state: up}
- {name: rust-dummy31, type: dummy, state: up}
EOF

[08:59:40@dell-per740-33 ~]0# nmstatectl-rust set rust-ovs.yaml 
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team4 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team2 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team5 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team3 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team1 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0vrf0 type Vrf
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team0 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team4 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team5 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team0 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team1 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team2 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0team3 type Other("team")
[2022-01-17T01:04:09Z WARN  nmstate::nispor::show] Got unsupported interface g0vrf0 type Vrf
---
dns: {}
rules: {}
routes: {}
interfaces:
  - name: rust-dummy27
    type: dummy
    state: up
  - name: rust-dummy28
    type: dummy
    state: up
  - name: rust-dummy29
    type: dummy
    state: up
  - name: rust-dummy30
    type: dummy
    state: up
  - name: rust-dummy31
    type: dummy
    state: up
  - name: rust-ovs0
    type: ovs-interface
    state: up
  - name: rust-ovs1
    type: ovs-interface
    state: up
  - name: rust-ovsbr0
    type: ovs-bridge
    state: up
    bridge:
      port:
        - name: rust-ovs0
        - name: rust-dummy27
        - name: rust-ovsbond0
          link-aggregation:
            mode: balance-slb
            port:
              - name: rust-dummy28
              - name: rust-ovs1
        - name: rust-ovsbond2
          link-aggregation:
            mode: balance-tcp
            port:
              - name: rust-dummy30
              - name: rust-dummy31

[09:04:54@dell-per740-33 ~]0# nmstatectl-rust show rust-ovsbr0
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0team3 type Other("team")
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0vrf0 type Vrf
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0team5 type Other("team")
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0team1 type Other("team")
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0team0 type Other("team")
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0team2 type Other("team")
[2022-01-17T01:05:10Z WARN  nmstate::nispor::show] Got unsupported interface g0team4 type Other("team")
---
dns-resolver: {}
route-rules: {}
routes: {}
interfaces:
  - name: rust-ovsbr0
    type: ovs-bridge
    state: up
    ipv4:
      enabled: false
    ipv6:
      enabled: false
    bridge:
      options:
        stp: false
        rstp: false
        mcast-snooping-enable: false
        fail-mode: ""
      port:
        - name: rust-ovs0
        - name: rust-dummy27
        - name: rust-ovsbond0
          link-aggregation:
            mode: balance-slb
            port:
              - name: rust-dummy28
              - name: rust-ovs1
        - name: rust-ovsbond2
          link-aggregation:
            mode: balance-tcp
            port:
              - name: rust-dummy30
              - name: rust-dummy31

[09:05:10@dell-per740-33 ~]0# nmstatectl-rust show rust-ovs0
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0vrf0 type Vrf
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0team4 type Other("team")
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0team0 type Other("team")
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0team1 type Other("team")
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0team5 type Other("team")
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0team3 type Other("team")
[2022-01-17T01:05:36Z WARN  nmstate::nispor::show] Got unsupported interface g0team2 type Other("team")
---
dns-resolver: {}
route-rules: {}
routes: {}
interfaces:
  - name: rust-ovs0
    type: ovs-interface
    state: up
    mac-address: "B6:F0:2B:21:72:AB"
    mtu: 1500
    ipv4:
      enabled: false
    ipv6:
      enabled: false
    controller: rust-ovsbr0
    accept-all-mac-addresses: false

Comment 6 errata-xmlrpc 2022-05-17 12:32:35 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 (new packages: nmstate), 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:2338