Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-56611

Leaving Open vSwitch bridge mapping empty causes cluster network to fail

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      splat has a SNO cluster that we need to configure a bridge on. I unknowingly added a new bridge without adding a ovs bridge mapping which caused cluster networking to fail.

      The bridge mapping within OVS was set to ":,"

      [root@a9 ~]# sudo ovs-vsctl get Open_vSwitch . external_ids
      {hostname=a9.c4.3ba9.ip4.static.sl-reverse.com, ovn-bridge-mappings=":,physnet:br-ex",ovn-enable-lflow-cache="true", ovn-encap-ip="169.59.196.169", ovn-encap-type=geneve, ovn-is-interconn="true", ovn-memlimit-lflow-cache-kb="1048576", ovn-monitor-all="true", ovn-ofctrl-wait-before-clear="0", ovn-openflow-probe-interval="180", ovn-remote="unix:/var/run/ovn/ovnsb_db.sock", ovn-remote-probe-interval="180000", ovn-set-local-ip="true", rundir="/var/run/openvswitch", system-id="53cb5a29-1f91-402e-b7dc-650715c7d30d"}
      
      [root@a9 NetworkManager]# nmstatectl show --json
      [2025-05-21T19:30:13Z INFO  nmstatectl] Nmstate version: 2.2.40
      NmstateError: InvalidArgument: Cannot convert : to OvnBridgeMapping, expected format is `<localnet>:<bridge>`
      [root@a9 NetworkManager]# 
      

          Version-Release number of selected component (if applicable):{code:none}
      
          

      How reproducible: I am assuming always

          Steps to Reproduce:{code:none}
          1. Create NNCP policy with UI and empty OVN localnet, and OVS bridge name
      
          

      Actual results:

      
          

      Expected results: validation that stops the creation of an empty bridge mapping

          Additional info:{code:none}
      
          

              upalatuc@redhat.com Ugo Palatucci
              jcallen@redhat.com Joseph Callen
              None
              None
              Guohua Ouyang Guohua Ouyang
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: