Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-26753

Cannot create VLAN over OVS interface which shares the same name with ovs bridge

    • NetworkManager-1.47.3-1.el9
    • None
    • Important
    • ZStream
    • 1
    • sst_network_management
    • ssg_networking
    • 6
    • 2
    • False
    • Hide

      None

      Show
      None
    • No
    • NMT - RHEL-9.5 DTM 4
    • Approved Blocker
    • Hide

      Given a system administrator attempts to create a VLAN over an OVS internal interface named identically to its OVS bridge controller,
      When they execute the VLAN creation command,
      Then the VLAN should be created successfully without any errors related to interface name conflicts.

      Definition of Done:

      • The implementation meets the acceptance criteria
      • Unit test and integration test are written and pass
      • The code is part of a downstream build attached to an errata
      • The fix needs to be backported into RHEL-9.4
      Show
      Given a system administrator attempts to create a VLAN over an OVS internal interface named identically to its OVS bridge controller, When they execute the VLAN creation command, Then the VLAN should be created successfully without any errors related to interface name conflicts. Definition of Done: The implementation meets the acceptance criteria Unit test and integration test are written and pass The code is part of a downstream build attached to an errata The fix needs to be backported into RHEL-9.4
    • Pass
    • None
    • None

      What were you trying to do that didn't work?

      With OVS internal interface holding the same name as its controller OVS bridge, creating VLAN over this OVS internal interface will get error:

      Error: Connection activation failed: br0.101 failed to create resources: cannot retrieve ifindex of interface br0 (Open vSwitch Bridge)

      Please provide the package NVR for which bug is seen:

      NetworkManager-1.47.1-33100.copr.9920a4b576.el9.x86_64

      How reproducible:

      100%

      Steps to reproduce

      #!/bin/bash -ex
      
      echo '
      ---
      interfaces:
      - name: br0
        type: ovs-bridge
        state: up
        bridge:
          port:
          - name: br0
      - name: br0
        type: ovs-interface
        state: up
      ' | nmstatectl set -
      
      nmcli c add ifname br0.101 type vlan con-name br0.101 \
          vlan.parent br0 vlan.id 101
      nmcli c up br0.101
      

      Expected results

      No failure, VLAN been created over OVS internal interface

      Actual results

      Error: Connection activation failed: br0.101 failed to create resources: cannot retrieve ifindex of interface br0 (Open vSwitch Bridge)

              fge@redhat.com Gris Ge
              fge@redhat.com Gris Ge
              Gris Ge Gris Ge
              Vladimir Benes Vladimir Benes
              Mayur Patil Mayur Patil
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: