<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:17:11 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-8397] take comma as separator of mgsnode&apos;s list</title>
                <link>https://jira.whamcloud.com/browse/LU-8397</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;mgsnode&apos;s list of nids is allowed to use comma as separator (see 36.15.3 of Lustre Operations Manual), however lustre_start_mgc() assumes that only colon can separate nids. Due to that nids after comma do not get into list of import&apos;s connections and those nids do not get involved.&lt;/p&gt;</description>
                <environment></environment>
        <key id="38169">LU-8397</key>
            <summary>take comma as separator of mgsnode&apos;s list</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="vsaveliev">Vladimir Saveliev</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Jul 2016 12:55:14 +0000</created>
                <updated>Wed, 25 Oct 2017 18:35:30 +0000</updated>
                            <resolved>Wed, 26 Apr 2017 07:21:59 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="158801" author="gerrit" created="Thu, 14 Jul 2016 12:56:05 +0000"  >&lt;p&gt;Vladimir Saveliev (vladimir_saveliev@xyratex.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/21308&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/21308&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8397&quot; title=&quot;take comma as separator of mgsnode&amp;#39;s list&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8397&quot;&gt;&lt;del&gt;LU-8397&lt;/del&gt;&lt;/a&gt; mgc: take comma as separator of mgsnode&apos;s list&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d967d2d09409aaaf036abe3001457260aff15292&lt;/p&gt;</comment>
                            <comment id="158802" author="pjones" created="Thu, 14 Jul 2016 13:06:42 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please take care of reviews etc for this patch?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="182209" author="yujian" created="Thu, 26 Jan 2017 04:59:00 +0000"  >&lt;p&gt;Hi Bobi,&lt;/p&gt;

&lt;p&gt;I found the following codes in &lt;tt&gt;lustre_start_mgc()&lt;/tt&gt; introduced by patch &lt;a href=&quot;https://review.whamcloud.com/7509&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/7509&lt;/a&gt; for &lt;del&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-3829&quot; title=&quot;MDT mount fails if mkfs.lustre is run with multiple mgsnode arguments on MDSs where MGS is not running&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-3829&quot;&gt;&lt;del&gt;LU-3829&lt;/del&gt;&lt;/a&gt;&lt;/del&gt; might have some 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;                        /*
                         * LU-3829.
                         * Here we only take the first mgsnid as its primary
                         * serving mgs node, the &lt;span class=&quot;code-keyword&quot;&gt;rest&lt;/span&gt; mgsnid will be taken as
                         * failover mgs node, otherwise they would be takens
                         * as multiple nids of a single mgs node.
                         */
                        &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (class_parse_nid(ptr, &amp;amp;nid, &amp;amp;ptr) == 0) {
                                rc = do_lcfg(mgcname, nid, LCFG_ADD_UUID,
                                             niduuid, NULL, NULL, NULL);
                                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc == 0) {
                                        i = 1;
                                        &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                                }
                        }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;For multiple NIDs separated by &lt;b&gt;commas&lt;/b&gt; on one MGS node, the above codes would only add the first NID and then break the while loop. After &lt;tt&gt;lustre_start_simple()&lt;/tt&gt; is performed, the remaining &lt;b&gt;comma-separated&lt;/b&gt; MGS NID(s) would not be added because the following condition doesn&apos;t work:&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;        &lt;span class=&quot;code-comment&quot;&gt;/* Add any failover MGS nids */&lt;/span&gt;
        i = 1;
        &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (ptr &amp;amp;&amp;amp; ((*ptr == &lt;span class=&quot;code-quote&quot;&gt;&apos;:&apos;&lt;/span&gt; ||
               class_find_param(ptr, PARAM_MGSNODE, &amp;amp;ptr) == 0))) {

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;tt&gt;ptr&lt;/tt&gt; is previously assigned with &lt;tt&gt;ptr = lsi-&amp;gt;lsi_lmd-&amp;gt;lmd_mgs&lt;/tt&gt;, and for comma-separated MGS NIDs, &lt;tt&gt;ptr&lt;/tt&gt; now points to a &apos;,&apos;. There is also no &lt;tt&gt;mgsnode=&lt;/tt&gt; in the string, so the above condition does not work. All of the NIDs after the first comma would not be added.&lt;/p&gt;

&lt;p&gt;It seems this is the root cause of the latest issue reported by Darby in &lt;del&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8311&quot; title=&quot;Target does not mount with the new mgsnode parameter format in case of multirail configuration&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8311&quot;&gt;&lt;del&gt;LU-8311&lt;/del&gt;&lt;/a&gt;&lt;/del&gt;. The &lt;tt&gt;ptr&lt;/tt&gt; has a value of &lt;tt&gt;192.52.98.30@tcp,10.148.0.30@o2ib:192.52.98.31@tcp,10.148.0.31@o2ib&lt;/tt&gt;, but from the debug log in debug.log.ib_and_eth, I can only see the first NID &lt;tt&gt;192.52.98.30@tcp&lt;/tt&gt; was added.&lt;/p&gt;</comment>
                            <comment id="182210" author="dvicker" created="Thu, 26 Jan 2017 05:12:11 +0000"  >&lt;p&gt;This evening I compiled the 2.9.0 release with&#160;patch 7905&#160;reverted. &#160;I can confirm that this did allow me to failover our OST&apos;s properly. &#160;Once the OST were mounted with the NIDS shown in the comment above we see both TCP NIDS in /proc/fs/lustre/mgc/MGC192.52.98.30@tcp/import&#160;and the MGC connects with the secondary MDS/MGS when we failover. &#160;&lt;/p&gt;</comment>
                            <comment id="182211" author="yujian" created="Thu, 26 Jan 2017 05:20:46 +0000"  >&lt;p&gt;Thank you very much Darby for the confirmation.&lt;/p&gt;</comment>
                            <comment id="182851" author="dvicker" created="Tue, 31 Jan 2017 22:10:45 +0000"  >&lt;p&gt;I&apos;m sorry - it turns out I was wrong when I said reverting this patch fixed our situation. &#160;I think what happened is that I forgot to stop lnet before I uninstalled stock 2.9.0. &#160;I then installed and tested the patched version of 2.9.0 - but the lnet kernel modules from stock 2.9.0 stayed loaded. &#160;So I was using some weird combination of a patched and stock version of 2.9.0. &#160;I&apos;ve repeated the tests using a version of 2.9.0 with patch 7905 reverted and the situation is actually worse - with both&#160;single rail (tcp only) or dual rail (tcp and ib) I only see one entry for failover_nids in /proc/fs/lustre/mgc/MGC192.52.98.30@tcp/import. &#160;I can repeat the tests and dump debug logs if that would help. &#160;&lt;/p&gt;</comment>
                            <comment id="182895" author="yujian" created="Wed, 1 Feb 2017 15:56:32 +0000"  >&lt;p&gt;Hi Darby,&lt;br/&gt;
 I just updated patch &lt;a href=&quot;https://review.whamcloud.com/21308&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/21308&lt;/a&gt; on master branch to fix the issue in my previous comment. The patch can be applied to Lustre 2.9.0 release directly. Could you please try it? Thank you.&lt;/p&gt;</comment>
                            <comment id="182961" author="dvicker" created="Wed, 1 Feb 2017 20:57:20 +0000"  >&lt;p&gt;I just tested 2.9.0 with this patch and it does indeed fix our issues. &#160;I brought up our filesystem while configured on both TCP and IB, mounted both TCP and IB clients and failed over the MDS/MGS to the secondary. &#160;The OST&apos;s and the clients all pick up the secondary MGS now. &#160;Info from one of our OSS&apos;s is below - this is after the failover. &#160;Thank you very much! &#160;&lt;/p&gt;

&lt;p&gt;&#160;&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;[root@hpfs-fsl-oss01 ~]# cat /proc/fs/lustre/mgc/MGC192.52.98.30@tcp/import 
import:
    name: MGC192.52.98.30@tcp
    target: MGS
    state: FULL
    connect_flags: [ version, adaptive_timeouts, mds_mds_connection, full20, imp_recov, bulk_mbits ]
    connect_data:
       flags: 0x2000011005000020
       instance: 0
       target_version: 2.9.0.0
    import_flags: [ pingable, connect_tried ]
    connection:
       failover_nids: [ 192.52.98.31@tcp, 192.52.98.30@tcp ]
       current_connection: 192.52.98.31@tcp
       connection_attempts: 3
       generation: 2
       in-progress_invalidations: 0
[root@hpfs-fsl-oss01 ~]# zfs get all | grep mgs
oss01-0/ost-fsl             lustre:mgsnode        192.52.98.30@tcp,10.148.0.30@o2ib:192.52.98.31@tcp,10.148.0.31@o2ib  local
[root@hpfs-fsl-oss01 ~]# 



&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="183009" author="yujian" created="Thu, 2 Feb 2017 02:04:54 +0000"  >&lt;p&gt;Thank you very much, Darby. I&apos;ll push the patch to be ready to land.&lt;/p&gt;</comment>
                            <comment id="193513" author="gerrit" created="Wed, 26 Apr 2017 03:38:38 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/21308/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/21308/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8397&quot; title=&quot;take comma as separator of mgsnode&amp;#39;s list&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8397&quot;&gt;&lt;del&gt;LU-8397&lt;/del&gt;&lt;/a&gt; mgc: add comma-separated nids for primary MGS&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 672e182049e1a636d8591748764950f99c4b71d9&lt;/p&gt;</comment>
                            <comment id="193537" author="yujian" created="Wed, 26 Apr 2017 07:21:59 +0000"  >&lt;p&gt;Patch landed to master branch for Lustre 2.10.0.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="20587">LU-3829</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="48956">LU-10162</issuekey>
        </issuelink>
                            </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_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzyhg7:</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>