<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 19:59:54 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>[GENIUS-98] InetAddress should not be used to get a unique bladeId</title>
                <link>https://jira.opendaylight.org/browse/GENIUS-98</link>
                <project id="10126" key="GENIUS">genius</project>
                    <description>&lt;p&gt;genius currently uses a line roughtly similar to this:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;int bladeId = InetAddresses.coerceToInteger(InetAddress.getLocalHost());&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;in at least 3 places (fcapsapp/NodeEventListener, ResourceManagerUtils, IdUtils &amp;amp; &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/61526&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;new LockManagerUtils in c/61526&lt;/a&gt;) but I believe this is not a good idea, because:&lt;/p&gt;

&lt;p&gt;A. if you ran x2 ODL instances next to each other on a host, for local or Cluster testing in some CI, or even in production in theory, then you would have the same bladeId... I do understand that in production the more typical deployment would be completely separate VMs (and &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; says that&apos;s what clustered CSIT does as well), or containers. But it&apos;s still not great that we&apos;ve basically hard-coded, in several places, that you HAVE to run them separated? Even though there would be port conflicts and what not... still not great, IMHO.&lt;/p&gt;

&lt;p&gt;B. InetAddress.getLocalHost() is known to have issues sometimes, see e.g. &lt;a href=&quot;https://jira.opendaylight.org/browse/ODLPARENT-84&quot; title=&quot;Upgrade Pax Exam to solve NoRouteToHostException on Fedora-based Linux due to PAXEXAM-740&quot; class=&quot;issue-link&quot; data-issue-key=&quot;ODLPARENT-84&quot;&gt;&lt;del&gt;ODLPARENT-84&lt;/del&gt;&lt;/a&gt; (and &lt;a href=&quot;http://blog2.vorburger.ch/2017/02/how-build-mono-app-like-eg-minecraft.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;my related blog post&lt;/a&gt;), or &lt;a href=&quot;https://lists.opendaylight.org/pipermail/openflowplugin-dev/2017-October/007731.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this post from openflowplugin-dev&lt;/a&gt; or the comment from &lt;a href=&quot;https://jira.opendaylight.org/secure/ViewProfile.jspa?name=rovarga&quot; class=&quot;user-hover&quot; rel=&quot;rovarga&quot;&gt;rovarga&lt;/a&gt; in &lt;a href=&quot;https://jira.opendaylight.org/browse/ODLPARENT-35&quot; title=&quot;ODL won&amp;#39;t boot correctly if dead DNS server is present.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;ODLPARENT-35&quot;&gt;ODLPARENT-35&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Ideally, we should use another unique &quot;bladeId&quot; - I&apos;m assuming that this really is trying to be is a unique ID of a node instance in a cluster, is it? If that&apos;s the case, then there must another more reliable and safer way to obtain something like that? Some controller API, perhaps? Something else native in the JVM, like.. its PID? Or some... random number??&lt;/p&gt;</description>
                <environment></environment>
        <key id="28704">GENIUS-98</key>
            <summary>InetAddress should not be used to get a unique bladeId</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="1" iconUrl="https://jira.opendaylight.org/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="vorburger">Michael Vorburger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Nov 2017 22:56:56 +0000</created>
                <updated>Wed, 28 Aug 2019 05:27:31 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="59957" author="kencykurian" created="Tue, 7 Nov 2017 06:18:34 +0000"  >&lt;p&gt;Michael, As you have mentioned the idea of bladeId is to uniquely identify each node in a cluster. I would suggest to use something which will be consistent across controller restarts.&lt;/p&gt;</comment>
                            <comment id="67204" author="hematg" created="Wed, 28 Aug 2019 05:27:31 +0000"  >&lt;p&gt;Closing this bug as its an old one&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|i037bb:</customfieldvalue>

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