<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:52:44 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-317] NETCONF client fails to detect commit failure</title>
                <link>https://jira.opendaylight.org/browse/CONTROLLER-317</link>
                <project id="10113" key="CONTROLLER">controller</project>
                    <description>&lt;p&gt;When configuring a router using RESTCONF to NETCONF ODL does the following on the router:&lt;/p&gt;

&lt;p&gt;1) get-config&lt;br/&gt;
2) edit-config&lt;br/&gt;
3) commit&lt;/p&gt;

&lt;p&gt;if the RESTCONF API user attempts e.g. to apply a non-existent ACL to an interface then the commit will fail.  However ODL fails to detect this.  As far as I know the router is returning a failure code to ODL.&lt;/p&gt;

&lt;p&gt;The problem we then have is that the NETCONF session now has outstanding incorrect configs which have not been rolled back.  So any future RESTCONF PUTs will fail - even if they are valid.&lt;/p&gt;

&lt;p&gt;even with &quot;TRACE&quot; logging on the netconf client all I see on the commit is:&lt;/p&gt;

&lt;p&gt;2014-04-14 10:00:31.866 BST &lt;span class=&quot;error&quot;&gt;&amp;#91;http-bio-8080-exec-6&amp;#93;&lt;/span&gt; DEBUG o.o.c.s.c.n.NetconfDevice#xrvr-a - Send message &amp;lt;rpc message-id=&quot;m-11&quot; xmlns=&quot;urn:ietf:params:xml:ns:netconf:base:1.0&quot;&amp;gt;&lt;br/&gt;
&amp;lt;commit/&amp;gt;&lt;br/&gt;
&amp;lt;/rpc&amp;gt;&lt;/p&gt;

&lt;p&gt;2014-04-14 10:00:31.866 BST &lt;span class=&quot;error&quot;&gt;&amp;#91;http-bio-8080-exec-6&amp;#93;&lt;/span&gt; DEBUG o.o.c.n.c.SimpleNetconfClientSessionListener - Sending message org.opendaylight.controller.netconf.api.NetconfMessage@154555a0&lt;br/&gt;
2014-04-14 10:00:31.892 BST &lt;span class=&quot;error&quot;&gt;&amp;#91;nettyThreadgroupModule$NioEventLoopGroupCloseable-9-1&amp;#93;&lt;/span&gt; DEBUG o.o.c.n.c.SimpleNetconfClientSessionListener - New message arrived: org.opendaylight.controller.netconf.api.NetconfMessage@7af88648&lt;br/&gt;
2014-04-14 10:00:31.892 BST &lt;span class=&quot;error&quot;&gt;&amp;#91;http-bio-8080-exec-6&amp;#93;&lt;/span&gt; DEBUG o.o.c.netconf.client.NetconfClient - Total time spent waiting for response from i2ss-yuma1.cisco.com/172.23.29.116:830: 26 ms&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="24871">CONTROLLER-317</key>
            <summary>NETCONF client fails to detect commit failure</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="giheron@cisco.com">Giles Heron</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Apr 2014 16:44:21 +0000</created>
                <updated>Tue, 25 Jul 2023 08:23:29 +0000</updated>
                            <resolved>Tue, 5 Aug 2014 09:27:59 +0000</resolved>
                                                                    <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="47991" author="giheron@cisco.com" created="Wed, 16 Apr 2014 11:15:40 +0000"  >&lt;p&gt;I think the solution needs to be that ODL does:&lt;/p&gt;

&lt;p&gt;1) lock&lt;br/&gt;
2) get-config&lt;br/&gt;
3) edit-config&lt;br/&gt;
4) commit&lt;br/&gt;
5) rollback (if commit failed)&lt;br/&gt;
6) unlock&lt;/p&gt;

&lt;p&gt;does that make sense?&lt;/p&gt;

&lt;p&gt;at any rate ODL needs to check the return codes at each step of this process.&lt;/p&gt;

&lt;p&gt;Also we need a way to return a &quot;not OK&quot; return code over the RESTCONF and Java APIs if any of the NETCONF operations fails.&lt;/p&gt;</comment>
                            <comment id="47992" author="mmarsale@cisco.com" created="Thu, 17 Apr 2014 06:17:19 +0000"  >&lt;p&gt;I have started working on this issue. But I could not get it done yet. &lt;/p&gt;

&lt;p&gt;I have discovered a few bugs in sal-netconf-connector (fixed a few here &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/6234/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/6234/&lt;/a&gt;) but there is still some kind of synchronization problem when downloading schemas from remote device.&lt;/p&gt;

&lt;p&gt;Also before I can support &quot;commit fail detection&quot; I need to do:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;perform some refactoring,&lt;/li&gt;
	&lt;li&gt;remove xtend dependencies and xtend code&lt;/li&gt;
	&lt;li&gt;write some unit test&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So this wont be supported in the next few days, my next working day is on 22.4.2014&lt;/p&gt;</comment>
                            <comment id="47993" author="mmarsale@cisco.com" created="Thu, 17 Apr 2014 10:37:42 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/6234/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/6234/&lt;/a&gt; - Fix monitoring capability detection&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/6253/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/6253/&lt;/a&gt; - Fix deadlock when downloading yang schemas from remote device&lt;/p&gt;</comment>
                            <comment id="47994" author="devin.avery@brocade.com" created="Fri, 2 May 2014 12:40:15 +0000"  >&lt;p&gt;Note gerrit 6253 introduced a concurrency bug. Please see that gerrit ticket for details.&lt;/p&gt;</comment>
                            <comment id="47995" author="devin.avery@brocade.com" created="Fri, 2 May 2014 13:01:08 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/CONTROLLER-447&quot; title=&quot;Concurrency Issue in NetconfDevice&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CONTROLLER-447&quot;&gt;&lt;del&gt;CONTROLLER-447&lt;/del&gt;&lt;/a&gt; created for concurrency issues.&lt;/p&gt;</comment>
                            <comment id="47996" author="mmarsale@cisco.com" created="Fri, 23 May 2014 11:49:47 +0000"  >&lt;p&gt;Still waiting for 832&lt;/p&gt;</comment>
                            <comment id="47997" author="mmarsale@cisco.com" created="Tue, 15 Jul 2014 14:25:09 +0000"  >&lt;p&gt;Waiting for 1083 to remove deprecated APIs. After that, rollback can be implemented in the netconf-connector.&lt;/p&gt;</comment>
                            <comment id="47998" author="mmarsale@cisco.com" created="Wed, 30 Jul 2014 09:20:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9471/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9471/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="24765">CONTROLLER-211</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24776">CONTROLLER-222</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24844">CONTROLLER-290</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="24986">CONTROLLER-432</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="25066">CONTROLLER-512</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>732</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=732]]></customfieldvalue>

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

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

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