<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:32:16 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-10124] lnetctl: lnetctl import --add not importing peers correctly</title>
                <link>https://jira.whamcloud.com/browse/LU-10124</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When importing a yaml config file for peers the import does not correctly set the Multi-Rail property when it is false.&lt;/p&gt;

&lt;p&gt;An example:&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;peer:
    - primary nid: 10.112.1.60@o2ib8
      Multi-Rail: False
      peer ni:
        - nid: 10.112.1.60@o2ib8
          state: up
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;When imported it results in a running config of:&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;peer:
    - primary nid: 10.112.1.60@o2ib8
      Multi-Rail: True
      peer ni:
        - nid: 10.112.1.60@o2ib8
          state: up
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For our config this isn&apos;t an issue yet, but as we will have a mix of multi-rail and non-multi-rail nodes this could be an issue moving forward.&lt;/p&gt;</description>
                <environment>Centos 7.4</environment>
        <key id="48771">LU-10124</key>
            <summary>lnetctl: lnetctl import --add not importing peers correctly</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="sharmaso">Sonia Sharma</assignee>
                                    <reporter username="mhaakddn">Malcolm Haak - NCI</reporter>
                        <labels>
                            <label>lnet</label>
                            <label>lnetctl</label>
                    </labels>
                <created>Mon, 16 Oct 2017 23:42:56 +0000</created>
                <updated>Tue, 9 Jun 2020 14:50:55 +0000</updated>
                            <resolved>Fri, 21 Sep 2018 15:13:56 +0000</resolved>
                                    <version>Lustre 2.10.0</version>
                    <version>Lustre 2.10.1</version>
                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.7</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="211638" author="mhaakddn" created="Sun, 22 Oct 2017 23:43:38 +0000"  >&lt;p&gt;We have encountered a second issue when importing peers.&lt;/p&gt;

&lt;p&gt;Two peers with a single primary nid were merged during import into one peer with two peer ni&apos;s&lt;/p&gt;

&lt;p&gt;The YAML file being used was one that was exported from the lnet router it was imported on.&lt;/p&gt;

&lt;p&gt;Not sure if it is a race condition when importing 4000+ peers or some other issue.&lt;/p&gt;</comment>
                            <comment id="216873" author="jamesanunez" created="Wed, 20 Dec 2017 18:58:36 +0000"  >&lt;p&gt;Sonia, &lt;br/&gt;
Would you please look into this issue?&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</comment>
                            <comment id="219790" author="gerrit" created="Fri, 2 Feb 2018 00:17:31 +0000"  >&lt;p&gt;Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31138&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31138&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10124&quot; title=&quot;lnetctl: lnetctl import --add not importing peers correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10124&quot;&gt;&lt;del&gt;LU-10124&lt;/del&gt;&lt;/a&gt; lnet: Correctly add peer MR value while importing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ddd0aedbe7a26053ae9c3da2c82c9e7a3e5a7c76&lt;/p&gt;</comment>
                            <comment id="226133" author="mhaakddn" created="Tue, 17 Apr 2018 05:14:59 +0000"  >&lt;p&gt;This patch should fix up that one issue,&lt;/p&gt;

&lt;p&gt;But the second issue of peer merging does not appear to be solved.&lt;/p&gt;

&lt;p&gt;Did you want a second ticket for this issue?&lt;/p&gt;

&lt;p&gt;I will get you some log lines from the affected nodes.&lt;/p&gt;</comment>
                            <comment id="226135" author="kim.sebo" created="Tue, 17 Apr 2018 05:26:12 +0000"  >&lt;p&gt;log line on lnet router is:&lt;/p&gt;

&lt;p&gt;LNetError: 8507:0:(peer.c:806:lnet_add_peer_ni_to_prim_lpni()) Cannot add NID 10.9.60.1@o2ib3 owned by peer 10.9.60.1@o2ib3 to peer 10.9.12.38@o2ib3&lt;/p&gt;

&lt;p&gt;The two 10.9.x.x addresses mentioned correspond to adjacent entries in the config file.&lt;/p&gt;</comment>
                            <comment id="226144" author="sharmaso" created="Tue, 17 Apr 2018 08:33:05 +0000"  >&lt;p&gt;Is the issue happening even after applying the patch?&lt;br/&gt;
When the MR value is correctly imported, it would know that the peer is MR and thus another NID should be merged to the same peer.&lt;/p&gt;</comment>
                            <comment id="226204" author="mhaakddn" created="Wed, 18 Apr 2018 00:44:31 +0000"  >&lt;p&gt;I think you misunderstand. It&apos;s merging peers that AREN&apos;T supposed to be merged.&lt;/p&gt;

&lt;p&gt;Say peer A is in the file with a nid of 10.9.12.38@o2ib3:&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;peer:
    - primary nid: 10.9.12.38@o2ib3
      Multi-Rail: True
      peer ni:
        - nid: 10.9.12.28@o2ib3
          state: up
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and peer B is next in the YAML file with a nid of 10.9.60.1@o2ib3&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;peer:
    - primary nid: 10.9.60.1@o2ib3
      Multi-Rail: False
      peer ni:
        - nid: 10.9.60.1@o2ib3
          state: up
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So the resulting peer config YAML file should look like&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;peer:
    - primary nid: 10.9.12.38@o2ib3
      Multi-Rail: False
      peer ni:
        - nid: 10.9.12.38@o2ib3
          state: up
    - primary nid: 10.9.60.1@o2ib3
      Multi-Rail: False
      peer ni:
        - nid: 10.9.60.1@o2ib3
          state: up
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It&apos;s trying to add 10.9.60.1@o2ib3 as an extra peer ni to 10.9.12.38@o2ib3. &lt;/p&gt;

&lt;p&gt;This is wrong. They are separate peers. I&apos;ve checked the YAML file and they are both described in YAML correctly. There is something wrong with the YAML parser that it causing it to not parse correctly. &lt;/p&gt;
</comment>
                            <comment id="226261" author="sharmaso" created="Wed, 18 Apr 2018 17:26:30 +0000"  >&lt;p&gt;Oh okay. So I noticed that I never updated the patch which had issue. Just did that.&lt;/p&gt;

&lt;p&gt;And now with the patch, I just tried it on my system and I could not replicate the issue.&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;[root@lutfRtr1-linux ~]# lnetctl ping 10.211.55.9@tcp
ping:
&#160; &#160; - primary nid: 10.211.55.9@tcp
&#160; &#160; &#160; Multi-Rail: False
&#160; &#160; &#160; peer ni:
&#160; &#160; &#160; &#160; - nid: 10.211.55.9@tcp

[root@lutfRtr1-linux lustre-release]# lnetctl peer add --prim_nid 10.9.60.24@tcp

[root@lutfRtr1-linux lustre-release]# lnetctl peer show
peer:
&#160; &#160; - primary nid: 10.211.55.9@tcp
&#160; &#160; &#160; Multi-Rail: False
&#160; &#160; &#160; peer ni:
&#160; &#160; &#160; &#160; - nid: 10.211.55.9@tcp
&#160; &#160; &#160; &#160; &#160; state: NA
&#160; &#160; - primary nid: 10.9.60.24@tcp
&#160; &#160; &#160; Multi-Rail: True
&#160; &#160; &#160; peer ni:
&#160; &#160; &#160; &#160; - nid: 10.9.60.24@tcp
&#160; &#160; &#160; &#160; &#160; state: NA

[root@lutfRtr1-linux lustre-release]# lnetctl export &amp;gt; out.yaml

[root@lutfRtr1-linux lustre-release]# lnetctl peer show
peer:

[root@lutfRtr1-linux lustre-release]# lnetctl &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; &amp;lt; out.yaml

[root@lutfRtr1-linux lustre-release]# lnetctl peer show
peer:
&#160; &#160; - primary nid: 10.211.55.9@tcp
&#160; &#160; &#160; Multi-Rail: False
&#160; &#160; &#160; peer ni:
&#160; &#160; &#160; &#160; - nid: 10.211.55.9@tcp
&#160; &#160; &#160; &#160; &#160; state: NA
&#160; &#160; - primary nid: 10.9.60.24@tcp
&#160; &#160; &#160; Multi-Rail: True
&#160; &#160; &#160; peer ni:
&#160; &#160; &#160; &#160; - nid: 10.9.60.24@tcp
&#160; &#160; &#160; &#160; &#160; state: NA&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;How are you adding peers? Can you list the commands you are running to add peers.&lt;/p&gt;

&lt;p&gt;Though I tried both ways - using &quot;lnetctl&quot; command and running traffic and was able to import peers correctly.&lt;/p&gt;</comment>
                            <comment id="226454" author="mhaakddn" created="Fri, 20 Apr 2018 05:36:54 +0000"  >&lt;p&gt;I think its a race condition. It happens because we are importing ~4000 nodes while in production (so along side normal discovery)&lt;/p&gt;

&lt;p&gt;I doubt you will trigger it with two.&lt;/p&gt;</comment>
                            <comment id="227125" author="sharmaso" created="Wed, 2 May 2018 17:08:23 +0000"  >&lt;p&gt;Hi Malcolm,&lt;/p&gt;

&lt;p&gt;Can you please attach here the YAML file you are using for configuration. We can try reproducing the issue using that YAML file.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="227136" author="gerrit" created="Wed, 2 May 2018 18:42:58 +0000"  >&lt;p&gt;Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32255&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32255&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10124&quot; title=&quot;lnetctl: lnetctl import --add not importing peers correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10124&quot;&gt;&lt;del&gt;LU-10124&lt;/del&gt;&lt;/a&gt; lnet: Correctly add peer MR value while importing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: c6fcf5a01fa4da0b026498b16927fa6c86cc1918&lt;/p&gt;</comment>
                            <comment id="227137" author="sharmaso" created="Wed, 2 May 2018 18:47:37 +0000"  >&lt;p&gt;Just pushed the back-ported patch for b2_10 to make it easy for you to apply the patch and test.&lt;/p&gt;</comment>
                            <comment id="233844" author="gerrit" created="Fri, 21 Sep 2018 03:30:05 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31138/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31138/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10124&quot; title=&quot;lnetctl: lnetctl import --add not importing peers correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10124&quot;&gt;&lt;del&gt;LU-10124&lt;/del&gt;&lt;/a&gt; lnet: Correctly add peer MR value while importing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 99494a28e6afde7c59e7f03045e63028ece1064d&lt;/p&gt;</comment>
                            <comment id="233871" author="pjones" created="Fri, 21 Sep 2018 15:13:56 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="243205" author="gerrit" created="Sat, 2 Mar 2019 01:30:42 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32255/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32255/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10124&quot; title=&quot;lnetctl: lnetctl import --add not importing peers correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10124&quot;&gt;&lt;del&gt;LU-10124&lt;/del&gt;&lt;/a&gt; lnet: Correctly add peer MR value while importing&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8103e94c1bd3000bc25da0d05f0ef3cafa1f91fd&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10030" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic/Theme</customfieldname>
                        <customfieldvalues>
                                        <label>lnet</label>
            <label>lustre-2.10.1</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzzlyf:</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>