<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:11 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>[NETCONF-498] Nitrogen snapshot fails to read device data via Draft18</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-498</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;Seen on karaf-0.7.2-20180115.004816-253.tar.gz&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;br/&gt;
 Start ODL with odl-restconf and odl-netconf-topology.&lt;br/&gt;
 Start testtool:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ java -Xmx256M -Dorg.apache.sshd.registerBouncyCastle=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; -jar netconf-testtool-1.3.1-executable.jar --device-count 1 --debug &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; --schemas-dir schema --md-sal &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(It does not really matter which models are in &quot;schema&quot; directory.)&lt;/p&gt;

&lt;p&gt;Connect to the testtool:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ curl -v -u admin:admin -H &lt;span class=&quot;code-quote&quot;&gt;&quot;Content-Type:application/json&quot;&lt;/span&gt; -X PUT -d &lt;span class=&quot;code-quote&quot;&gt;&apos;{&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-topology:node&quot;&lt;/span&gt;:{&lt;span class=&quot;code-quote&quot;&gt;&quot;node-id&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-test-device&quot;&lt;/span&gt;,&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-node-topology:host&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;127.0.0.11&quot;&lt;/span&gt;,&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-node-topology:port&quot;&lt;/span&gt;:17830,&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-node-topology:username&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;admin&quot;&lt;/span&gt;,&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-node-topology:password&quot;&lt;/span&gt;:&lt;span class=&quot;code-quote&quot;&gt;&quot;admin&quot;&lt;/span&gt;,&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-node-topology:tcp-only&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;,&lt;span class=&quot;code-quote&quot;&gt;&quot;netconf-node-topology:keepalive-delay&quot;&lt;/span&gt;:0}}&apos;&lt;/span&gt; http:&lt;span class=&quot;code-comment&quot;&gt;//127.0.0.1:8181/restconf/18/data/network-topology:network-topology/topology=topology-netconf/node=netconf-test-device ;echo&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(I think Draft02 URL would work just as well.)&lt;/p&gt;

&lt;p&gt;Wait until device is connected&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ curl -u admin:admin http:&lt;span class=&quot;code-comment&quot;&gt;//127.0.0.1:8181/restconf/18/data/network-topology:network-topology/topology=topology-netconf/node=netconf-test-device ;echo&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(Search for &quot;connected&quot; instead of &quot;connecting&quot;.)&lt;/p&gt;

&lt;p&gt;Attempt to see the mounted data:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ curl -u admin:admin http:&lt;span class=&quot;code-comment&quot;&gt;//127.0.0.1:8181/restconf/18/data/network-topology:network-topology/topology=topology-netconf/node=netconf-test-device/yang-ext:mount&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;You will see a long stacktrace. Draft02 can be used to verify the data can be read:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
curl -u admin:admin http:&lt;span class=&quot;code-comment&quot;&gt;//127.0.0.1:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/netconf-test-device/yang-ext:mount ;echo&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Using PUT and DELETE on Draft18 works, and http status returned confirms data is manipulated, it is just GET which fails.&lt;/p&gt;

&lt;p&gt;The main reason for status 500 seem to be this exception:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
java.lang.IllegalArgumentException: Could not find schema &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; node (urn:ietf:params:xml:ns:netconf:base:1.0?revision=2011-06-01)data in EffectiveSchemaContext
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;And looking at karaf.log at debug level this seems to match with testtool response (about empty configuration data):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
2018-01-11 19:13:42,135 | DEBUG | oupCloseable-6-1 | NetconfDeviceCommunicator | 310 - org.opendaylight.netconf.sal-netconf-connector - 1.6.2.SNAPSHOT | RemoteDevice{netconf-test-device}: Message received &amp;lt;rpc-reply xmlns=&lt;span class=&quot;code-quote&quot;&gt;&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&lt;/span&gt; message-id=&lt;span class=&quot;code-quote&quot;&gt;&quot;m-1&quot;&lt;/span&gt;&amp;gt;
&amp;lt;data/&amp;gt;
&amp;lt;/rpc-reply&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Apparently, the &amp;lt;data&amp;gt; element is not unboxed properly.&lt;/p&gt;</description>
                <environment>&lt;p&gt;manual testing&lt;/p&gt;</environment>
        <key id="29077">NETCONF-498</key>
            <summary>Nitrogen snapshot fails to read device data via Draft18</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="10003">Cannot Reproduce</resolution>
                                        <assignee username="ivanm1996">Ivan Martiniak</assignee>
                                    <reporter username="vrpolak">Vratko Polak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Jan 2018 13:46:21 +0000</created>
                <updated>Mon, 31 Jan 2022 17:42:57 +0000</updated>
                            <resolved>Mon, 31 Jan 2022 17:40:01 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="70445" author="rovarga" created="Mon, 31 Jan 2022 17:41:30 +0000"  >&lt;p&gt;This was probably fixed with &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-853&quot; title=&quot;Rfc 8040 - multiple roots when serializing requests targeting root&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-853&quot;&gt;&lt;del&gt;NETCONF-853&lt;/del&gt;&lt;/a&gt; or &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-847&quot; title=&quot;Rfc 8040 - 500 response when reading data from empty device with xml&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-847&quot;&gt;&lt;del&gt;NETCONF-847&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="17222" name="[NETCONF-498] Steps to reproduce.odt" size="22062" author="ivanm1996" created="Thu, 27 Jan 2022 07:12:27 +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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i039jb:</customfieldvalue>

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