<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:55:12 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-1308] Netconf Operational info from netopeer gives ERROR</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-1308</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;Issue detected in the CI automation:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/controller/job/controller-csit-1node-cds-netconf-only-master/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/controller/job/controller-csit-1node-cds-netconf-only-master/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To reproduce just follow the steps in this wiki to install netopeer:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is 1 failure when fetching operational info from mounted device:&lt;/p&gt;

&lt;p&gt;curl -v &lt;a href=&quot;http://localhost:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/libnetconfd/yang-ext:mount/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/operational/network-topology:network-topology/topology/topology-netconf/node/libnetconfd/yang-ext:mount/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Returns 500 Problem to get data from transaction.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="25862">CONTROLLER-1308</key>
            <summary>Netconf Operational info from netopeer gives ERROR</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="ecelgp">Luis Gomez</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 May 2015 01:23:59 +0000</created>
                <updated>Thu, 19 Oct 2017 22:33:51 +0000</updated>
                            <resolved>Thu, 18 Jun 2015 11:04:21 +0000</resolved>
                                    <version>Post-Helium</version>
                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="50592" author="ecelgp" created="Wed, 13 May 2015 01:28:02 +0000"  >&lt;p&gt;This is working in stable/helium with inventory URIs&lt;/p&gt;</comment>
                            <comment id="50593" author="ecelgp" created="Wed, 13 May 2015 01:44:58 +0000"  >&lt;p&gt;Karaf log is available in the jenkins link.&lt;/p&gt;</comment>
                            <comment id="50594" author="mmarsale@cisco.com" created="Mon, 18 May 2015 13:38:20 +0000"  >&lt;p&gt;The problem is: unknown child node in the payload:&lt;/p&gt;

&lt;p&gt;Unknown child(ren) node(s) detected, identified by: (&lt;a href=&quot;http://netconfcentral.org/ns/toaster)toaster&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://netconfcentral.org/ns/toaster)toaster&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is correct behavior in ODL since netopeer did not provide yang schema for the toaster module:&lt;/p&gt;

&lt;p&gt;2015-05-17 00:39:46,758 | WARN  | oupCloseable-6-2 | NetconfDeviceCommunicator        | 171 - org.opendaylight.controller.sal-netconf-connector - 1.2.0.SNAPSHOT | RemoteDevice&lt;/p&gt;
{netopeer}
&lt;p&gt;: Error reply from remote device, request: &amp;lt;rpc message-id=&quot;m-3&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-schema xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&amp;gt;&lt;br/&gt;
&amp;lt;identifier&amp;gt;toaster&amp;lt;/identifier&amp;gt;&lt;br/&gt;
&amp;lt;version&amp;gt;2009-11-20&amp;lt;/version&amp;gt;&lt;br/&gt;
&amp;lt;format xmlns:x=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&amp;gt;x:yang&amp;lt;/format&amp;gt;&lt;br/&gt;
&amp;lt;/get-schema&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;br/&gt;
, response: &amp;lt;rpc-reply xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot; message-id=&quot;m-3&quot;&amp;gt;&lt;br/&gt;
  &amp;lt;rpc-error&amp;gt;&lt;br/&gt;
    &amp;lt;error-type&amp;gt;protocol&amp;lt;/error-type&amp;gt;&lt;br/&gt;
    &amp;lt;error-tag&amp;gt;invalid-value&amp;lt;/error-tag&amp;gt;&lt;br/&gt;
    &amp;lt;error-severity&amp;gt;error&amp;lt;/error-severity&amp;gt;&lt;br/&gt;
    &amp;lt;error-message&amp;gt;The requested schema does not exist.&amp;lt;/error-message&amp;gt;&lt;br/&gt;
  &amp;lt;/rpc-error&amp;gt;&lt;br/&gt;
&amp;lt;/rpc-reply&amp;gt;&lt;/p&gt;

&lt;p&gt;... there are more schemas that could not be downloaded, not only toaster.&lt;/p&gt;

&lt;p&gt;You should configure netopeer to provide all necessary yang models.&lt;/p&gt;

&lt;p&gt;This works with helium, because helium did not contain proper data validation and used CompositeNodes. Currently, NormalizedNodes are in use and they do not allow unknown children(according to the schema) in the payload. This was essentially a bug with the old mount point APIs and the test relied on it.&lt;/p&gt;</comment>
                            <comment id="50595" author="ecelgp" created="Mon, 18 May 2015 16:58:50 +0000"  >&lt;p&gt;Hi Maros,&lt;/p&gt;

&lt;p&gt;I can comment out the TC on Lithium but can you please update the netconf wiki with the things that currently work:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks/Luis&lt;/p&gt;</comment>
                            <comment id="50596" author="mmarsale@cisco.com" created="Tue, 19 May 2015 09:32:18 +0000"  >&lt;p&gt;Yeah, the netopeer related stuff should probably be updated so that the installed netopeer works fine with ODL ..&lt;/p&gt;</comment>
                            <comment id="50597" author="mmarsale@cisco.com" created="Tue, 2 Jun 2015 12:28:16 +0000"  >&lt;p&gt;Quick update: &lt;/p&gt;

&lt;p&gt;Its not missing schemas in netopper after all. Its a bug in netopeer&apos;s libnetconf lib. The library cannot parse prefixed values in xml properly e.g. yang leaves with identityref type.&lt;/p&gt;

&lt;p&gt;Get-schema rpc contains an identityref leaf for input parameter format. ODL serializes identityrefs properly, but netopper cannot parse them and returns rpc-error for each attempt to download yang schemas.&lt;/p&gt;

&lt;p&gt;This xml is ok with netopper:&lt;br/&gt;
&amp;lt;rpc message-id=&quot;m-2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-schema xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&amp;gt;&lt;br/&gt;
&amp;lt;identifier&amp;gt;ietf-netconf&amp;lt;/identifier&amp;gt;&lt;br/&gt;
&amp;lt;version&amp;gt;2011-03-08&amp;lt;/version&amp;gt;&lt;br/&gt;
&amp;lt;format&amp;gt;yang&amp;lt;/format&amp;gt;&lt;br/&gt;
&amp;lt;/get-schema&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;


&lt;p&gt;but this one is not:&lt;br/&gt;
&amp;lt;rpc message-id=&quot;m-2&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;get-schema xmlns=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&amp;gt;&lt;br/&gt;
&amp;lt;identifier&amp;gt;ietf-netconf&amp;lt;/identifier&amp;gt;&lt;br/&gt;
&amp;lt;version&amp;gt;2011-03-08&amp;lt;/version&amp;gt;&lt;br/&gt;
&amp;lt;format xmlns:x=&quot;urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring&quot;&amp;gt;x:yang&amp;lt;/format&amp;gt;&lt;br/&gt;
&amp;lt;/get-schema&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;Both above xmls are correct, but netopper accepts only the simpler one.&lt;/p&gt;

&lt;p&gt;What we can do: optimize identityref serialization so that the prefix is not included if not necessary (like in above case where the namespace of serialized identity is equal to namespace of parent tag). This will optimize serialized xml and also serve as a workaround for when connecting to Netopper netconf.&lt;/p&gt;

&lt;p&gt;In addition, we need to report that bug for libnetconf library.&lt;/p&gt;</comment>
                            <comment id="50598" author="mmarsale@cisco.com" created="Tue, 2 Jun 2015 14:17:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/21610/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/21610/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="50599" author="tony.tkacik@gmail.com" created="Wed, 10 Jun 2015 11:49:02 +0000"  >&lt;p&gt;Maros could you provide link to libnetconfd bug?&lt;/p&gt;</comment>
                            <comment id="50600" author="mmarsale@cisco.com" created="Wed, 10 Jun 2015 14:38:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://code.google.com/p/libnetconf/issues/detail?id=63&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://code.google.com/p/libnetconf/issues/detail?id=63&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>3191</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=3191]]></customfieldvalue>

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

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

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