Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-810

NETCONF device is disconnected, as yangtools has issues to dynamically load OpenConfig models

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • Operating System: Windows
      Platform: PC

    • 9119

    Description

      When enabling OpenConfig support on my IP/MPLS router, NETCONF connection is terminated. Getting the following errors:

      2017-09-08 08:25:56,522 | WARN | sing-executor-33 | NetconfDevice | 306 - org.opendaylight.netconf.sal-netconf-connector - 1.5.0.Carbon | RemoteDevice

      {VSR}: Unable to build schemacontext, unsatisfied imports {}, will reattempt with resolved only
      2017-09-08 08:25:56,522 | ERROR | sing-executor-33 | NetconfDevice | 306 - org.opendaylight.netconf.sal-netconf-connector - 1.5.0.Carbon | RemoteDevice{VSR}

      : Initialization in sal failed, disconnecting from device
      java.lang.IllegalStateException: RemoteDevice

      {VSR}: No more sources for schema context
      at org.opendaylight.netconf.sal.connect.netconf.NetconfDevice$SchemaSetup.setUpSchema(NetconfDevice.java:502)[306:org.opendaylight.netconf.sal-netconf-connector:1.5.0.Carbon]
      at org.opendaylight.netconf.sal.connect.netconf.NetconfDevice$SchemaSetup.run(NetconfDevice.java:445)[306:org.opendaylight.netconf.sal-netconf-connector:1.5.0.Carbon]
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)[:1.8.0_131]
      at java.util.concurrent.FutureTask.run(Unknown Source)[:1.8.0_131]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[:1.8.0_131]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[:1.8.0_131]
      at java.lang.Thread.run(Unknown Source)[:1.8.0_131]
      2017-09-08 08:25:56,537 | WARN | sing-executor-33 | NetconfDeviceCommunicator | 306 - org.opendaylight.netconf.sal-netconf-connector - 1.5.0.Carbon | RemoteDevice{VSR}

      : Session terminated Session closed

      Behavior is a bit surprising: I get the log "unsatisfied imports {}", where the list of unsatisfied imports is empty. Also, if there are unsatisfied imports typically ODL does not terminate the NETCONF connection - but just ignores the corresponding models. So this is likely a bug in the yang parser causing this issue.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sven.wisotzky@nokia.com Sven Wisotzky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: