<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:27:29 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>[ODLPARENT-49] Karaf ssh EOFError (is it due to low entropy, due to Java&apos;s default use of blocking /dev/random instead of /dev/urandom?)</title>
                <link>https://jira.opendaylight.org/browse/ODLPARENT-49</link>
                <project id="10149" key="ODLPARENT">odlparent</project>
                    <description>&lt;p&gt;JamO &amp;amp; others (incl. dfarrell) report relatively frequently seeing EOFError in CSIT Robot Suites when ssh into Karaf (not OS level sshd).&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22172">ODLPARENT-49</key>
            <summary>Karaf ssh EOFError (is it due to low entropy, due to Java&apos;s default use of blocking /dev/random instead of /dev/urandom?)</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="-1">Unassigned</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Sep 2016 10:12:01 +0000</created>
                <updated>Wed, 24 Jan 2018 14:27:03 +0000</updated>
                            <resolved>Wed, 18 Jan 2017 13:59:13 +0000</resolved>
                                                                    <component>General</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="41874" author="vorburger" created="Fri, 23 Sep 2016 10:25:17 +0000"  >&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/dev/2016-September/002704.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/dev/2016-September/002704.html&lt;/a&gt; : One theory we have is that perhaps this could be due to low entropy.  One solution to this would be to make the JVM process of the ssh server in Karaf (which apparently we&apos;ve configured to use boucycastle) use the non-blocking /dev/urandom instead of the blocking /dev/random.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://brooklyn.apache.org/documentation/increase-entropy.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://brooklyn.apache.org/documentation/increase-entropy.html&lt;/a&gt; is another Java based system with similar issues, so maybe this is related.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/dev/2016-September/002727.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/dev/2016-September/002727.html&lt;/a&gt; =&amp;gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45749/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45749/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="41875" author="vorburger" created="Fri, 23 Sep 2016 10:26:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/dev/2016-September/002734.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/dev/2016-September/002734.html&lt;/a&gt; Ryan Goulding confirms that: &quot;In our downstream internal CI, I had to&lt;br/&gt;
make adjustments to seed from /dev/urandom instead as we were experiencing&lt;br/&gt;
hanging tests (especially for netconf through sshd-core when mounting&lt;br/&gt;
several devices).&quot;&lt;/p&gt;</comment>
                            <comment id="41876" author="vorburger" created="Fri, 23 Sep 2016 10:29:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/dev/2016-September/002785.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/dev/2016-September/002785.html&lt;/a&gt; Jamo Luhrsen reports entropy was 168 in /proc/sys/kernel/random/entropy_avail when this happened.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45760/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45760/&lt;/a&gt; is a change to use -Djava.security.egd=&lt;a href=&quot;file:/dev/./urandom&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:/dev/./urandom&lt;/a&gt; on start up (based on &lt;a href=&quot;http://stackoverflow.com/a/2325109/421602&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/a/2325109/421602&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://lists.opendaylight.org/pipermail/dev/2016-September/002786.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/dev/2016-September/002786.html&lt;/a&gt; disagrees that low entropy could be the root cause of this problem.&lt;/p&gt;

&lt;p&gt;This &lt;a href=&quot;http://www.2uo.de/myths-about-urandom/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.2uo.de/myths-about-urandom/&lt;/a&gt; is interesting.&lt;/p&gt;</comment>
                            <comment id="41877" author="skitt@redhat.com" created="Fri, 23 Sep 2016 11:39:30 +0000"  >&lt;p&gt;(In reply to Michael Vorburger from comment #3)&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://lists.opendaylight.org/pipermail/dev/2016-September/002786.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/dev/2016-September/002786.html&lt;/a&gt;&lt;br/&gt;
&amp;gt; disagrees that low entropy could be the root cause of this problem.&lt;/p&gt;

&lt;p&gt;But that might well be wrong, given that OpenSSH uses /dev/urandom anyway.&lt;/p&gt;</comment>
                            <comment id="41878" author="vorburger" created="Fri, 23 Sep 2016 12:19:02 +0000"  >&lt;p&gt;FTR: &lt;a href=&quot;https://bugs.openjdk.java.net/browse/JDK-4705093&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugs.openjdk.java.net/browse/JDK-4705093&lt;/a&gt; = &lt;a href=&quot;http://bugs.java.com/view_bug.do?bug_id=4705093&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://bugs.java.com/view_bug.do?bug_id=4705093&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs.oracle.com/cd/E13209_01/wlcp/wlss30/configwlss/jvmrand.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/cd/E13209_01/wlcp/wlss30/configwlss/jvmrand.html&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="41879" author="vorburger" created="Fri, 23 Sep 2016 12:25:02 +0000"  >&lt;p&gt;Once we have confirmation that with the merge of the &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/45760/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45760/&lt;/a&gt;  (now cleaned up/refined, thanks Stephen Kitt!) this problem disappears, we should also:&lt;/p&gt;

&lt;p&gt;A. Open a bug + pull request (skitt) on upstream Karaf (4) to do the same as we are&lt;/p&gt;

&lt;p&gt;B. Open a bug on &lt;a href=&quot;https://bugzilla.redhat.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugzilla.redhat.com&lt;/a&gt; to suggest that perhaps OpenJDK RPM packages could &quot;Change the default for java.security in $JAVA_HOME/jre/lib/security/java.security from &lt;a href=&quot;file:/dev/random&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:/dev/random&lt;/a&gt; to &lt;a href=&quot;file:/dev/urandom&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:/dev/urandom&lt;/a&gt;&quot;, some time. &quot;If deemed too risky a change for a Java 8 security patch, perhaps consider this for Java 9 packages?  If this is controversial, perhaps it&apos;s time to re-raise this upstream on OpenJDK?&quot;&lt;/p&gt;</comment>
                            <comment id="41880" author="vorburger" created="Wed, 11 Jan 2017 22:52:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/50327/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/50327/&lt;/a&gt; fixes SingleFeatureTest up re. this.&lt;/p&gt;

&lt;p&gt;Attached a jstack of the Karaf stuck due to this.&lt;/p&gt;</comment>
                            <comment id="41884" author="vorburger" created="Wed, 11 Jan 2017 22:52:03 +0000"  >&lt;p&gt;Attachment karaf.jstack.txt has been added with description: jstack of Karaf stuck in netconf SSH server init due to low entropy&lt;/p&gt;</comment>
                            <comment id="41881" author="vrpolak" created="Thu, 12 Jan 2017 15:09:03 +0000"  >&lt;p&gt;This is still affecting CSIT. See comment &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;Either releng/builder manages to prepare machines with sufficinet entropy, or we should switch to testing Karaf with &quot;-Djava.security.egd=&lt;a href=&quot;file:/dev/./urandom&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:/dev/./urandom&lt;/a&gt;&quot; option added.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/50362/3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/50362/3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="41882" author="vrpolak" created="Tue, 17 Jan 2017 17:35:54 +0000"  >&lt;p&gt;More info from &lt;a href=&quot;https://lists.opendaylight.org/pipermail/integration-dev/2017-January/008955.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lists.opendaylight.org/pipermail/integration-dev/2017-January/008955.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&amp;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/#/c/45760&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/45760&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oh, that was merged long time ago,&lt;br/&gt;
I see karaf started with&lt;br/&gt;
  -Djava.security.egd=&lt;a href=&quot;file:/dev/./urandom&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;file:/dev/./urandom&lt;/a&gt;&lt;br/&gt;
already, so something is not working right.&lt;br/&gt;
Are we sure Karaf console ssh server takes this option into account?&lt;/p&gt;

&lt;p&gt;It the option worked, we would not need more entropy on ODL_SYSTEM.&lt;/p&gt;

&lt;p&gt;Vratko.&lt;/p&gt;</comment>
                            <comment id="41883" author="vrpolak" created="Wed, 18 Jan 2017 13:59:13 +0000"  >&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/50594&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/50594&lt;/a&gt; claim to fix CSIT failures.&lt;/p&gt;

&lt;p&gt;If that is true, this error was not about entropy after all.&lt;br/&gt;
Karaf SSH server was just slow for some reason, and Robot SSHLibrary with default timeout was not giving a helpful failure message.&lt;/p&gt;

&lt;p&gt;There is still some chance that the Karaf SSH server is slow because it blocks on /dev/random, but that would need closer examination to decide.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="12931" name="karaf.jstack.txt" size="123387" author="vorburger" created="Wed, 11 Jan 2017 22:52:03 +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>6790</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=6790]]></customfieldvalue>

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

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

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

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