Add precommit and postcommit support for security group in ML2

Registered by yalei wang

Neutron has already be able to make the agentless driver receive the BEFORE/AFTER event by neutron callback logic[1]. But callback logic has a flaw, that it has no ordering guarantee[2]. It works in most of the agentless cases, but when there is sync issue between neutron DB and the controller DB which mech driver leverages, order becomes important. For example, the update of the default security group rules would only work on the following created ports.

This spec will add new SecuritygroupContext, like network/port/subnet. And add related methods in ML2 by wrap the current security group class, with mech driver pre/post commit call.

[1] https://bugs.launchpad.net/neutron/+bug/1444112
[2] http://docs.openstack.org/developer/neutron/devref/callbacks.html

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
yalei wang
Direction:
Needs approval
Assignee:
yalei wang
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
Armando Migliaccio

Related branches

Sprints

Whiteboard

You are not supposed to create blueprints, please familiarize yourself with the updates in feature submission

http://docs.openstack.org/developer/neutron/policies/blueprints.html#rfe-submission-guidelines

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-securitygroup-support-for-ml2-mechdriver,n,z

Addressed by: https://review.openstack.org/240356
    Add precommit event for security group in ML2

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.