← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1810349] Re: agent gw ports created on non dvr destination hosts

 

Reviewed:  https://review.opendev.org/628071
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=dcdb6e1c8aea8fd0f425097c9db0a140a2cf6104
Submitter: Zuul
Branch:    master

commit dcdb6e1c8aea8fd0f425097c9db0a140a2cf6104
Author: Enyinna Ochulor <enyinna.ochulor@xxxxxxxxx>
Date:   Wed Jan 2 15:45:58 2019 +0000

    Fixes agent gw port creation
    
    This prevents agent gw ports created in cases where the fip is not
    serviced by a dvr enable router. Also, when the router is not DVR
    enabled, deleting the gw port becomes a problem even after the router
    attachments to the external network are deleted. This fix creates the
    agent gw port only if the router associated with the fip is distributed.
    
    Closes-Bug: #1810349
    Co-Authored-By: Allain Legacy <allain.legacy@xxxxxxxxxxxxx>
    Co-Authored-By: Matt Peters <Matt.Peters@xxxxxxxxxxxxx>
    Co-Authored-By: Matt Welch <matt.welch@xxxxxxxxx>
    
    Change-Id: Ibcf087136e30535678c7600bac6ce4d621afe830
    Signed-off-by: Enyinna Ochulor <enyinna.ochulor@xxxxxxxxx>


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

Title:
  agent gw ports created on non dvr destination hosts

Status in neutron:
  Fix Released

Bug description:
  When a VM is migrated between nodes, and due to the l3 dvr scheduler,
  floatingip agent gateway ports are created in non-DVR cases. The
  'dvr_handle_new_service_port' method in the 'l3_dvrscheduler_db'
  module calls
  'check_for_fip_and_create_agent_gw_port_on_host_if_not_exist' method
  in 'l3_dvr_db' module and an agent gateway port is created for the
  agent at the destination host with or without a DVR enabled router on
  the destination host.

  This is an optimization for cases with a DVR enabled router on the
  destination host since the agent would do it instead.

  For cases where the router is not DVR enabled, the unused gateway port
  will have nothing to delete it even if all the router attachments to
  the external network are deleted.

  The proposed fix creates the agent gw port only if the FIP associated
  to the VM port is being serviced by a DVR enabled router.

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


References