[OPNFLWPLUG-762] When OpenFlow-capable switch goes down while RPC {add,remove,update}-flow is invoked, RESTCONF sockets are leaked Created: 02/Sep/16 Updated: 27/Sep/21 Resolved: 08/Sep/16 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Alexis de Talhouët | Assignee: | Andrej Leitner |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Attachments: |
|
| External issue ID: | 6625 |
| Description |
|
When OpenFlow-capable switch goes down while invoking RPC {add,remove,update}-flow, RESTCONF socket are leaked, ending in CLOSE_WAIT state. HOW TO REPRODUCE: --> Observe result are: In a scaled environment, while provisioning switches, network can flap, thus failing those operations. Even though nobody has complained about this, I believe this is a critical BUG as a fairly easy reproducible bug. |
| Comments |
| Comment by Alexis de Talhouët [ 02/Sep/16 ] |
|
Attachment add-flow.sh has been added with description: add-flow script |
| Comment by Alexis de Talhouët [ 02/Sep/16 ] |
|
Proposed fix: |
| Comment by Alexis de Talhouët [ 02/Sep/16 ] |
|
I better fix should be provided to make this configurable. |
| Comment by Andrej Leitner [ 06/Sep/16 ] |
|
Hi Alexis, |
| Comment by Alexis de Talhouët [ 06/Sep/16 ] |
|
Andrej, I understand what I've done isn't the right thing, as I believe I underlined this as well |
| Comment by Andrej Leitner [ 07/Sep/16 ] |
|
Hi Alexis, (ad a.) I do not see looping script hanging. It continues sending requests and getting (unsuccesful) responses. (ad b. ii.) After stopping loop socket changed to CLOSE_WAIT for a while and closed then. Could you test it again with latest codebase? Question for me is who should take care of flying requests during device disconnect. Now I see as the error in last rest response OutboundQueueException from openflowjava with Device disconnected message. If we would actively fail requests from openflowplugin we can get around the exception and fail only with error message. |
| Comment by Alexis de Talhouët [ 07/Sep/16 ] |
|
> Could you test it again with latest codebase? I recompiled ofj and ofp and re-tested the scenario but I'm still facing same issue. I was never able to get it working as you did. Maybe artifacts weren't yet published to nexus. |
| Comment by Alexis de Talhouët [ 08/Sep/16 ] |
|
I have just retried with fresh recompilation of ofj and ofp, I can say that this BUG is indeed fix. AFAIK it is related the fix is related to this patch: https://git.opendaylight.org/gerrit/#/c/45231/ So this BUG might have been a duplicate of Thanks Andrej. |