Unable to connect to remote device: no more sources for schema context

asked 2016-10-17 07:28:19 -0700

jmrenshaw gravatar image

I am trying to use NetConf to connect to a Cisco IOS-XE router (ISR4331) using the ODL Netconf SSH southbound connector. I have configured the mount point via the restconf API and am successfully connecting over SSH however the NetConf negotiation appears to be failing. When I query the node via the API I get the following response;

[connection-status xmlns="urn:opendaylight:netconf-node-topology"]unable-to-connect[/connection-status] [connected-message xmlns="urn:opendaylight:netconf-node-topology"]RemoteDevice{DEVICENAME}: No more sources for schema context[/connected-message]

I am also seeing the following warnings in the karaf log file;

WARN | sing-executor-10 | NetconfDevice | 353 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.Boron | RemoteDevice{DEVICENAME}: Netconf device does not provide all yang models reported in hello message capabilities, required but not provided: [(http://tail-f.com/ns/mibs/IPV6-TC/199812010000Z?revision=1998-12-01)IPV6-TC, ....

| WARN | sing-executor-10 | NetconfDevice | 353 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.Boron | RemoteDevice{DEVICENAME}: Attempting to build schema context from required sources 2016-10-17 15:06:55,841 | WARN | sing-executor-10 | NetconfDevice | 353 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.Boron | RemoteDevice{DEVICENAME}: Netconf device provides additional yang models not reported in hello message capabilities: [(http://cisco.com/ns/ietf-interfaces-ann?revision=2016-03-30)ietf-interfaces-ann, ....

| WARN | sing-executor-10 | NetconfDevice | 353 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.Boron | RemoteDevice{DEVICENAME}: Adding provided but not required sources as required to prevent failures

| WARN | sing-executor-11 | NetconfDevice | 353 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.Boron | RemoteDevice{DEVICENAME}: Unable to build schema context, unsatisfied imports {}, will reattempt with resolved only

| ERROR | sing-executor-11 | NetconfDevice | 353 - org.opendaylight.netconf.sal-netconf-connector - 1.4.0.Boron | RemoteDevice{DEVICENAME}: Initialization in sal failed, disconnecting from device java.lang.IllegalStateException: RemoteDevice{DEVICENAME}: No more sources for schema context at org.opendaylight.netconf.sal.connect.netconf.NetconfDevice$SchemaSetup.setUpSchema(NetconfDevice.java:479)[353:org.opendaylight.netconf.sal-netconf-connector:1.4.0.Boron] at org.opendaylight.netconf.sal.connect.netconf.NetconfDevice$SchemaSetup.run(NetconfDevice.java:428)[353:org.opendaylight.netconf.sal-netconf-connector:1.4.0.Boron] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0101] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0101] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0101] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0101] at java.lang.Thread.run(Thread.java:745)[:1.8.0_101]

I have downloaded the Cisco Yang models from their github ( https://github.com/YangModels/yang/tr... ) and loaded them into /cache/schema. However they are not showing up in YangUI or YangMan and I am still getting the errors. Does anyone have any advice on what to try next?

edit retag flag offensive close merge delete