<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:54:23 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>[YANGTOOLS-813] null module reference in relative leafref in openconfig model with deviation</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-813</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;we&apos;re hitting a null module reference in an openconfig model (openconfig-interfaces).&lt;/p&gt;

&lt;p&gt;I&apos;m seeing this in Carbon-SR1 and in Master.&lt;/p&gt;

&lt;p&gt;the device YANG model (openconfig-interfaces) has a deviation in IOS XR that impacts a leaf with a relative leafref in.  The error we hit seems to be caused by a relative leafref.&lt;/p&gt;

&lt;p&gt;the deviation is:&lt;/p&gt;

&lt;p&gt;  deviation /ocif:interfaces/ocif:interface/ocif:subinterfaces/ocif:subinterface/ocif:config/ocif:unnumbered &lt;/p&gt;
{
    deviate not-supported;
  }

&lt;p&gt;that corresponds to this in the openconfig model:&lt;/p&gt;

&lt;p&gt;    leaf unnumbered {&lt;br/&gt;
      type leafref &lt;/p&gt;
{
        path &quot;../../index&quot;;
      }
&lt;p&gt;      description&lt;br/&gt;
        &quot;Indicates that the subinterface is unnumbered, and provides&lt;br/&gt;
        a reference to the subinterface that provides the IP&lt;br/&gt;
        address information (v4, v6 or both) for the current&lt;br/&gt;
        subinterface.&quot;;&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;logs (from master - enhanced with extra debugs) attached.&lt;/p&gt;

&lt;p&gt;I added these lines in the relative leafref case in method getBaseTypeForLeafRef in SchemaContextUtil.java:&lt;/p&gt;

&lt;p&gt;            LOG.debug(&quot;parent module {}&quot;, parentModule);&lt;br/&gt;
            LOG.debug(&quot;schema context {}&quot;, schemaContext);&lt;br/&gt;
            LOG.debug(&quot;schema {}&quot;, schema);&lt;/p&gt;

&lt;p&gt;these lines are getting triggered and show a null parent module (resulting from the previous line):&lt;/p&gt;

&lt;p&gt;          Module parentModule = findParentModule(schemaContext, schema);&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="23233">YANGTOOLS-813</key>
            <summary>null module reference in relative leafref in openconfig model with deviation</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="giheron@cisco.com">Giles Heron</assignee>
                                    <reporter username="giheron@cisco.com">Giles Heron</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Sep 2017 14:29:42 +0000</created>
                <updated>Sun, 10 Apr 2022 18:36:01 +0000</updated>
                            <resolved>Mon, 6 Aug 2018 08:48:45 +0000</resolved>
                                                    <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="44536" author="giheron@cisco.com" created="Tue, 26 Sep 2017 15:50:07 +0000"  >&lt;p&gt;added a few more logs.  we&apos;re searching for the right module/revision.  But seems that the schema context is incorrect as can&apos;t see openconfig-interfaces in there at all.  Maybe we&apos;re looking in the controller context rather than the mounted context for some reason?&lt;/p&gt;</comment>
                            <comment id="44537" author="pkajsa" created="Wed, 27 Sep 2017 08:50:11 +0000"  >&lt;p&gt;I&apos;m sorry, but I don&apos;t see any logs attached. Please can you attach them. Thanks.&lt;/p&gt;</comment>
                            <comment id="44540" author="giheron@cisco.com" created="Wed, 27 Sep 2017 09:36:12 +0000"  >&lt;p&gt;Attachment error.log has been added with description: log snippet&lt;/p&gt;</comment>
                            <comment id="44538" author="pkajsa" created="Tue, 3 Oct 2017 13:16:01 +0000"  >&lt;p&gt;I have been testing this issue in different ways from yangtools point of view, but it always works fine as far as Yangtools is concerned. Target of leafref is resolved correctly and base type for leafref is also resolved correctly. Maybe there is some problem before yangtools.. or are we sure there are not any other deviations (except the mentioned cisco-xr-openconfig-interfaces-deviations.yang) related to openconfig-interfaces module (especially that could affect leafref target in some way) ?&lt;/p&gt;</comment>
                            <comment id="44539" author="pkajsa" created="Wed, 11 Oct 2017 15:19:39 +0000"  >&lt;p&gt;I have discussed this issue with netconf guys and they have the following questions.&lt;br/&gt;
What exactlty are the steps to reproduce this bug (what reads are you performing or etc.) ?&lt;br/&gt;
They have asked for whole log when a device is connecting (with enabled DEBUG on  org.opendaylight.netconf.sal.connect.netconf) in order to see hello report.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="60051" author="mcauffiez" created="Tue, 14 Nov 2017 16:51:23 +0000"  >&lt;p&gt;Added hellomessage, karaf log and json answer &lt;br/&gt;
Matthieu&lt;/p&gt;</comment>
                            <comment id="60092" author="rovarga" created="Mon, 20 Nov 2017 13:15:37 +0000"  >&lt;p&gt;The exception seems to point to incorrect data format:&lt;/p&gt;

&lt;p&gt;Caused by: java.lang.IllegalStateException: Schema for node with name ipv4 and namespace &lt;a href=&quot;http://openconfig.net/yang/interfaces/ip&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://openconfig.net/yang/interfaces/ip&lt;/a&gt; doesn&apos;t exist.&lt;br/&gt;
	at com.google.common.base.Preconditions.checkState(Preconditions.java:733)&lt;span class=&quot;error&quot;&gt;&amp;#91;12:com.google.guava:22.0.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:366)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:297)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:297)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.read(XmlParserStream.java:373)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.parse(XmlParserStream.java:191)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.codec.xml.XmlParserStream.traverse(XmlParserStream.java:220)&lt;span class=&quot;error&quot;&gt;&amp;#91;68:org.opendaylight.yangtools.yang-data-codec-xml:1.2.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at org.opendaylight.netconf.sal.connect.netconf.schema.mapping.NetconfMessageTransformer.toRpcResult(NetconfMessageTransformer.java:196)&lt;span class=&quot;error&quot;&gt;&amp;#91;366:org.opendaylight.netconf.sal-netconf-connector:1.6.0&amp;#93;&lt;/span&gt;&lt;br/&gt;
	... 36 more&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/65716&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/65716&lt;/a&gt; adds more information, we do need the XML content from the device.&lt;/p&gt;</comment>
                            <comment id="64532" author="rovarga" created="Fri, 3 Aug 2018 20:57:13 +0000"  >&lt;p&gt;Giles, can you check if problem is still there?&lt;/p&gt;</comment>
                            <comment id="64544" author="gilesheron" created="Sun, 5 Aug 2018 17:51:07 +0000"  >&lt;p&gt;Looks good&#160;for me on Oxygen SR2.&#160; &#160;Less so if I go back to Carbon SR2.&#160; So I guess it&apos;s fixed&#160; &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.opendaylight.org/images/icons/emoticons/smile.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="65478" author="bvaradar" created="Fri, 2 Nov 2018 01:35:40 +0000"  >&lt;p&gt;Can I&#160; please know the exact gerrit patch that fixes this issue? I may need this for Carbon.&#160; Thanks.&lt;/p&gt;</comment>
                            <comment id="65480" author="rovarga" created="Fri, 2 Nov 2018 08:12:29 +0000"  >&lt;p&gt;I don&apos;t have a clue, it must have been fixed as a side effect of some other issue.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="14256" name="answer.json" size="5577" author="MCAUFFIEZ" created="Tue, 14 Nov 2017 16:50:06 +0000"/>
                            <attachment id="13095" name="error.log" size="39012" author="giheron@cisco.com" created="Wed, 27 Sep 2017 09:36:12 +0000"/>
                            <attachment id="14257" name="hellomessage.rtf" size="47957" author="MCAUFFIEZ" created="Tue, 14 Nov 2017 16:50:06 +0000"/>
                            <attachment id="14258" name="karaf.log" size="987309" author="MCAUFFIEZ" created="Tue, 14 Nov 2017 16:50:15 +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>9214</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=9214]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

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

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

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