<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:32:19 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>[OPNFLWPLUG-385] AD-SAL switch manager does not work</title>
                <link>https://jira.opendaylight.org/browse/OPNFLWPLUG-385</link>
                <project id="10155" key="OPNFLWPLUG">OpenFlowPlugin</project>
                    <description>&lt;p&gt;Hi controller devs,&lt;/p&gt;

&lt;p&gt;Our CI System Test has detected a regression in AD-SAL NSF functionality:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;For mininet OF10 devices, switch manager shows no node information&lt;/li&gt;
	&lt;li&gt;For mininet OF13 devices, switch manager misses some nodes (randomly)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Steps to reproduce:&lt;/p&gt;

&lt;p&gt;1) Start controller, install features: odl-openflowplugin-flow-services-ui, odl-openflowplugin-adsal-compatibility, odl-nsf-all&lt;/p&gt;

&lt;p&gt;2) start mininet: sudo mn --topo tree,2  --controller &apos;remote,ip=127.0.0.1&apos;&lt;/p&gt;

&lt;p&gt;3) Check switch manager at: &lt;a href=&quot;http://localhost:8282/controller/nb/v2/switchmanager/default/nodes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8282/controller/nb/v2/switchmanager/default/nodes&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By tracing back the error, 2 possible patches show up:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/16140&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/16140&lt;/a&gt; (controller message bus)&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16821&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16821&lt;/a&gt; (yangtool enum)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27653">OPNFLWPLUG-385</key>
            <summary>AD-SAL switch manager does not work</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="tony.tkacik@gmail.com">Tony Tkacik</assignee>
                                    <reporter username="ecelgp">Luis Gomez</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Mar 2015 00:35:34 +0000</created>
                <updated>Mon, 27 Sep 2021 09:01:27 +0000</updated>
                            <resolved>Tue, 17 Nov 2015 17:45:04 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="56612" author="tony.tkacik@gmail.com" created="Thu, 26 Mar 2015 09:36:39 +0000"  >&lt;p&gt;Messagebus is not present / installed in CSIT so it should not be the cause, since it did not touched any codepath in openflowplugin&lt;/p&gt;

&lt;p&gt;The second one is more potential, but API contract were preserved, which effectively means ad-sal compatibility was relying on some implementation detail.&lt;/p&gt;</comment>
                            <comment id="56613" author="ecelgp" created="Fri, 27 Mar 2015 21:15:39 +0000"  >&lt;p&gt;Hi Tony, I am going to remove the adsal test for now to restore the system test and unblock integration openflow patches, let me know when this is fixed so that I can restore the adsal test.&lt;/p&gt;

&lt;p&gt;Thanks/Luis&lt;/p&gt;</comment>
                            <comment id="56614" author="hideyuki.tai@necam.com" created="Fri, 3 Apr 2015 23:44:33 +0000"  >&lt;p&gt;It seems to me that the root cause of this issue (&lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-385&quot; title=&quot;AD-SAL switch manager does not work&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-385&quot;&gt;&lt;del&gt;OPNFLWPLUG-385&lt;/del&gt;&lt;/a&gt;) is in the sal-compatibility in the openflowplugin.git. &lt;/p&gt;


&lt;p&gt;The sal-compatibility registers itself with MD-SAL as a DataChangeListener for &quot;Nodes/Node&quot;.&lt;br/&gt;
On the registration, the sal-compatibility, however, sets DataChangeScope.BASE as the scope of the data change.&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;legacy/sal-compatibility/src/main/java/org/opendaylight/openflowplugin/legacy/sal/compatibility/AbstractDataChangeListener.java&amp;#93;&lt;/span&gt;&lt;br/&gt;
    113     protected void registrationListener(final DataBroker db, int i) {&lt;br/&gt;
    114         try {&lt;br/&gt;
    115             listenerRegistration = db.registerDataChangeListener(LogicalDatastoreType.OPERATIONAL,&lt;br/&gt;
    116                     getWildCardPath(), this, DataChangeScope.BASE);&lt;/p&gt;

&lt;p&gt;Since the scope is &lt;b&gt;BASE&lt;/b&gt;, MD-SAL does not notify the sal-compatibility of the data change of children and augmentation of &quot;Nodes/Node&quot;.&lt;br/&gt;
Though the sal-compatibility needs the data in &quot;FlowCapableNode&quot;, which is the augmentation of &quot;Nodes/Node&quot;, to update Node information.&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;legacy/sal-compatibility/src/main/java/org/opendaylight/openflowplugin/legacy/sal/compatibility/NodeDataChangeListener.java&amp;#93;&lt;/span&gt;&lt;br/&gt;
   31     protected void add(InstanceIdentifier&amp;lt;Node&amp;gt; createKeyIdent, Node node) {&lt;br/&gt;
   32         FlowCapableNode fcn = node.getAugmentation(FlowCapableNode.class);&lt;br/&gt;
   33         if(fcn != null) {&lt;/p&gt;


&lt;p&gt;Why did it work well before?&lt;br/&gt;
I &lt;b&gt;guess&lt;/b&gt; that MD-SAL wrongly handled the &quot;DataChangeScope.BASE&quot;, and it leaked data changes to listeners before the following patch was merged.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/16821&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/16821&lt;/a&gt;&lt;br/&gt;
The leak might cover up the sal-compatibility issue.&lt;/p&gt;</comment>
                            <comment id="56615" author="hideyuki.tai@necam.com" created="Fri, 3 Apr 2015 23:54:29 +0000"  >&lt;p&gt;I&apos;ve submitted a patch to the openflowplugin.git.&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/17727/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/17727/&lt;/a&gt;&lt;br/&gt;
The patch changes the scope of the data change from &lt;b&gt;BASE&lt;/b&gt; to &lt;b&gt;SUBTREE&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;In my machine, I observed that the patch fixed the issue (&lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-385&quot; title=&quot;AD-SAL switch manager does not work&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-385&quot;&gt;&lt;del&gt;OPNFLWPLUG-385&lt;/del&gt;&lt;/a&gt;).&lt;br/&gt;
By the result, I&apos;m convinced that the root cause of this issue (&lt;a href=&quot;https://jira.opendaylight.org/browse/OPNFLWPLUG-385&quot; title=&quot;AD-SAL switch manager does not work&quot; class=&quot;issue-link&quot; data-issue-key=&quot;OPNFLWPLUG-385&quot;&gt;&lt;del&gt;OPNFLWPLUG-385&lt;/del&gt;&lt;/a&gt;) is in the sal-compatibility.&lt;/p&gt;</comment>
                            <comment id="56616" author="abhijit2511" created="Mon, 13 Apr 2015 18:08:28 +0000"  >&lt;p&gt;Michal and Anil have +1-ed the change:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/17727/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/17727/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please do not close the bug - see Michal&apos;s comments on this (this is a temporary work around &amp;amp; actual fix needs to be done separately):&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/openflowplugin-dev/2015-April/002887.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/openflowplugin-dev/2015-April/002887.html&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="56617" author="ecelgp" created="Mon, 13 Apr 2015 18:15:49 +0000"  >&lt;p&gt;OK, just let me know when I should restore the adsal tests in the CI. For now I am verifying this patch with new patch test job:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jenkins.opendaylight.org/releng/view/integration/job/integration-patch-test-master/1/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jenkins.opendaylight.org/releng/view/integration/job/integration-patch-test-master/1/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BR/Luis&lt;/p&gt;</comment>
                            <comment id="56618" author="mirehak@cisco.com" created="Wed, 15 Apr 2015 07:32:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/17727/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/17727/&lt;/a&gt; merged&lt;/p&gt;</comment>
                            <comment id="56619" author="carolsand@gmail.com" created="Mon, 4 May 2015 20:16:10 +0000"  >&lt;p&gt;This bug is part of the project to Move all ADSAL associated component bugs to ADSAL&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>2886</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=2886]]></customfieldvalue>

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

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

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