Switch OVS agent to l2 agent extensions

Bug #1586024 reported by Haim Daniel
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
networking-sfc
Fix Released
Medium
Bernard Cafarelli

Bug Description

Currently the OVSSfcAgent inherits from OVSNeutronAgent in order to reuse it's code. This implementation has a few drawbacks:

1. Many lines of OVSNeutronAgent are still duplicated, as the overriden functions have no support for inserting sfc specific logic in them. This is considered bad practice according to the neutron stadium guidelines: http://docs.openstack.org/developer/neutron/stadium/sub_project_guidelines.html#code-reuse

2. This is fragile and each change in OVSNeutronAgent can potentially break the code, since the SfcAgent lives outside of the neutron tree, and there are no backwards api compatibility guarantees.

The more proper and robust way is by using l2 extensions as described here: http://docs.openstack.org/developer/neutron/devref/l2_agent_extensions.html#open-vswitch-agent-api

Tags: rfe
Haim Daniel (hdaniel)
description: updated
Changed in networking-sfc:
assignee: nobody → Haim Daniel (hdaniel)
Changed in networking-sfc:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to networking-sfc (master)

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

Haim Daniel (hdaniel)
Changed in networking-sfc:
assignee: Haim Daniel (hdaniel) → nobody
status: In Progress → New
Revision history for this message
Bernard Cafarelli (bcafarel) wrote :

I will take a look at it

Changed in networking-sfc:
assignee: nobody → Bernard Cafarelli (bcafarel)
Louis Fourie (lfourie)
Changed in networking-sfc:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-sfc (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on networking-sfc (master)

Change abandoned by Ihar Hrachyshka (<email address hidden>) on branch: master
Review: https://review.openstack.org/334398
Reason: I guess SFC folks go with longer approach: https://review.openstack.org/#/c/351789/ and won't land this as a short term fix.

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

Reviewed: https://review.openstack.org/351789
Committed: https://git.openstack.org/cgit/openstack/networking-sfc/commit/?id=518395e6b2ab028c6b3955fd96c074d6efb83527
Submitter: Jenkins
Branch: master

commit 518395e6b2ab028c6b3955fd96c074d6efb83527
Author: Bernard Cafarelli <email address hidden>
Date: Fri Aug 5 16:56:13 2016 +0200

    Replace OVSSfcAgent by a L2 agent extension

    Currently the OVSSfcAgent inherits from OVSNeutronAgent in order to
    reuse its code. This commit replaces it by a L2 agent extension.

    The L2 agent extension handles generic code, and dispatches specific
    code to driver modules.

    The only supported driver currently is Open vSwitch.

    This is enabled by adding sfc to agent->extensions configuration
    parameter in ml2_conf.ini

    Change-Id: I6bd4fd80e312d48287b2bc7b44e3cdcdf3bdf508
    Closes-Bug: #1586024

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

This issue was fixed in the openstack/networking-sfc 3.0.0 release.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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