← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2060828] Re: [OVN] Changing public network MTU does not update router port gateway_mtu option

 

Reviewed:  https://review.opendev.org/c/openstack/neutron/+/936723
Committed: https://opendev.org/openstack/neutron/commit/2f8dd4919b5e6f9a7f5006bcc8f3445bfccc1ff1
Submitter: "Zuul (22348)"
Branch:    master

commit 2f8dd4919b5e6f9a7f5006bcc8f3445bfccc1ff1
Author: Rodolfo Alonso Hernandez <ralonsoh@xxxxxxxxxx>
Date:   Fri Nov 29 11:17:46 2024 +0000

    [OVN] Update the LRP gateway_mtu when the external network changes
    
    During a external network MTU update, the OVN Logical_Switch cannot be
    updated yet. Instead of reading the value from the OVN datatabase,
    the LRP.options.gateway_mtu update uses the Neutron database object
    once updated, that contains the new MTU provided in the API call.
    
    Closes-Bug: #2060828
    Change-Id: Iaeced67cc8bc8f90136e7f264c85f4983a07264a


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/2060828

Title:
  [OVN] Changing public network MTU does not update router  port
  gateway_mtu option

Status in neutron:
  Fix Released

Bug description:
  High level description:
  If a neutron router is connected to a provider network 'A' and private geneve networks, a change of the provider network MTU does not always update router port gateway_mtu option even if provider network has MTU smaller than the private network.

  Reproduction scenario:

  openstack router create r1
  openstack router set --external-gateway public r1
  openstack network create net1
  openstack subnet create --subnet-range 192.168.100.0/24 --network net1 subnet1
  openstack router add subnet r1 subnet1

  stack@devstack:~/devstack$ crudini --get /etc/neutron/plugins/ml2/ml2_conf.ini ovn ovn_emit_need_to_frag
  True

  stack@devstack:~/devstack$ openstack router show r1 -c id -f value
  610f7fcb-40c2-4221-b535-8f5548de6fa5
  stack@devstack:~/devstack$ openstack port list --device-id=610f7fcb-40c2-4221-b535-8f5548de6fa5 --device-owner=network:router_gateway -c ID -f value
  c765a42c-9736-45b8-a2c9-c362bc221119

  stack@devstack:~/devstack$ openstack network show net1 -c mtu -f value
  1372
  stack@devstack:~/devstack$ openstack network show public -c mtu -f value
  1330
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"

  i.e. Private network has bigger mtu than the public one so the case
  described in https://bugs.launchpad.net/neutron/+bug/1951559 is not
  relevant and gateway_mtu option is expected to be updated after public
  mtu change

  stack@devstack:~/devstack$ openstack network set --mtu 1300 public
  stack@devstack:~/devstack$ openstack network show public -c mtu -f value
  1300
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"
  stack@devstack:~/devstack$ date
  Wed Apr 10 14:46:32 UTC 2024
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"
  Wed Apr 10 14:50:04 UTC 2024
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"
  stack@devstack:~/devstack$ openstack network show public -c mtu -f value
  1300
  Wed Apr 10 14:54:25 UTC 2024
  stack@devstack:~/devstack$ openstack network show public -c mtu -f value
  1300
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"
  stack@devstack:~/devstack$ date
  Wed Apr 10 14:57:30 UTC 2024
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"
  stack@devstack:~/devstack$ date
  Wed Apr 10 15:13:36 UTC 2024
  stack@devstack:~/devstack$ sudo ovn-nbctl --db=unix:/usr/local/var/run/ovn/ovnnb_db.sock get logical_router_port lrp-c765a42c-9736-45b8-a2c9-c362bc221119 options:gateway_mtu
  "1330"

  i.e. Router port gateway_mtu option remains unchanged for a long time
  after value in neutron db has been changed.

  Found on master devstack deployed on ubuntu-jammy.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2060828/+subscriptions



References