[NEUTRON-78] SecurityGroupCRUD is not updated when a security rule is created/delted Created: 29/Oct/15 Updated: 03/May/18 Resolved: 24/Mar/17 |
|
| Status: | Resolved |
| Project: | neutron |
| Component/s: | transcriber |
| Affects Version/s: | master |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Aswin Suryanarayanan | Assignee: | Isaku Yamahata |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 4550 |
| Priority: | High |
| Description |
|
When a security rules is created after creating a security group, the security rule list in security group object is not updated in the data store Steps to reproduce. If the Data store is checked the newly added rule is missing in the Security Group Model. Neutron DB Security Group Table
-------------------------------------
------------------------------------- Security Rule Table
-------------------------------------
------------------------------------- In Data Store Security Group Model { ] Security Rule Model , , { "id": "e491346d-a7dd-4c2a-8938-64163a00029e", "security-group-id": "44f759e7-79ae-46d6-ad59-a3c1446c82f1", "tenant-id": "27da8dfc-d61b-46ac-a5be-4533a4b7782c", "ethertype": "neutron-constants:ethertype-v4", "direction": "neutron-constants:direction-egress" } ] |
| Comments |
| Comment by Ravindra Kenchappa [ 28/Jan/16 ] |
|
There is a workaround: From the horizon after adding rule to security group, the security group needs to be modified (modify the SG description). After this the ODL data store gets updated. With out modifying the SG if we associate it with a VM then the rules will not be available in SG object and hence no flows gets added. |
| Comment by Sam Hague [ 28/Jan/16 ] |
|
Isaku, is there any idea why the mdsal does not update for this case? |
| Comment by Isaku Yamahata [ 31/Jan/16 ] |
|
Sam, let me look into this. |
| Comment by Isaku Yamahata [ 01/Feb/16 ] |
|
This is the result of the effort of transparent Neutron Northbound. Basically the list of security group rule in security group isn't updated. So what can ODL Neutron northbound do for Beryllium release? |
| Comment by Aswin Suryanarayanan [ 01/Feb/16 ] |
|
If the plan is to permanently remove the attribute from SecurityGroup, I think we may change the logic in net-virt to use the security group id in the security rule. |
| Comment by Isaku Yamahata [ 03/Feb/16 ] |
|
https://git.opendaylight.org/gerrit/#/c/33957/ Do the above patches help? |
| Comment by Isaku Yamahata [ 13/Feb/16 ] |
|
patch for ovsdb/netvirt https://git.opendaylight.org/gerrit/#/c/34003/ was merged for Beryllium. The patch for neutron targets Beryllium-SR1. The patch for master(Boron) of neutron The patch for Beryllium-SR1 of neutron |