<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:48:20 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-11949] Able to define duplicate nids via lnetctl</title>
                <link>https://jira.whamcloud.com/browse/LU-11949</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;LNet is initially configured via the ip2nets module parameter. &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;nid00127:~ # cat /etc/modprobe.d/cray-lnet.conf
options lnet ip2nets=&quot;gni99 10.129.*.*; gni4 10.129.*.*&quot;
nid00127:~ # lctl list_nids
127@gni99
127@gni4
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m able to add a duplicate 127@gni4 address with lnetctl:&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;nid00127:~ # lnetctl net add --ip2net &quot;gni4(ipogif0) 10.129.*.*&quot;
nid00127:~ # lctl list_nids
127@gni99
127@gni4
127@gni4
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Can/should we throw an error in this case?&lt;/p&gt;

&lt;p&gt;If I add them both with lnetctl then I get an error on the second one:&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;nid00127:~ # lnetctl net del --net gni4 --if ipogif0
nid00127:~ # lctl list_nids
127@gni99
127@gni4
nid00127:~ # lnetctl net del --net gni4 --if ipogif0
nid00127:~ # lctl list_nids
127@gni99
nid00127:~ # lnetctl net add --ip2net &quot;gni4(ipogif0) 10.129.*.*&quot;
nid00127:~ # lctl list_nids
127@gni99
127@gni4
nid00127:~ # lnetctl net add --ip2net &quot;gni4(ipogif0) 10.129.*.*&quot;
add:
    - net:
          errno: -22
          descr: &quot;cannot add network: Invalid argument&quot;
nid00127:~ #
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="54835">LU-11949</key>
            <summary>Able to define duplicate nids via lnetctl</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="1" iconUrl="https://jira.whamcloud.com/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="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="hornc">Chris Horn</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Feb 2019 20:04:15 +0000</created>
                <updated>Sat, 9 Feb 2019 00:31:06 +0000</updated>
                                            <version>Lustre 2.12.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="241646" author="ashehata" created="Sat, 9 Feb 2019 00:30:28 +0000"  >&lt;p&gt;at first glance when you run the command through lnetctl you&apos;re specifying the interface name, while in the module parameter case you&apos;re not. I suspect this causes the check in the code not to evaluate the second add as a duplicate.&lt;/p&gt;

&lt;p&gt;To confirm, you can you make the following change in the module parameters:&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;
 options lnet ip2nets=&lt;span class=&quot;code-quote&quot;&gt;&quot;gni99 10.129.*.*; gni4(ipogif0) 10.129.*.*&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I think this might be clearer if you use:&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;
lnetctl net show &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;to dump the configured networks instead of list_nids&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i00bc7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

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