<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:02:06 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>[INFRAUTILS-37] diagstatus CLI should not to use JMX to obtain information from local node to avoid ConnectException on 127.0.0.1</title>
                <link>https://jira.opendaylight.org/browse/INFRAUTILS-37</link>
                <project id="10129" key="INFRAUTILS">infrautils</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-36&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 (NoSuchElementException) at acquireServiceStatusDetailed(DiagStatusServiceMBeanImpl.java:119)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-36&quot;&gt;&lt;del&gt;INFRAUTILS-36&lt;/del&gt;&lt;/a&gt; made me look more into the code in DiagStatusCommand, and I don&apos;t understand why on earth it uses JMX to call LOCAL code? I get the point of that code to get diagstatus from remote cluster members, but to query the local diagstatus, that seems... weird - we can, easily, just call the local service!&lt;/p&gt;

&lt;p&gt;I&apos;ll raise a change proposing this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="29893">INFRAUTILS-37</key>
            <summary>diagstatus CLI should not to use JMX to obtain information from local node to avoid ConnectException on 127.0.0.1</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <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="vorburger">Michael Vorburger</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 May 2018 10:51:01 +0000</created>
                <updated>Fri, 24 Aug 2018 10:51:03 +0000</updated>
                            <resolved>Tue, 29 May 2018 13:10:26 +0000</resolved>
                                                    <fixVersion>Fluorine</fixVersion>
                                    <component>diagstatus</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="62717" author="faseela.k@ericsson.com" created="Wed, 2 May 2018 15:13:45 +0000"  >&lt;p&gt;The RMI Connector will not be involved, when DiagStatusCommand detects that 127.0.0.1 is self-address. So we should debug why 127.0.0.1 is not coming as self-address. If is it not coming, the proposed patch from Michael also will not solve the problem.&lt;/p&gt;</comment>
                            <comment id="62718" author="vorburger" created="Wed, 2 May 2018 16:01:41 +0000"  >&lt;p&gt;This really (now, with the new log) is a functional Bug and no longer just a technical Enhancement idea.&lt;/p&gt;</comment>
                            <comment id="62720" author="vorburger" created="Wed, 2 May 2018 16:23:09 +0000"  >&lt;p&gt;No, I got totally confused... as discussed on c/71662, my proposed technical enhancement will NOT fix the problem &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=jluhrsen&quot; class=&quot;user-hover&quot; rel=&quot;jluhrsen&quot;&gt;jluhrsen&lt;/a&gt; hit, because it does not do away with this code path - NB getRemoteStatusSummary() VS getLocalStatusSummary().  To avoid confusing others further, I propose that we keep this issue for the technical enhancement, and track the actual functional bug under a new &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-38&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 due to rmi.ConnectException: Connection refused to host: 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-38&quot;&gt;&lt;del&gt;INFRAUTILS-38&lt;/del&gt;&lt;/a&gt;.  I&apos;ll delete my previous comment above with the stack trace to avoid future confusion of this issue with the new &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-38&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 due to rmi.ConnectException: Connection refused to host: 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-38&quot;&gt;&lt;del&gt;INFRAUTILS-38&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="62726" author="jluhrsen" created="Wed, 2 May 2018 18:20:08 +0000"  >&lt;p&gt;I am not sure which Jira to comment on, this or &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-38&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 due to rmi.ConnectException: Connection refused to host: 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-38&quot;&gt;&lt;del&gt;INFRAUTILS-38&lt;/del&gt;&lt;/a&gt; but something I just learned.&lt;/p&gt;

&lt;p&gt;in my &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/70220/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;patch&lt;/a&gt; where I&apos;m trying to do the status.getErrorCause().get() I will hit this problem&lt;br/&gt;
where I get:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Status retrieval JMX Operation failed &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; node 127.0.0.1&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Ignoring the trace for now.&lt;/p&gt;

&lt;p&gt;NOTE: this is all manually and locally.&lt;/p&gt;

&lt;p&gt;When I remove that .get(), the problem goes away, so I&apos;ll get this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;karaf@root()&amp;gt; showsvcstatus
Timestamp: Wed May 02 11:14:19 PDT 2018
Node IP Address: 127.0.0.1
&lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt; is operational: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;code-object&quot;&gt;System&lt;/span&gt; ready state: ACTIVE
  OPENFLOW            : OPERATIONAL       Optional.empty
karaf@root()&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So, maybe we can keep this &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-37&quot; title=&quot;diagstatus CLI should not to use JMX to obtain information from local node to avoid ConnectException on 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-37&quot;&gt;&lt;del&gt;INFRAUTILS-37&lt;/del&gt;&lt;/a&gt; as this specific issue and figure that out. However, the&lt;br/&gt;
other problem we can track in &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-38&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 due to rmi.ConnectException: Connection refused to host: 127.0.0.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-38&quot;&gt;&lt;del&gt;INFRAUTILS-38&lt;/del&gt;&lt;/a&gt; is maybe related, but also not because of the .get()&lt;br/&gt;
issue. That is running a distro that does not have that change. I&apos;ll comment more in that jira.&lt;/p&gt;</comment>
                            <comment id="62730" author="jluhrsen" created="Wed, 2 May 2018 21:29:35 +0000"  >&lt;p&gt;ok, so we can let this jira stay to track the work &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=vorburger&quot; class=&quot;user-hover&quot; rel=&quot;vorburger&quot;&gt;vorburger&lt;/a&gt; is doing in &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/71662/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;71662&lt;/a&gt;. I did cherry pick&lt;br/&gt;
it locally to double check that it does &lt;b&gt;not&lt;/b&gt; help me get past &lt;a href=&quot;https://jira.opendaylight.org/browse/INFRAUTILS-36&quot; title=&quot;showSvcStatus: Status retrieval JMX Operation failed for node 127.0.0.1 (NoSuchElementException) at acquireServiceStatusDetailed(DiagStatusServiceMBeanImpl.java:119)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;INFRAUTILS-36&quot;&gt;&lt;del&gt;INFRAUTILS-36&lt;/del&gt;&lt;/a&gt;, so we still need that to&lt;br/&gt;
chase down. I&apos;ll update that jira too.&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03e3r:</customfieldvalue>

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