[OPNFLWPLUG-887] After karaf restart OF writes fail due to "No queue present, failing request" in OutboundQueueProviderImpl Created: 09/May/17 Updated: 27/Sep/21 Resolved: 17/May/17 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Josh Hershberg | Assignee: | Unassigned |
| 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: | 8401 |
| Priority: | Highest |
| Description |
|
Scenario: From debugging it seems that the outbound queue is null, "No queue present, failing request" in the log. The queue is initially allocated but then removed due to the following stack trace (I added this, no exception was actually thrown), note the second to last line, "onNotAbleToStartMastership": |
| Comments |
| Comment by Josh Hershberg [ 10/May/17 ] |
|
The transaction that fails that causes onNotAbleToStartMastership to be called is: java.util.concurrent.ExecutionException: TransactionCommitFailedException{message=canCommit encountered an unexpected failure, errorList=[RpcError [message=canCommit encountered an unexpected failure, severity=ERROR, errorType=APPLICATION, tag=operation-failed, applicationTag=null, info=null, cause=java.lang.IllegalArgumentException: Metadata not available for modification NodeModification [identifier=(urn:opendaylight:flow:inventory?revision=2013-08-19)group[ {(urn:opendaylight:flow:inventory?revision=2013-08-19)group-id=5000}], modificationType=TOUCH, childModification={AugmentationIdentifier {childNames=[(urn:opendaylight:group:statistics?revision=2013-11-11)group-statistics]}=NodeModification [identifier=AugmentationIdentifier {childNames=[(urn:opendaylight:group:statistics?revision=2013-11-11)group-statistics]}, modificationType=TOUCH, childModification={(urn:opendaylight:group:statistics?revision=2013-11-11)group-statistics=NodeModification [identifier=(urn:opendaylight:group:statistics?revision=2013-11-11)group-statistics, modificationType=WRITE, childModification={}]}]}]]]} |
| Comment by Tomas Slusny [ 11/May/17 ] |
|
It is possible that this is happening because of device initialization future, I created patch that should solve this (also with explanation) here: https://git.opendaylight.org/gerrit/#/c/56838/ Can you try it with that patch and tell if it helps? |
| Comment by Tomas Slusny [ 15/May/17 ] |
|
As https://bugs.opendaylight.org/show_bug.cgi?id=8401 was merged on master and Joshua confirmed that with that patch scenario here seems to work fine, this can be set to waiting until it will be merged also on stable/carbon here: https://git.opendaylight.org/gerrit/#/c/56927/ |
| Comment by A H [ 15/May/17 ] |
|
Patch https://git.opendaylight.org/gerrit/#/c/56927/ was successfully merged. Can we mark this bug as fixed and resolved? |
| Comment by A H [ 16/May/17 ] |
|
Another patch was submitted in relation to this bug: https://git.opendaylight.org/gerrit/#/c/57096/ |