AttributeError when setting external gw in DVR case

Bug #1353006 reported by Armando Migliaccio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Armando Migliaccio

Bug Description

This has been found on master:

1) create a DVR router: neutron router-create test --distributed
2) set external gateway: neutron router-gateway-set test public
3) observe stacktrace: http://paste.openstack.org/show/90577/ in L3 Agent's log

This does not seem to upset the L3 Agent and its ability to work correctly, but it would be good to eradicate the trace.

Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

Setting to Medium because it is reported that it does not affect the agent's ability to work correctly. Agree with Armando that it should be fixed soon.

Also, tagged low-hanging-fruit.

Changed in neutron:
importance: Undecided → Medium
tags: added: low-hanging-fruit
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This is kind of a corner-case where the external gateway is set prior to adding an internal interface to the router. If we follow this workflow instead:

0) Create network/subnet "test"

1) create a DVR router: neutron router-create test --distributed
2) add router interface to subnet: neutron router-interface-add test test
3) set external gateway: neutron router-gateway-set test public

Everything goes smoothly.

description: updated
Changed in neutron:
assignee: nobody → Armando Migliaccio (armando-migliaccio)
summary: - L3 agent's attributeError when creating DVR router
+ AttributeError when setting external gw in DVR case
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: New → In Progress
Changed in neutron:
milestone: none → juno-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/112385

Changed in neutron:
assignee: Armando Migliaccio (armando-migliaccio) → Rajeev Grover (rajeev-grover)
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-3 → juno-rc1
Changed in neutron:
assignee: Rajeev Grover (rajeev-grover) → Armando Migliaccio (armando-migliaccio)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Armando Migliaccio (<email address hidden>) on branch: master
Review: https://review.openstack.org/112385

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/112146
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=608003408b3aba6a8290427257460287d8a4ce96
Submitter: Jenkins
Branch: master

commit 608003408b3aba6a8290427257460287d8a4ce96
Author: armando-migliaccio <email address hidden>
Date: Tue Aug 5 12:35:37 2014 -0700

    Fix AttributeError when setting external gateway on DVR router

    DVR routers will have this manager initialized only after one
    or more subnets have been attached to the router. To address
    the issue, make sure the manager is defined and handle the snat
    rules appropriately.

    This patch also makes _update_arp_entry more defensive; this is
    because the arp update process can be affected by the same issue:
    the router may not have internal ports at the time the request
    come in. This is likely when VM's port creation and router
    configuration overlap slightly.

    Closes-bug: #1353006

    Change-Id: Ib46852f5b264e5ef2e2d499d3351f8974e393011
    Co-authored-by: Rajeev Grover <email address hidden>

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-rc1 → 2014.2
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.