<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:15:05 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-455] Unable  to see netcont-testtool device data behind the mount point</title>
                <link>https://jira.opendaylight.org/browse/NETCONF-455</link>
                <project id="10142" key="NETCONF">netconf</project>
                    <description>&lt;ol&gt;
	&lt;li&gt;Aim&lt;br/&gt;
To connect three node cluster to the netconf testtool and look behind mount point.&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;Test Artifact&lt;br/&gt;
Last successful Nitrogen auto-release build&lt;br/&gt;
&lt;a href=&quot;https://nexus.opendaylight.org/content/repositories/autorelease-1919&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://nexus.opendaylight.org/content/repositories/autorelease-1919&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;



&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Test Setup&lt;br/&gt;
Member-1: 10.10.199.105 &lt;br/&gt;
Member-2: 10.10.199.88 &lt;br/&gt;
Member-3: 10.10.199.183 &lt;br/&gt;
Netconf device: 10.10.199.185&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;java -version&lt;br/&gt;
java version &quot;1.8.0_131&quot;&lt;br/&gt;
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)&lt;br/&gt;
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)&lt;/p&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Steps&lt;br/&gt;
Configure a 3 node cluster&lt;br/&gt;
Start odl on members&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Set  the  log levels for clustering and netconf&lt;/p&gt;

&lt;p&gt;log:set DEBUG org.opendaylight.controller.cluster  &lt;br/&gt;
log:set INFO org.opendaylight.controller.cluster.datastore.node.utils&lt;br/&gt;
log:set DEBUG org.opendaylight.controller.netconf&lt;br/&gt;
log:set DEBUG org.opendaylight.controller.sal.connect.netconf  &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Load features&lt;br/&gt;
feature:install odl-jolokia odl-netconf-clustered-topology odl-restconf &lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;@ 11.04 UTC&lt;br/&gt;
Run postman collection to &lt;/p&gt;

&lt;p&gt;1) find leaders of &apos;shard-topology-config&apos; and &apos;shard-inventory-config&apos;. It was member-1&lt;br/&gt;
2) Confirm netconf topology  is available.&lt;br/&gt;
3) To confirm no device is connected. &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Example of REST APIs used.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;Leader of shard-topology-config on DistributedConfigDatastore  on each member&lt;/p&gt;

&lt;p&gt;curl --request GET \&lt;br/&gt;
  --url &apos;http://10.10.199.XXX:8181/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-1-shard-topology-config,type=DistributedConfigDatastore&apos; \&lt;br/&gt;
  --header &apos;accept: application/json&apos; \&lt;br/&gt;
  --header &apos;authorization: Basic YWRtaW46YWRtaW4=&apos; \&lt;br/&gt;
  --header &apos;cache-control: no-cache&apos; \&lt;br/&gt;
  --header &apos;content-type: application/json&apos; &lt;/p&gt;



&lt;p&gt;Leader of shard-inventory-config on DistributedConfigDatastore on each member&lt;/p&gt;

&lt;p&gt;curl --request GET \&lt;br/&gt;
  --url &apos;http://10.10.199.XXX:8181/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-1-shard-inventory-config,type=DistributedConfigDatastore&apos; \&lt;br/&gt;
  --header &apos;accept: application/json&apos; \&lt;br/&gt;
  --header &apos;authorization: Basic YWRtaW46YWRtaW4=&apos; \&lt;br/&gt;
  --header &apos;cache-control: no-cache&apos; \&lt;br/&gt;
  --header &apos;content-type: application/json&apos;&lt;/p&gt;


&lt;p&gt;Confirm no device added to network topology&lt;/p&gt;

&lt;p&gt;curl --request GET \&lt;br/&gt;
  --url &lt;a href=&quot;http://10.10.199.105:8181/restconf/operational/network-topology:network-topology&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://10.10.199.105:8181/restconf/operational/network-topology:network-topology&lt;/a&gt; \&lt;br/&gt;
  --header &apos;accept: application/xml&apos; \&lt;br/&gt;
  --header &apos;authorization: Basic YWRtaW46YWRtaW4=&apos; \&lt;br/&gt;
  --header &apos;cache-control: no-cache&apos;  &lt;/p&gt;


&lt;p&gt;@11.05 UTC&lt;br/&gt;
Start device on testtools VM&lt;/p&gt;

&lt;p&gt;java -Xmx1G -XX:MaxPermSize=256M -Dorg.apache.sshd.registerBouncyCastle=false -jar netconf-testtool-1.3-Nitrogen-executable.jar  --device-count 1 --debug true --schemas-dir ./schemas --md-sal true &lt;/p&gt;


&lt;p&gt;@11.05 UTC&lt;br/&gt;
Connect to device from member 1&lt;/p&gt;


&lt;p&gt;curl --request PUT \&lt;br/&gt;
  --url &lt;a href=&quot;http://10.10.199.105:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/netconf-test-device&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://10.10.199.105:8181/restconf/config/network-topology:network-topology/topology/topology-netconf/node/netconf-test-device&lt;/a&gt; \&lt;br/&gt;
  --header &apos;authorization: Basic YWRtaW46YWRtaW4=&apos; \&lt;br/&gt;
  --header &apos;cache-control: no-cache&apos; \&lt;br/&gt;
  --header &apos;content-type: application/xml&apos; \&lt;br/&gt;
  --data &apos; &amp;lt;node xmlns=&quot;urn:TBD:params:xml:ns:yang:network-topology&quot;&amp;gt;\r\n   &amp;lt;node-id&amp;gt;netconf-test-device&amp;lt;/node-id&amp;gt;\r\n   &amp;lt;host xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;10.10.199.185&amp;lt;/host&amp;gt;\r\n   &amp;lt;port xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;17830&amp;lt;/port&amp;gt;\r\n   &amp;lt;username xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;root&amp;lt;/username&amp;gt;\r\n   &amp;lt;password xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;root&amp;lt;/password&amp;gt;\r\n   &amp;lt;tcp-only xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;false&amp;lt;/tcp-only&amp;gt;\r\n   &amp;lt;keepalive-delay xmlns=&quot;urn:opendaylight:netconf-node-topology&quot;&amp;gt;0&amp;lt;/keepalive-delay&amp;gt;\r\n &amp;lt;/node&amp;gt;\r\n \r\n &apos;&lt;/p&gt;


&lt;p&gt;@11.06 UTC&lt;br/&gt;
Run postman collection to see connecting status Try-1&lt;/p&gt;


&lt;p&gt;@11.10 UTC&lt;br/&gt;
Run postman collection to see connecting status Try-2&lt;/p&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Results&lt;br/&gt;
Device showed as connected but  HTTP 500 errors were seen on every node when trying to look beyond the mount point.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The postman results are attached as a zip &lt;br/&gt;
The full logs from each member are attached as a zip&lt;/p&gt;

&lt;p&gt;Extracts from the member-1 ,used to make the PUT request&lt;/p&gt;

&lt;p&gt;2017-08-17 11:05:42,364 | ERROR | lt-dispatcher-37 | AAAEncryptionServiceImpl         | 134 - org.opendaylight.aaa.encrypt-service - 0.6.0.Nitrogen | Failed to decrypt encoded data&lt;br/&gt;
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher&lt;br/&gt;
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:934)&lt;span class=&quot;error&quot;&gt;&amp;#91;sunjce_provider.jar:1.8.0_112&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:845)&lt;span class=&quot;error&quot;&gt;&amp;#91;sunjce_provider.jar:1.8.0_112&amp;#93;&lt;/span&gt;&lt;br/&gt;
	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:446)&lt;span class=&quot;error&quot;&gt;&amp;#91;sunjce_provider.jar:1.8.0_112&amp;#93;&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;2017-08-17 11:05:42,522 | ERROR | on-dispatcher-71 | DataTreeChangeListenerActor      | 275 - org.opendaylight.controller.sal-clustering-commons - 1.6.0.Nitrogen | member-1-shard-topology-config: Error notifying listener org.opendaylight.controller.md.sal.binding.impl.BindingClusteredDOMDataTreeChangeListenerAdapter@2b7930d6&lt;br/&gt;
java.lang.NullPointerException: RemoteDevice&lt;/p&gt;
{netconf-test-device}
&lt;p&gt;: Device communicator was not created.&lt;br/&gt;
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:799)&lt;span class=&quot;error&quot;&gt;&amp;#91;55:com.google.guava:22.0.0&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="21468">NETCONF-455</key>
            <summary>Unable  to see netcont-testtool device data behind the mount point</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10003" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Confirmed</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="ivanhrasko">Ivan Hrasko</assignee>
                                    <reporter username="ricjhill@gmail.com">RichardHill</reporter>
                        <labels>
                            <label>pt</label>
                    </labels>
                <created>Thu, 17 Aug 2017 15:38:58 +0000</created>
                <updated>Tue, 3 Aug 2021 13:43:09 +0000</updated>
                                                                            <component>netconf</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="40184" author="ricjhill@gmail.com" created="Thu, 17 Aug 2017 15:41:08 +0000"  >&lt;p&gt;Attachment nitrogen-netconf-clustering-postman-results-and-collection.zip has been added with description: Postman collection of REST API calls  and the results from running it&lt;/p&gt;</comment>
                            <comment id="40183" author="ricjhill@gmail.com" created="Thu, 17 Aug 2017 15:57:04 +0000"  >&lt;p&gt;logs from each of the cluster memebers&lt;br/&gt;
Timeline:&lt;/p&gt;

&lt;p&gt;11:00 netconf device not connected&lt;br/&gt;
11:05 netconf device connected&lt;br/&gt;
11:06 look behind mountpoint of netconf device Try1&lt;br/&gt;
11:10 look behind mountpoint of netconf device Try2&lt;/p&gt;</comment>
                            <comment id="40185" author="ricjhill@gmail.com" created="Thu, 17 Aug 2017 15:57:04 +0000"  >&lt;p&gt;Attachment logs-nitrogen-BUG-9004.zip has been added with description: logs from each of  the cluster members&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12729" name="logs-nitrogen-BUG-9004.zip" size="562095" author="ricjhill@gmail.com" created="Thu, 17 Aug 2017 15:57:04 +0000"/>
                            <attachment id="12728" name="nitrogen-netconf-clustering-postman-results-and-collection.zip" size="41971" author="ricjhill@gmail.com" created="Thu, 17 Aug 2017 15:41:08 +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>9004</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=9004]]></customfieldvalue>

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

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