<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:03 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-446] Adding topology-netconf node via Restconf/XML fails</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-446</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;p&gt;I am trying to mount netconf device as explained on the wiki:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://wiki.opendaylight.org/view/OpenDaylight_Controller:Config:Examples:Netconf#Spawning_netconf_connectors_via_topology_configuration&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#Spawning_netconf_connectors_via_topology_configuration&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;feature:install odl-netconf-topology odl-restconf-all&lt;/p&gt;

&lt;p&gt;then&lt;/p&gt;

&lt;p&gt;PUT &lt;a href=&quot;http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/vpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/vpp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; &amp;lt;node xmlns=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;&lt;br/&gt;
   &amp;lt;node-id&amp;gt;vpp&amp;lt;/node-id&amp;gt;&lt;br/&gt;
   &amp;lt;host xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;127.0.0.1&amp;lt;/host&amp;gt;&lt;br/&gt;
   &amp;lt;port xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;2831&amp;lt;/port&amp;gt;&lt;br/&gt;
   &amp;lt;username xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;admin&amp;lt;/username&amp;gt;&lt;br/&gt;
   &amp;lt;password xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;admin&amp;lt;/password&amp;gt;&lt;br/&gt;
   &amp;lt;tcp-only xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;false&amp;lt;/tcp-only&amp;gt;&lt;br/&gt;
   &amp;lt;keepalive-delay xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;0&amp;lt;/keepalive-delay&amp;gt;&lt;br/&gt;
 &amp;lt;/node&amp;gt;&lt;/p&gt;

&lt;p&gt;I got following exception:&lt;/p&gt;

&lt;p&gt;2017-08-07 12:28:46,751 | ERROR | tp1414323362-290 | SnapshotBackedWriteTransaction   | 258 - org.opendaylight.controller.sal-core-spi - 1.6.0.SNAPSHOT | Tx: member-1-datastore-config-fe-0-txn-10-0, failed to write /(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=topology-netconf}
&lt;p&gt;]/node/node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;]/node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;]:ImmutableMapEntryNode{nodeIdentifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;], value=[ImmutableLeafNode{nodeIdentifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id, value=vpp, attributes={}}, ImmutableAugmentationNode{nodeIdentifier=AugmentationIdentifier&lt;/p&gt;
{childNames=[(urn:opendaylight:netconf-node-topology?revision=2015-01-14)connection-status, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)clustered-connection-status, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)connected-message, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)available-capabilities, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)unavailable-capabilities, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)pass-through, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)credentials, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)schema-cache-directory, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)yang-library, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)host, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)port, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)tcp-only, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)schemaless, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)yang-module-capabilities, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)non-module-capabilities, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)reconnect-on-changed-schema, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)connection-timeout-millis, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)default-request-timeout-millis, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)max-connection-attempts, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)between-attempts-timeout-millis, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)sleep-factor, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)keepalive-delay, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)concurrent-rpc-limit, (urn:opendaylight:netconf-node-topology?revision=2015-01-14)actor-response-wait-time]}
&lt;p&gt;, value=[ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)tcp-only, value=false, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)host, value=127.0.0.1, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)keepalive-delay, value=0, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)port, value=2831, attributes={}}, ImmutableChoiceNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)credentials, value=&lt;span class=&quot;error&quot;&gt;&amp;#91;ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)username, value=admin, attributes={}}, ImmutableLeafNode{nodeIdentifier=(urn:opendaylight:netconf-node-topology?revision=2015-01-14)password, value=admin, attributes={}}&amp;#93;&lt;/span&gt;}]}], attributes={}} in MutableDataTree [modification=NodeModification [identifier=(urn:ietf:params:xml:ns:netconf:base:1.0)data, modificationType=TOUCH, childModification={(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology=NodeModification [identifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology, modificationType=MERGE, childModification={(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology=NodeModification [identifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology, modificationType=MERGE, childModification={(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=topology-netconf}
&lt;p&gt;]=NodeModification [identifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=topology-netconf}
&lt;p&gt;], modificationType=MERGE, childModification={(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=NodeModification &lt;span class=&quot;error&quot;&gt;&amp;#91;identifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id, modificationType=MERGE, childModification={}&amp;#93;&lt;/span&gt;, (urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node=NodeModification [identifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node, modificationType=MERGE, childModification={(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;]=NodeModification [identifier=(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;], modificationType=MERGE, childModification={}]}]}]}]}]}]]&lt;br/&gt;
org.opendaylight.yangtools.yang.data.impl.schema.tree.SchemaValidationFailedException: Child /(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)network-topology/topology/topology[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)topology-id=topology-netconf}
&lt;p&gt;]/node/node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;]/node[&lt;/p&gt;
{(urn:TBD:params:xml:ns:yang:network-topology?revision=2013-10-21)node-id=vpp}
&lt;p&gt;] is not present in schema tree.&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.impl.schema.tree.InMemoryDataTreeModification.resolveModificationFor(InMemoryDataTreeModification.java:155)&lt;br/&gt;
	at org.opendaylight.yangtools.yang.data.impl.schema.tree.InMemoryDataTreeModification.write(InMemoryDataTreeModification.java:70)&lt;br/&gt;
	at org.opendaylight.controller.sal.core.spi.data.SnapshotBackedWriteTransaction.write(SnapshotBackedWriteTransaction.java:62)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.modification.WriteModification.apply(WriteModification.java:45)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.LocalTransactionContext.executeModification(LocalTransactionContext.java:52)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.TransactionProxy$2.invoke(TransactionProxy.java:173)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.TransactionContextWrapper.maybeExecuteTransactionOperation(TransactionContextWrapper.java:93)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.TransactionProxy.executeModification(TransactionProxy.java:170)&lt;br/&gt;
	at org.opendaylight.controller.cluster.datastore.TransactionProxy.write(TransactionProxy.java:160)&lt;br/&gt;
	at org.opendaylight.controller.cluster.databroker.AbstractDOMBrokerWriteTransaction.put(AbstractDOMBrokerWriteTransaction.java:80)&lt;br/&gt;
	at org.opendaylight.netconf.sal.restconf.impl.BrokerFacade.makePut(BrokerFacade.java:1173)&lt;span class=&quot;error&quot;&gt;&amp;#91;303:org.opendaylight.netconf.sal-rest-connector:1.6.0.SNAPSHOT&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Any idea what I am doing wrong?&lt;/p&gt;

&lt;p&gt;More detailed log attached. I tried karaf-0.7.0-20170807.063951-1585.zip and netconf/caraf from local build (033e972eaf0d009ed0c0f54a109b6046fae80c99)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21459">NETCONF-446</key>
            <summary>Adding topology-netconf node via Restconf/XML fails</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="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="mgradzki">Marek Gradzki</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Aug 2017 10:35:46 +0000</created>
                <updated>Fri, 15 Mar 2019 22:22:43 +0000</updated>
                            <resolved>Thu, 10 Aug 2017 10:47:55 +0000</resolved>
                                                                    <component>restconf-nb</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="40137" author="mgradzki@cisco.com" created="Mon, 7 Aug 2017 10:35:46 +0000"  >&lt;p&gt;Attachment karaf.log has been added with description: karaf4 log&lt;/p&gt;</comment>
                            <comment id="40132" author="mgradzki@cisco.com" created="Mon, 7 Aug 2017 10:58:07 +0000"  >&lt;p&gt;Issue relates only to XML (JSON fails with different error, message)&lt;/p&gt;</comment>
                            <comment id="40133" author="vrpolak" created="Tue, 8 Aug 2017 10:02:33 +0000"  >&lt;p&gt;This is also happening in CSIT &lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt;, and looking into karaf.log I believe this is just a consequence of &lt;a href=&quot;https://jira.opendaylight.org/browse/ODLPARENT-110&quot; title=&quot;[Karaf 4] Avoid bundle refreshes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;ODLPARENT-110&quot;&gt;&lt;del&gt;ODLPARENT-110&lt;/del&gt;&lt;/a&gt;. Possibly this is already fixed by &lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://logs.opendaylight.org/releng/jenkins092/netconf-csit-1node-userfeatures-only-nitrogen/103/log.html.gz#s1-s4-s1-t3-k2-k2-k1-k4-k7-k1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://logs.opendaylight.org/releng/jenkins092/netconf-csit-1node-userfeatures-only-nitrogen/103/log.html.gz#s1-s4-s1-t3-k2-k2-k1-k4-k7-k1&lt;/a&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/61273&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/61273&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="40134" author="vrpolak" created="Tue, 8 Aug 2017 10:36:42 +0000"  >&lt;p&gt;&amp;gt; I believe this is just a consequence of &lt;a href=&quot;https://jira.opendaylight.org/browse/ODLPARENT-110&quot; title=&quot;[Karaf 4] Avoid bundle refreshes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;ODLPARENT-110&quot;&gt;&lt;del&gt;ODLPARENT-110&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I do not believe that anymore, because BGP tests show a very similar &lt;a href=&quot;https://jira.opendaylight.org/browse/NETCONF-447&quot; title=&quot;SchemaValidationFailedException for openconfig data&quot; class=&quot;issue-link&quot; data-issue-key=&quot;NETCONF-447&quot;&gt;&lt;del&gt;NETCONF-447&lt;/del&gt;&lt;/a&gt; without refreshes of critical bundles.&lt;/p&gt;</comment>
                            <comment id="40135" author="jmorvay@cisco.com" created="Thu, 10 Aug 2017 07:22:14 +0000"  >&lt;p&gt;Moving this to restconf component as this is more related to restconf than to netconf. The actual problem is that restconf cannot properly process requests with XML payload containing a root list element.&lt;/p&gt;

&lt;p&gt;This is related to migration to the new yangtools XML parser and its slightly changed parsing behavior.&lt;/p&gt;

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

&lt;p&gt;We just need to add UT to capture this scenario and it&apos;s good to go.&lt;/p&gt;</comment>
                            <comment id="40136" author="ifoltin" created="Thu, 10 Aug 2017 08:56:09 +0000"  >&lt;p&gt;Fix: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/61333/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/61333/&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="28193">OPNFLWPLUG-925</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10002">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21460">NETCONF-447</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="28196">OPNFLWPLUG-928</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="12725" name="karaf.log" size="579507" author="mgradzki" created="Mon, 7 Aug 2017 10:35:46 +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>8939</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=8939]]></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="10320"><![CDATA[Nitrogen]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10312"><![CDATA[High]]></customfieldvalue>

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

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