When update the subnet's gateway ip of the external network, the static route in OVNNB is not updated

Bug #1686288 reported by Guoshuai Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-ovn
Fix Released
Undecided
Guoshuai Li

Bug Description

When updating the subnet ip of the external network, the static route in OVNNB is not updated.

1. create external network
# openstack network create --provider-physical-network public --provider-network-type vlan --provider-segment 2515 --external --share ext_network

2. create external network's subnet
# openstack subnet create --subnet-range 10.157.145.0/24 --gateway 10.157.145.254 --network ext_network --allocation-pool start=10.157.145.240,end=10.157.145.250 ext_subnet

3. create router with external network
# openstack router create route1
# openstack router set --external-gateway ext_network route1

4. check static router in OVNNB
# ovn-nbctl list Logical_Router_Static_Route
nexthop: "10.157.145.254"

5. update subnet gateway_ip
# openstack subnet set --gateway 10.157.145.253 ext_subnet

4. check static router in OVNNB
# ovn-nbctl list Logical_Router_Static_Route
nexthop: "10.157.145.254"

Changed in networking-ovn:
assignee: nobody → Guoshuai Li (liguoshuai1990)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-ovn (master)

Fix proposed to branch: master
Review: https://review.openstack.org/459965

Changed in networking-ovn:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-ovn (master)

Reviewed: https://review.openstack.org/459965
Committed: https://git.openstack.org/cgit/openstack/networking-ovn/commit/?id=55cb70ccbca468d1965d17e5a76f260b8a046787
Submitter: Jenkins
Branch: master

commit 55cb70ccbca468d1965d17e5a76f260b8a046787
Author: Guoshuai Li <email address hidden>
Date: Wed Apr 26 14:45:14 2017 +0800

    fix no update OVNNB static-route when change external subnet's gateway_ip

    subscribe external network's SUBNET_GATEWAY event, and update OVNNB static-route.

    Change-Id: Ideee0fb6f22e1027e9e99bcd5ec6b1a8cb9d9e87
    Closes-Bug: #1686288
    Signed-off-by: Guoshuai Li <email address hidden>

Changed in networking-ovn:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn 3.0.0.0b2

This issue was fixed in the openstack/networking-ovn 3.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.