[CONTROLLER-844] Bulk delete of all flows leaves flows dangling in the network Created: 17/Sep/14  Updated: 19/Oct/17  Resolved: 05/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: Helium
Fix Version/s: None

Type: Bug
Reporter: Jan Medved Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File config_cleanup.py     File flow_config_perf.py    
External issue ID: 1920

 Description   

When a large number of flows is deleted from the config space in a single operation (e.g. a REST call with xpath 'restconf/config/opendaylight-inventory:nodes', which means delete all node configurations), the delete process stalls before all flows are deleted. Consequently, some flows are left in the network.

To reproduce:
1. Start the controller.

2. Start mininet with 3 nodes (OF1.0 or OF1.3 - does not matter, the issue
occurs with both)

3. Drive 32000 flows into mininet using the attached python script:
> python flow_config_perf.py --nflows 200 --nthreads=10 --ncycles 16 --no-delete

4. Validate in mininet that flows have been programmed into the network

5. Perform the bulk delete operation using the attached python script:
> python config_cleanup.py

6. Validate in mininet that flows have NOT been deleted (which would be
the expected outcome)



 Comments   
Comment by Jan Medved [ 17/Sep/14 ]

Attachment flow_config_perf.py has been added with description: flow_config_perf.py

Comment by Jan Medved [ 17/Sep/14 ]

Attachment config_cleanup.py has been added with description: config_cleanup.py

Comment by Jan Medved [ 17/Sep/14 ]

It somehow related to the large number of flows per node. The problem does not occur with 256 nodes in mininet, where there are roughly ~125 flows per node. With 3 nodes, there are ~11000 flows per node, which seems to be a problem.

Comment by Jan Medved [ 17/Sep/14 ]

Priority raised to blocker, since analysis indicates inherent deadlocks in the openflow plugin

Comment by Jan Medved [ 24/Sep/14 ]

Fixed with https://git.opendaylight.org/gerrit/10294

Comment by Carol Sanders [ 05/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Generated at Wed Feb 07 19:54:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.