← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1609248] Re: HA: ha router failed to process floating IP

 

Reviewed:  https://review.openstack.org/351023
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=534803d85ee9d3ad9a198fab72e94417dbe78047
Submitter: Jenkins
Branch:    master

commit 534803d85ee9d3ad9a198fab72e94417dbe78047
Author: LIU Yulong <liuyulong@xxxxxx>
Date:   Thu Aug 4 14:16:37 2016 +0800

    Check the router gateway IPs prefixlen existence
    
    When we remove the router gateway, if it has multiple IPs
    for the gateway port, the router remove procedure will not
    work properly and will cause a router remove infinite loop.
    This is because the neutron server only gives the first (lowest)
    gateway IP a 'prefixlen', and not the secondary IPs, so
    the router remove will get a KeyError.
    
    This patch adds a `prefixlen` check before removing the gateway IPs
    conntrack state.
    
    Change-Id: I425897578d8bd44f4e5f9dd44de9717ae4e50fcd
    Closes-Bug: #1609248


** 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/1609248

Title:
  HA: ha router failed to process floating IP

Status in neutron:
  Fix Released

Bug description:
  ENV:
  stable/mitaka

  hosts:
  compute1 (nova-compute, l3-agent (dvr), metedate-agent)
  compute2 (nova-compute, l3-agent (dvr), metedate-agent)
  network1 (l3-agent (dvr_snat), metedata-agent, dhcp-agent)
  network2 (l3-agent(dvr_snat), metedata-agent, dhcp-agent)

  How to reproduce:
  1. create a HA router
  neutron router-create --ha True --distributed False test1

  2. set the HA router gateway with more than one IP
  neutron router-gateway-set --fixed-ip ip_address=172.16.5.110 --fixed-ip ip_address=172.16.5.111 test1 public

  3. reset (update) the HA router  gateway IP with a lower IP address
  neutron router-gateway-set --fixed-ip ip_address=172.16.5.109 --fixed-ip ip_address=172.16.5.110 test1 public

  http://paste.openstack.org/show/547873/

  172.16.5.109 is lower than 172.16.5.110, then l3 agent will get the following trace:
  http://paste.openstack.org/show/547875/

  And then delete this HA router, the L3 agent will go to a infinite loop:
  http://paste.openstack.org/show/547876/

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


References