Bug 2113871

Summary: OVS VLAN not working
Product: Red Hat Enterprise Linux 9 Reporter: Mingyu Shi <mshi>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.1CC: ferferna, jiji, jishi, network-qe, till
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nmstate-2.2.2-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 07:31:01 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:
Attachments:
Description Flags
all_ifaces_dummy.yml none

Description Mingyu Shi 2022-08-02 08:32:27 UTC
Created attachment 1902801 [details]
all_ifaces_dummy.yml

Description of problem:
Failed to create all-types interfaces.

Version-Release number of selected component (if applicable):
nmstate-2.1.3-1.el9.x86_64
NetworkManager-1.39.10-1.el9.x86_64
openvswitch2.15-2.15.0-66.el9fdp.x86_64

How reproducible:
100%

Steps to Reproduce:
nmstatectl apply all_ifaces_dummy.yml

Actual results:
NmstateError: VerificationError: Verification failure: g0ovsbr0.interface.bridge.port[2].vlan desire '{"mode":"access","tag":0}', current 'null'

Expected results:
No failure

Additional info:
A simplified YAML file for the error is:
interfaces:
  - name: g0ovsbr0
    type: ovs-bridge
    state: up
    bridge:
      port:
        - name: g0ovs0
        - name: g0dummy27
        - name: g0ovsbond0
          vlan:
            mode: access
            tag: 0
          link-aggregation:
            mode: balance-slb
            port:
              - name: g0dummy28
              - name: g0dummy29
  - {name: g0dummy27, type: dummy, state: up}
  - {name: g0dummy28, type: dummy, state: up}
  - {name: g0dummy29, type: dummy, state: up}

But as the bug in https://bugzilla.redhat.com/show_bug.cgi?id=2092310 ever masked the current problem, I recommend to use the all-types state file in the attachment to verify.

Comment 1 Gris Ge 2022-12-09 11:55:13 UTC
Patch sent to https://github.com/nmstate/nmstate/pull/2154

Comment 5 Mingyu Shi 2023-01-09 04:15:47 UTC
Verified with:
nmstate-2.2.2-2.el9.x86_64
nispor-1.2.9-1.el9.x86_64
NetworkManager-1.41.7-2.el9.x86_64
DISTRO=RHEL-9.2.0-20230102.0

Comment 7 errata-xmlrpc 2023-05-09 07:31:01 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/RHBA-2023:2190