[CONTROLLER-198] unable to read operational data Created: 07/Mar/14 Updated: 25/Jul/23 Resolved: 09/Apr/14 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Robert Gallas | Assignee: | Tony Tkacik |
| Resolution: | Cannot Reproduce | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| External issue ID: | 492 |
| Description |
|
Hi, I'm building application using 0.1.2-SNAPSHOT controller distro. Using this distro version, application is not able to read operational data from device. At around 14.02 application mentioned functionality was working Part of the log follows: **************************************************************** No other exception is shown. Robert |
| Comments |
| Comment by Robert Gallas [ 10/Mar/14 ] |
|
After further investigation After controller startup inventory is queried, nodes are tested for augmentation and for particular capability. If this action is performed upon startup, following code ends up with logger.warn message. NetconfNode netconfNode = value.getAugmentation(NetconfNode.class); if ( netconfNode == null ) { netconfNode = dataReader.readOperationalData(netconfNodePath); } if ( netconfNode == null ) { On background, yang files are downloaded and codecs are generated. Codecs generation and YANG file download takes time. This probably generates onDataChanged Event which triggers upper code to execute once again. This time, with success. Issue is that by calling same method with same arguments returns different results for no obvious reason. Robert |
| Comment by Tomas Olvecky [ 14/Mar/14 ] |
|
Moving to md-sal as netconf component only deals with netconf (config) server |
| Comment by Tony Tkacik [ 09/Apr/14 ] |
|
From your logs - Netconf Client did not full Session Negotiation, when your app tried for read of augmentation, which is present only after full negotiation. |