<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:53:42 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[CONTROLLER-717] Remote Netconf Server Initialization Failed With NullPointerException</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-717</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Remote Netconf Server Connection With new cloned Opendaylight controller(Cloned on Aug 21, 2013) failed with java null pointer exception.&lt;/p&gt;

&lt;p&gt;Steps followed to replicate the issue:&lt;/p&gt;

&lt;p&gt;1. Clone new Opnedaylight controller&lt;br/&gt;
2. Created the xml file and added the file in configuration/initial folder of the distribution that we are running&lt;br/&gt;
3. Added the remote device configuration yang files in cache/schema directory&lt;br/&gt;
4. Run the controller&lt;/p&gt;


&lt;p&gt;Running the controller failed to initialize sal and throws java null pointer exception as below&lt;/p&gt;

&lt;p&gt;2014-08-22 10:59:21.743 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-2&amp;#93;&lt;/span&gt; WARN  o.o.c.s.c.netconf.NetconfDevice  - RemoteDevice&lt;/p&gt;
{m10sachi}: Unexpected error resolving device sources: java.lang.NullPointerException&lt;br/&gt;
2014-08-22 10:59:21.770 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-2&amp;#93;&lt;/span&gt; ERROR o.o.c.s.c.netconf.NetconfDevice  - RemoteDevice{m10sachi}
&lt;p&gt;: Initialization in sal failed, disconnecting from device&lt;br/&gt;
java.lang.NullPointerException: null&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas.create(NetconfStateSchemas.java:128) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas.create(NetconfStateSchemas.java:118) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas.access$000(NetconfStateSchemas.java:35) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfStateSchemas$NetconfStateSchemasResolverImpl.resolve(NetconfStateSchemas.java:53) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$DeviceSourcesResolver.call(NetconfDevice.java:222) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$DeviceSourcesResolver.call(NetconfDevice.java:202) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:744) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
2014-08-22 10:59:21.771 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-2&amp;#93;&lt;/span&gt; WARN  o.o.c.s.c.n.l.NetconfDeviceCommunicator  - RemoteDevice&lt;/p&gt;
{m10sachi}
&lt;p&gt;: Session terminated Session closed&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25271">CONTROLLER-717</key>
            <summary>Remote Netconf Server Initialization Failed With NullPointerException</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="mmarsale@cisco.com">Maros Marsalek</assignee>
                                    <reporter username="sachi.gupta@tcs.com">Sachi Gupta</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Aug 2014 06:23:12 +0000</created>
                <updated>Tue, 25 Jul 2023 08:24:06 +0000</updated>
                            <resolved>Wed, 3 Sep 2014 10:02:49 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="48929" author="mmarsale@cisco.com" created="Fri, 22 Aug 2014 08:20:11 +0000"  >&lt;p&gt;Hi, I have fixed the NullPointer exception. But it looks like your device does not respond correctly to get request with filter netconf-state/schemas. So it looks like your device supports netconf monitoring, but does not expose any schemas.&lt;/p&gt;

&lt;p&gt;Here is the commit to fix null pointer:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/10158/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/10158/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But since your device does not support netconf monitoring, you would have to place your schemas into cache folder before ODL start.&lt;/p&gt;</comment>
                            <comment id="48930" author="sachi.gupta@tcs.com" created="Fri, 22 Aug 2014 09:37:35 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;The null pointer exception is resolved with your patch&lt;/p&gt;

&lt;p&gt;Have added the schema files in cache/schema folder but still getting one more exception as below:&lt;/p&gt;


&lt;p&gt;2014-08-22 15:01:49.289 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-2&amp;#93;&lt;/span&gt; WARN  o.o.c.s.c.n.NetconfStateSchemas  - RemoteDevice&lt;/p&gt;
{m10sachi}: Unable to detect available schemas, get to (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)netconf-state/(urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)schemas was empty&lt;br/&gt;
2014-08-22 15:01:49.313 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-3&amp;#93;&lt;/span&gt; ERROR o.o.c.s.c.netconf.NetconfDevice  - RemoteDevice{m10sachi}
&lt;p&gt;: Initialization in sal failed, disconnecting from device&lt;br/&gt;
java.lang.IllegalStateException: RemoteDevice&lt;/p&gt;
{m10sachi}: No more sources for schema context&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$RecursiveSchemaSetup.setUpSchema(NetconfDevice.java:305) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$RecursiveSchemaSetup.run(NetconfDevice.java:294) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:744) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
2014-08-22 15:01:49.316 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-3&amp;#93;&lt;/span&gt; WARN  o.o.c.s.c.n.l.NetconfDeviceCommunicator  - RemoteDevice{m10sachi}
&lt;p&gt;: Session terminated Session closed&lt;/p&gt;</comment>
                            <comment id="48931" author="mmarsale@cisco.com" created="Mon, 25 Aug 2014 15:20:03 +0000"  >&lt;p&gt;I see, can you show me the hello message produced by your device ?&lt;/p&gt;</comment>
                            <comment id="48932" author="sachi.gupta@tcs.com" created="Tue, 26 Aug 2014 04:23:19 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;The hello message produced by the device is as follows:&lt;/p&gt;

&lt;p&gt;&amp;lt;hello xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;capabilities&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:netconf:base:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:candidate:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:confirmed-commit:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:validate:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:netconf:capability:url:1.0?scheme=http,ftp,file&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:xml:ns:netconf:base:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:xml:ns:netconf:capability:candidate:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:xml:ns:netconf:capability:confirmed-commit:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:xml:ns:netconf:capability:validate:1.0&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:xml:ns:netconf:capability:url:1.0?protocol=http,ftp,file&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;&lt;a href=&quot;http://xml.juniper.net/netconf/junos/1.0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://xml.juniper.net/netconf/junos/1.0&lt;/a&gt;&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration&lt;/a&gt;&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&amp;lt;/capability&amp;gt;&lt;br/&gt;
    &amp;lt;capability&amp;gt;&lt;a href=&quot;http://xml.juniper.net/dmi/system/1.0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://xml.juniper.net/dmi/system/1.0&lt;/a&gt;&amp;lt;/capability&amp;gt;&lt;br/&gt;
  &amp;lt;/capabilities&amp;gt;&lt;br/&gt;
  &amp;lt;session-id&amp;gt;27216&amp;lt;/session-id&amp;gt;&lt;br/&gt;
&amp;lt;/hello&amp;gt;&lt;/p&gt;</comment>
                            <comment id="48933" author="mmarsale@cisco.com" created="Tue, 26 Aug 2014 13:25:14 +0000"  >&lt;p&gt;Looking at the hello message, not many yang based capabilities there. Except maybe: &amp;lt;capability&amp;gt;&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration&lt;/a&gt;&amp;lt;/capability&amp;gt;. What yang modules did you put under cache/schema folder ? &lt;/p&gt;

&lt;p&gt;Or what yang modules do you expect to be downloaded from the device and used ?&lt;/p&gt;

&lt;p&gt;Because your device provides no schemas, and in hello message there is maybe one yang schema reported. In case you need to override the capabilities from hello message, there is a way via netconf-connector configuretion.&lt;/p&gt;</comment>
                            <comment id="48934" author="sachi.gupta@tcs.com" created="Tue, 26 Aug 2014 13:31:51 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;I have already added configuration.yang file in cache/schema folder, but faced the above mentioned issue.&lt;/p&gt;

&lt;p&gt;Note: The same setup was working fine with the older odl code(Cloned on June 19,2014) but showing the issues with new odl code(Cloned on Aug 21, 2014)&lt;/p&gt;</comment>
                            <comment id="48935" author="mmarsale@cisco.com" created="Tue, 26 Aug 2014 13:47:02 +0000"  >&lt;p&gt;Can you show me the whole log ? or can I connect to your device from my PC to debug ?&lt;/p&gt;</comment>
                            <comment id="48936" author="sachi.gupta@tcs.com" created="Tue, 26 Aug 2014 14:03:19 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;Device does not have internet connectivity, so you will not be able to connect to my netconf device.&lt;/p&gt;

&lt;p&gt;Sharing with you the log file.&lt;/p&gt;</comment>
                            <comment id="48946" author="sachi.gupta@tcs.com" created="Tue, 26 Aug 2014 14:03:19 +0000"  >&lt;p&gt;Attachment Opendaylight.log:26-08-2014 has been added with description: Log File Attached&lt;/p&gt;</comment>
                            <comment id="48937" author="mmarsale@cisco.com" created="Wed, 27 Aug 2014 09:39:14 +0000"  >&lt;p&gt;Ok,&lt;/p&gt;

&lt;p&gt;So your device has this capability in hello message&lt;br/&gt;
&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration&lt;/a&gt;&lt;br/&gt;
without revision.&lt;/p&gt;

&lt;p&gt;Netconf-connector currently ignores capabilities without revision parameter.&lt;/p&gt;


&lt;p&gt;What you can do as a workaround:&lt;/p&gt;

&lt;p&gt;1. add revision to the schema in cache/schema folder.&lt;br/&gt;
2. change configuration of netconf-connector, by adding this list property:&lt;br/&gt;
&amp;lt;yang-module-capabilities&amp;gt;&lt;br/&gt;
&amp;lt;capability&amp;gt;&lt;br/&gt;
&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration?revision=YYYY-MM-DD&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration?revision=YYYY-MM-DD&lt;/a&gt;&lt;br/&gt;
&amp;lt;/capability&amp;gt;&lt;br/&gt;
&amp;lt;/yang-module-capabilities&amp;gt;&lt;/p&gt;</comment>
                            <comment id="48938" author="sachi.gupta@tcs.com" created="Wed, 27 Aug 2014 13:45:20 +0000"  >&lt;p&gt;Hi Maros,&lt;br/&gt;
Are you suggesting to put the capability as added in the last line of attached file(snapshot.txt) of 99-netconf-connector.xml?&lt;br/&gt;
i have added configuration@1970-01-01.yang file in cache/schema folder but getting the exception &lt;/p&gt;

&lt;p&gt;Exception:&lt;br/&gt;
2014-08-27 19:07:14.139 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;config-pusher&amp;#93;&lt;/span&gt; ERROR o.o.c.l.b.i.UncaughtExceptionPolicy  - Thread Thread&lt;span class=&quot;error&quot;&gt;&amp;#91;config-pusher,5,main&amp;#93;&lt;/span&gt; died because of an uncaught exception&lt;br/&gt;
java.lang.IllegalStateException: Max wait for capabilities reached.Not enough capabilities for ConfigSnapshot&lt;/p&gt;
{configSnapshot=&apos;&amp;lt;data xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&amp;lt;modules xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&amp;lt;module&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;prefix:sal-netconf-connector&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;sachi&amp;lt;/name&amp;gt;&amp;lt;address xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;1.1.1.7&amp;lt;/address&amp;gt;&amp;lt;port xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;830&amp;lt;/port&amp;gt;&amp;lt;username xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;tcs&amp;lt;/username&amp;gt;&amp;lt;password xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;tcs@1234&amp;lt;/password&amp;gt;&amp;lt;tcp-only xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;false&amp;lt;/tcp-only&amp;gt;&amp;lt;event-executor xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:netty&quot;&amp;gt;prefix:netty-event-executor&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;global-event-executor&amp;lt;/name&amp;gt;
          &amp;lt;/event-executor&amp;gt;&amp;lt;binding-registry xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding&quot;&amp;gt;prefix:binding-broker-osgi-registry&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;binding-osgi-broker&amp;lt;/name&amp;gt;
          &amp;lt;/binding-registry&amp;gt;&amp;lt;dom-registry xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom&quot;&amp;gt;prefix:dom-broker-osgi-registry&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;dom-broker&amp;lt;/name&amp;gt;
          &amp;lt;/dom-registry&amp;gt;&amp;lt;client-dispatcher xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:config:netconf&quot;&amp;gt;prefix:netconf-client-dispatcher&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;global-netconf-dispatcher&amp;lt;/name&amp;gt;
          &amp;lt;/client-dispatcher&amp;gt;&amp;lt;processing-executor xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:threadpool&quot;&amp;gt;prefix:threadpool&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;global-netconf-processing-executor&amp;lt;/name&amp;gt;
          &amp;lt;/processing-executor&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/modules&amp;gt;
    &amp;lt;/data&amp;gt;
  &apos;, capabilities=[http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;revision=1970-01-01, urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector- cfg&amp;amp;revision=2013-10-28]}
&lt;p&gt;. Expected but not found: &lt;span class=&quot;error&quot;&gt;&amp;#91;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector- cfg&amp;amp;revision=2013-10-28, http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;revision=1970-01-01&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.getOperationServiceWithRetries(ConfigPusherImpl.java:158) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.pushConfigWithConflictingVersionRetries(ConfigPusherImpl.java:134) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.internalPushConfigs(ConfigPusherImpl.java:111) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.process(ConfigPusherImpl.java:78) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.osgi.ConfigPersisterActivator$InnerCustomizer$1.run(ConfigPersisterActivator.java:177) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:744) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
Caused by: org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl$NotEnoughCapabilitiesException: Not enough capabilities for ConfigSnapshot&lt;/p&gt;
{configSnapshot=&apos;&amp;lt;data xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&amp;lt;modules xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:config&quot;&amp;gt;&amp;lt;module&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;prefix:sal-netconf-connector&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;sachi&amp;lt;/name&amp;gt;&amp;lt;address xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;1.1.1.7&amp;lt;/address&amp;gt;&amp;lt;port xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;830&amp;lt;/port&amp;gt;&amp;lt;username xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;tcs&amp;lt;/username&amp;gt;&amp;lt;password xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;tcs@1234&amp;lt;/password&amp;gt;&amp;lt;tcp-only xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;false&amp;lt;/tcp-only&amp;gt;&amp;lt;event-executor xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:netty&quot;&amp;gt;prefix:netty-event-executor&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;global-event-executor&amp;lt;/name&amp;gt;
          &amp;lt;/event-executor&amp;gt;&amp;lt;binding-registry xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:binding&quot;&amp;gt;prefix:binding-broker-osgi-registry&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;binding-osgi-broker&amp;lt;/name&amp;gt;
          &amp;lt;/binding-registry&amp;gt;&amp;lt;dom-registry xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom&quot;&amp;gt;prefix:dom-broker-osgi-registry&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;dom-broker&amp;lt;/name&amp;gt;
          &amp;lt;/dom-registry&amp;gt;&amp;lt;client-dispatcher xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:config:netconf&quot;&amp;gt;prefix:netconf-client-dispatcher&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;global-netconf-dispatcher&amp;lt;/name&amp;gt;
          &amp;lt;/client-dispatcher&amp;gt;&amp;lt;processing-executor xmlns=&quot;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf&quot;&amp;gt;&amp;lt;type xmlns:prefix=&quot;urn:opendaylight:params:xml:ns:yang:controller:threadpool&quot;&amp;gt;prefix:threadpool&amp;lt;/type&amp;gt;&amp;lt;name&amp;gt;global-netconf-processing-executor&amp;lt;/name&amp;gt;
          &amp;lt;/processing-executor&amp;gt;
        &amp;lt;/module&amp;gt;
      &amp;lt;/modules&amp;gt;
    &amp;lt;/data&amp;gt;
  &apos;, capabilities=[http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;revision=1970-01-01, urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector- cfg&amp;amp;revision=2013-10-28]}
&lt;p&gt;. Expected but not found: &lt;span class=&quot;error&quot;&gt;&amp;#91;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector- cfg&amp;amp;revision=2013-10-28, http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;revision=1970-01-01&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.getOperationService(ConfigPusherImpl.java:196) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.netconf.persist.impl.ConfigPusherImpl.getOperationServiceWithRetries(ConfigPusherImpl.java:151) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;na:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	... 5 common frames omitted&lt;/p&gt;





&lt;p&gt;and if  i add the &amp;lt;yang-module-capabilities&amp;gt;&lt;br/&gt;
&amp;lt;capability&amp;gt;&lt;br/&gt;
&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration?revision=YYYY-MM-DD&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration?revision=YYYY-MM-DD&lt;/a&gt;&lt;br/&gt;
&amp;lt;/capability&amp;gt;&lt;br/&gt;
&amp;lt;/yang-module-capabilities&amp;gt; in required capabilities or after the required one&apos;s i am getting xml exception.&lt;br/&gt;
Kindly guide me how can i move ahead with correct configuration.&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;</comment>
                            <comment id="48947" author="sachi.gupta@tcs.com" created="Wed, 27 Aug 2014 13:45:20 +0000"  >&lt;p&gt;Attachment snapshot.txt has been added with description: netconf-connector snapshot&lt;/p&gt;</comment>
                            <comment id="48939" author="sachi.gupta@tcs.com" created="Tue, 2 Sep 2014 05:51:16 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;I have hard coded the capabilities in NetconfClientSession.java file(as mentioned in &lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-256&quot; title=&quot;Loading YANG files from local directory when netconf server does not support netconf monitoring&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-256&quot;&gt;&lt;del&gt;CONTROLLER-256&lt;/del&gt;&lt;/a&gt;) after which we don&apos;t need to add yang capabilities in xml explicitly and it skips the above mentioned exception.&lt;/p&gt;

&lt;p&gt;After doing this also, I am facing the same error of &quot;Sal Initialization Failure&quot;&lt;/p&gt;

&lt;p&gt;2014-09-02 11:16:36.317 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-2&amp;#93;&lt;/span&gt; WARN  o.o.c.s.c.n.NetconfStateSchemas  - RemoteDevice&lt;/p&gt;
{sachi}: Unable to detect available schemas, get to (urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)netconf-state/(urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring?revision=2010-10-04)schemas was empty&lt;br/&gt;
2014-09-02 11:16:36.319 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-3&amp;#93;&lt;/span&gt; INFO  o.o.c.s.c.netconf.NetconfDevice  - schema required resources&lt;br/&gt;
2014-09-02 11:16:36.324 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-3&amp;#93;&lt;/span&gt; ERROR o.o.c.s.c.netconf.NetconfDevice  - RemoteDevice{sachi}
&lt;p&gt;: Initialization in sal failed, disconnecting from device&lt;br/&gt;
java.lang.IllegalStateException: RemoteDevice&lt;/p&gt;
{sachi}: No more sources for schema context&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$RecursiveSchemaSetup.setUpSchema(NetconfDevice.java:306) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.controller.sal.connect.netconf.NetconfDevice$RecursiveSchemaSetup.run(NetconfDevice.java:295) &lt;span class=&quot;error&quot;&gt;&amp;#91;bundlefile:na&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at java.lang.Thread.run(Thread.java:744) &lt;span class=&quot;error&quot;&gt;&amp;#91;na:1.7.0_55&amp;#93;&lt;/span&gt;&lt;br/&gt;
2014-09-02 11:16:36.325 IST &lt;span class=&quot;error&quot;&gt;&amp;#91;remote-connector-processing-executor-3&amp;#93;&lt;/span&gt; WARN  o.o.c.s.c.n.l.NetconfDeviceCommunicator  - RemoteDevice{sachi}
&lt;p&gt;: Session terminated Session closed&lt;/p&gt;</comment>
                            <comment id="48940" author="mmarsale@cisco.com" created="Tue, 2 Sep 2014 12:39:11 +0000"  >&lt;p&gt;Ok, so you have file configuration@1970-01-01.yang in cache/schema. Does the file contain revision statement with 1970-01-01 revision ?&lt;/p&gt;

&lt;p&gt;If so, adding this configuration under your netconf-connector:&lt;/p&gt;

&lt;p&gt;&amp;lt;yang-module-capabilities&amp;gt;&lt;br/&gt;
&amp;lt;capability&amp;gt;&lt;br/&gt;
&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration?revision=1970-01-01&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration?revision=1970-01-01&lt;/a&gt;&lt;br/&gt;
&amp;lt;/capability&amp;gt;&lt;br/&gt;
&amp;lt;/yang-module-capabilities&amp;gt;&lt;/p&gt;

&lt;p&gt;should do the trick.&lt;/p&gt;

&lt;p&gt;Also are you running latest controller ?&lt;/p&gt;</comment>
                            <comment id="48941" author="sachi.gupta@tcs.com" created="Tue, 2 Sep 2014 13:16:50 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;1. Yes, configuration@1970-01-01.yang in cache/schema contains 1970-01-01 revision statement as below:&lt;/p&gt;

&lt;p&gt; module configuration {&lt;br/&gt;
  namespace &quot;http://yang.juniper.net/yang/1.1/jc&quot;;&lt;br/&gt;
  prefix jc;&lt;/p&gt;

&lt;p&gt;  revision 1970-01-01 &lt;/p&gt;
{
     description
      &quot;Initial revision.&quot;;
   }



&lt;p&gt;2. Added configuration under your netconf-connector as below:&lt;/p&gt;

&lt;p&gt;&amp;lt;required-capabilities&amp;gt;   &amp;lt;capability&amp;gt;urn:opendaylight:params:xml:ns:yang:controller:md:sal:connector:netconf?module=odl-sal-netconf-connector-cfg&amp;amp;revision=2013-10-28&amp;lt;/capability&amp;gt;&lt;br/&gt;
 &amp;lt;/required-capabilities&amp;gt;&lt;br/&gt;
&amp;lt;yang-module-capabilities&amp;gt;&lt;br/&gt;
&amp;lt;capability&amp;gt;&lt;br/&gt;
&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;revision=1970-01-01&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;amp;revision=1970-01-01&lt;/a&gt;&lt;br/&gt;
&amp;lt;/capability&amp;gt;&lt;br/&gt;
&amp;lt;/yang-module-capabilities&amp;gt;&lt;/p&gt;

&lt;p&gt;3. Yes, I am running the new controller code cloned on Sept-02.&lt;/p&gt;

&lt;p&gt;After doing all the changes, its not working.&lt;br/&gt;
Please suggest.&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;br/&gt;
Sachi&lt;/p&gt;</comment>
                            <comment id="48942" author="mmarsale@cisco.com" created="Tue, 2 Sep 2014 13:19:03 +0000"  >&lt;p&gt;This xml:&lt;/p&gt;

&lt;p&gt;&amp;lt;yang-module-capabilities&amp;gt;&lt;br/&gt;
&amp;lt;capability&amp;gt;&lt;br/&gt;
&lt;a href=&quot;http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;revision=1970-01-01&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://yang.juniper.net/yang/1.1/jc?module=configuration&amp;amp;amp;revision=1970-01-01&lt;/a&gt;&lt;br/&gt;
&amp;lt;/capability&amp;gt;&lt;br/&gt;
&amp;lt;/yang-module-capabilities&amp;gt;&lt;/p&gt;

&lt;p&gt;Needs to be under module element. It is part of netconf-connector configuration.&lt;/p&gt;</comment>
                            <comment id="48943" author="sachi.gupta@tcs.com" created="Tue, 2 Sep 2014 13:24:31 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;Have added the above as part of netconf-connector configuration.&lt;/p&gt;

&lt;p&gt;Now, I am not getting any error and device is not getting initialized also.&lt;/p&gt;

&lt;p&gt;Anything else I need to add.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="48944" author="mmarsale@cisco.com" created="Tue, 2 Sep 2014 13:29:01 +0000"  >&lt;p&gt;Could you please rerun with detailed logs ?&lt;/p&gt;

&lt;p&gt;Add these lines to configuration/logback.xml before you start ODL. Delete logs/ folder and rerun:&lt;/p&gt;

&lt;p&gt;  &amp;lt;logger name=&quot;org.opendaylight.protocol.framework&quot; level=&quot;TRACE&quot;/&amp;gt;&lt;br/&gt;
  &amp;lt;logger name=&quot;org.opendaylight.controller.netconf&quot; level=&quot;TRACE&quot;/&amp;gt;&lt;br/&gt;
  &amp;lt;logger name=&quot;org.opendaylight.controller.sal.connect.netconf&quot; level=&quot;TRACE&quot;/&amp;gt;&lt;br/&gt;
  &amp;lt;logger name=&quot;org.opendaylight.yangtools.yang.model.repo.util&quot; level=&quot;TRACE&quot;/&amp;gt;&lt;br/&gt;
  &amp;lt;logger name=&quot;org.opendaylight.yangtools.yang.parser.repo&quot; level=&quot;TRACE&quot;/&amp;gt;&lt;/p&gt;

&lt;p&gt;And please attach produced opendaylight.log file afterwards. &lt;/p&gt;

&lt;p&gt;And what do you mean by not getting initialized ? There is nothing under nodes/node from restconf ? or just no data are transfered ?&lt;/p&gt;</comment>
                            <comment id="48945" author="sachi.gupta@tcs.com" created="Tue, 2 Sep 2014 13:50:03 +0000"  >&lt;p&gt;Send the logs on mmarsale@cisco.com.&lt;/p&gt;

&lt;p&gt;The size of the file was larger so was not able to attach it on bugzilla.&lt;/p&gt;

&lt;p&gt;The log says &quot;RemoteDevice&lt;/p&gt;
{controller-config}
&lt;p&gt;: Netconf connector initialized successfully&quot; but it does not show any log for my &quot;sachi-m10&quot; netconf connector.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13409" name="Opendaylight.log:26-08-2014" size="158753" author="sachi.gupta@tcs.com" created="Tue, 26 Aug 2014 14:03:19 +0000"/>
                            <attachment id="13410" name="snapshot.txt" size="2999" author="sachi.gupta@tcs.com" created="Wed, 27 Aug 2014 13:45:20 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1601</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=1601]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Helium-RC1]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10313"><![CDATA[Highest]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02m4f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>