<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:03:53 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-13750] LNet lnetctl: peer add doesn&apos;t work as specified in the manual</title>
                <link>https://jira.whamcloud.com/browse/LU-13750</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The manual states&lt;/p&gt;

&lt;p&gt;The --prim-nid (primary nid for the peer node) can go unspecified. In this case, the first listed NID in the --nid option becomes the primary nid of the peer. For example:&lt;/p&gt;

&lt;p&gt;However after&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12410&quot; title=&quot;Refactor lnetctl peer nid handling to utilize nidstrings library&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12410&quot;&gt;&lt;del&gt;LU-12410&lt;/del&gt;&lt;/a&gt; lnet: Convert lnetctl peer add and del&lt;/p&gt;

&lt;p&gt;It now creates a separate peer for each NID in the list. Which is not correct.&lt;/p&gt;</description>
                <environment></environment>
        <key id="59841">LU-13750</key>
            <summary>LNet lnetctl: peer add doesn&apos;t work as specified in the manual</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="5" iconUrl="https://jira.whamcloud.com/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="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="ashehata">Amir Shehata</reporter>
                        <labels>
                    </labels>
                <created>Sat, 4 Jul 2020 01:59:18 +0000</created>
                <updated>Tue, 11 Oct 2022 07:09:55 +0000</updated>
                            <resolved>Tue, 25 Aug 2020 14:29:40 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="275516" author="gerrit" created="Thu, 16 Jul 2020 02:25:58 +0000"  >&lt;p&gt;Amir Shehata (ashehata@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39392&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39392&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13750&quot; title=&quot;LNet lnetctl: peer add doesn&amp;#39;t work as specified in the manual&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13750&quot;&gt;&lt;del&gt;LU-13750&lt;/del&gt;&lt;/a&gt; lnet: Fix peer add command&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 261ba9963abc33ac129a71fae7b8617b31ff27a0&lt;/p&gt;</comment>
                            <comment id="275557" author="hornc" created="Thu, 16 Jul 2020 14:33:03 +0000"  >&lt;p&gt;The change in behavior was intentional, but I guess I dropped the ball on getting the manual updated...&lt;/p&gt;

&lt;p&gt;We had a discussion about this with James Simmons in Slack where we all agreed to drop the --ip2nets flag from these commands, and modify the behavior. This was my proposal in slack which the three of us agreed to (afair):&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;So I&apos;m clear, the thinking is:
1. lnetctl peer add --prim_nid &amp;lt;pnid&amp;gt; --nid &amp;lt;nidlist1&amp;lt;,nidlist2...&amp;gt;&amp;gt;
  - Add all nids in nidlist to peer specified primary nid
2. lnetctl peer add --nid &amp;lt;nidlist1&amp;lt;,nidlist2...&amp;gt;&amp;gt;
  - For each nidlist, create a peer whose primary nid is the first nid in the nid list, and add remainings nids in the list as secondary nids 
2:58
e.g. for 2. lnetctl peer add --nid 1.1.1.[1-2]@tcp,2.2.2.[2-3]@o2ib
That would create two peers
2:58
first peer has primary 1.1.1.1@tcp, and secondary 1.1.1.2@tcp
second peer has primary 2.2.2.2@o2ib, and secondary 2.2.2.3@o2ib
hornc  3:04 PM
Where as for 1. lnetctl peer add --prim_nid 1.1.1.1@tcp --nid 1.1.1.2@tcp,2.2.2.[2-3]@o2ib
That would create a single nid with primary 1.1.1.1@tcp and secondary nids 1.1.1.2@tcp,  2.2.2.2@o2ib, and 2.2.2.3@o2ib
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think the new behavior has value because it allows someone to create a bunch of peers in one go. Do you not think it is a good idea anymore? Should we just update the documentation rather than reverting to the old behavior?&lt;/p&gt;</comment>
                            <comment id="275567" author="ashehata" created="Thu, 16 Jul 2020 16:19:32 +0000"  >&lt;p&gt;I don&apos;t recall this discussion. I don&apos;t think the new behaviour is clear. You can only specify the NID list via the nid range syntax and there is no way to specify multiple NIDs to the same peer explicitly with the &lt;tt&gt;-- nid&lt;/tt&gt; syntax only. I ran into this as I was refreshing the LUTF scripts. I would prefer to have the documented syntax as it is much clearer. You can add one peer per command. It is confusing when the behaviour changes with addition of &lt;tt&gt;--prim_nid&lt;/tt&gt; parameter. It is similar to adding networks. You can add one network but you can specify multiple different interfaces. The structure of the network command doesn&apos;t allow you to add multiple different networks from the same command line.&lt;/p&gt;

&lt;p&gt;If anything I would update the command to always require the --prim_nid.&lt;/p&gt;</comment>
                            <comment id="275568" author="hornc" created="Thu, 16 Jul 2020 16:40:21 +0000"  >&lt;p&gt;I&apos;m in favor of cli consistency. Just to clarify, there is a way to specify multiple NIDs to a single peer with just the --nid syntax. It is described in my previous comment:&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;2. lnetctl peer add --nid &amp;lt;nidlist1&amp;lt;,nidlist2...&amp;gt;&amp;gt;
  - For each nidlist, create a peer whose primary nid is the first nid in the nid list, and add remainings nids in the list as secondary nids 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;e.g.&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;sles15build01:~ # lnetctl peer add --nid 192.168.1.[2-5]@tcp
sles15build01:~ # lnetctl peer show
peer:
    - primary nid: 192.168.1.2@tcp
      Multi-Rail: True
      peer ni:
        - nid: 192.168.1.2@tcp
          state: NA
        - nid: 192.168.1.3@tcp
          state: NA
        - nid: 192.168.1.4@tcp
          state: NA
        - nid: 192.168.1.5@tcp
          state: NA
sles15build01:~ #
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="278024" author="gerrit" created="Tue, 25 Aug 2020 07:40:42 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39392/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39392/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13750&quot; title=&quot;LNet lnetctl: peer add doesn&amp;#39;t work as specified in the manual&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13750&quot;&gt;&lt;del&gt;LU-13750&lt;/del&gt;&lt;/a&gt; lnet: Fix peer add command&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 30f6c3d601fb9e7bc5af8dfc7a6a4abd404aea18&lt;/p&gt;</comment>
                            <comment id="278050" author="pjones" created="Tue, 25 Aug 2020 14:29:40 +0000"  >&lt;p&gt;Landed for 2.14&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|i014ef:</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>