Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-15798

[BGP EVPN] edpm_ovn_bgp_agent_evpn_local_ip is not treated as optional parameter when edpm_ovn_bgp_agent_evpn_nic is defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • None
    • ovn-bgp-agent
    • None
    • Important

      As per the docs edpm_ovn_bgp_agent_evpn_local_ip need not be defined if edpm_ovn_bgp_agent_evpn_nic is defined, but that's not really the case when I deployed.

       cfg.IPOpt('evpn_local_ip',
                    default=None,
                    help='IP address of local EVPN VXLAN (tunnel) endpoint. '
                         'This option can be used instead of the evpn_nic one. '
                         'If none specified, it will take the one from the '
                         'loopback device.'),   
       cfg.StrOpt('evpn_nic',
                     default=None,
                     help='NIC with the IP address to use for the local EVPN '
                          'VXLAN (tunnel) endpoint. This option can be used '
                          'instead of the evpn_local_ip one. If none specified, '
                          'it will take the one from the loopback device.'), 

       

      Here is what I deployed with:

      [root@compute-0 cloud-admin]# cat /var/lib/config-data/ansible-generated/ovn-bgp-agent/etc/ovn-bgp-agent/bgp-agent.conf
      [DEFAULT]
      debug=True
      reconcile_interval=999999
      expose_tenant_networks=False
      expose_ipv6_gua_tenant_networks=False
      driver=nb_ovn_bgp_driver
      bgp_AS=64999
      bgp_nic=bgp-nic
      bgp_vrf=bgp-vrf
      bgp_vrf_table_id=10
      ovsdb_connection=tcp:127.0.0.1:6640
      exposing_method=vrf
      evpn_nic=nic5
      evpn_udp_dstport=4789
       
      [ovn]
      ovn_sb_private_key=/etc/pki/tls/private/ovndb.key
      ovn_sb_certificate=/etc/pki/tls/certs/ovndb.crt
      ovn_sb_ca_cert=/etc/pki/tls/certs/ovndbca.crt
      ovn_nb_private_key=/etc/pki/tls/private/ovndb.key
      ovn_nb_certificate=/etc/pki/tls/certs/ovndb.crt
      ovn_nb_ca_cert=/etc/pki/tls/certs/ovndbca.crt
       
      [agent]
      root_helper=sudo ovn-bgp-agent-rootwrap /etc/ovn-bgp-agent/rootwrap.conf
      root_helper_daemon=sudo ovn-bgp-agent-rootwrap-daemon /etc/ovn-bgp-agent/rootwrap.conf
      
      

      nic5 is actually enp4s0f0np0

      6: enp4s0f0np0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
          link/ether 04:3f:72:d9:c0:30 brd ff:ff:ff:ff:ff:ff
          inet 12.12.12.1/24 scope global enp4s0f0np0      
          valid_lft forever preferred_lft forever
      
      
      

      Error log:

      Apr 14 14:59:07 compute-0 ovn_bgp_agent[213257]: 2025-04-14 14:59:07.211 2 INFO ovn_bgp_agent.drivers.openstack.utils.wire [-] Network neutron-5b38eb5a-a7fe-4e36-a0da-c0dabf6ebf71 (settings: {'neutron:availability_zone_hints': '', 'neutron:mtu': '9000', 'neutron:network_name': 'provider1', 'neutron:provnet-network-type': 'flat', 'neutron:revision_number': '2', 'neutron_bgpvpn:type': 'l3', 'neutron_bgpvpn:vni':'1001'})#033[00m                                              
      Apr 14 14:59:07 compute-0 ovn_bgp_agent[213257]: 2025-04-14 14:59:07.212 2 ERROR ovn_bgp_agent.drivers.openstack.utils.evpn [-] EVPN device must have an IP associated for the VXLAN local ip#033[00m                                         
      Apr 14 14:59:07 compute-0 ovn_bgp_agent[213257]: 2025-04-14 14:59:07.213 2 DEBUG oslo_concurrency.lockutils [-] Lock "nbbgp" "released" by "ovn_bgp_agent.drivers.openstack.nb_ovn_bgp_driver.NBOVNBGPDriver.sync" :: held 1.570s inner /usr/lib/python3.9/site-packages/oslo_concurrency/lockutils.py:423#033[00m                                                                                               
      Apr 14 14:59:07 compute-0 ovn_bgp_agent[213257]: 2025-04-14 14:59:07.213 2 ERROR ovn_bgp_agent.agent [-] Unexpected exception while running the sync: Required driver conf option missing: CONF.evpn_local_ip: ovn_bgp_agent.exceptions.ConfOptionRequired: Required driver conf option missing: CONF.evpn_local_ip  
      

       

      Workaround:
      Define edpm_ovn_bgp_agent_evpn_local_ip.

              jlibosva Jakub Libosvar
              rh-ee-spk Spoorthi K (Inactive)
              rhos-dfg-networking-squad-bgp
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: