DB consistency: lack of full security group information when notify precommit message of security group creating
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
In Progress
|
Undecided
|
ding bo |
Bug Description
For some mechanism drivers, it is important to know the full information of a newly created security group in pre commit message including security group id and default rules. The reason is that, some mechanism drivers should write every operations on a journal table to sync neutron operations to their own south-bound controller. In order to ensure ACID, they must sync into journal table in the pre commit phase instead post commit phase. However, the whole information only can be known in post commit message of security group creation. So, we should enrich such information in the pre commit message.
Related code:
def create_
"""Create security group.
If default_sg is true that means we are a default security group for
a given tenant if it does not exist.
"""
s = security_
kwargs = {
}
tenant_id = s['tenant_id']
if not default_sg:
with db_api.
if default_sg:
for ethertype in ext_sg.
if default_sg:
return secgroup_dict
https:/
Changed in neutron: | |
assignee: | nobody → ding bo (longddropt) |
Fix proposed to branch: master /review. openstack. org/356851
Review: https:/