<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:33:04 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-10214] Example `lnet_routes.conf` syntax for gateway range is not supported</title>
                <link>https://jira.whamcloud.com/browse/LU-10214</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The default &lt;tt&gt;lnet_routes.conf&lt;/tt&gt; file provided by the &lt;tt&gt;lustre-client-2.10.1-1.el7.x86_64&lt;/tt&gt; RPM contains an example using an IP range syntax to specify multiple gateways, that doesn&apos;t seem to be supported by &lt;tt&gt;lnetctl&lt;/tt&gt;:&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;tcp7: { gateway: 10.3.3.[6-12]@tcp, priority: 20, hop: 8 }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;When feeding that example file to &lt;tt&gt;lustre_routes_config&lt;/tt&gt;, the following error is generated:&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;# lustre_routes_config  /etc/lnet_routes.conf
Can&apos;t parse gateway NID &lt;span class=&quot;code-quote&quot;&gt;&quot;10.3.3.[6-12]@tcp&quot;&lt;/span&gt;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The easy fix would be to remove the example from the configuration file, but a much better one would be to make {lnetctl}} accept IP ranges.&lt;/p&gt;

&lt;p&gt;The previous way of handling lnet configuration via kernel module options supported the syntax, so it appears like &lt;tt&gt;lnetctl&lt;/tt&gt; not supporting it is a regression.&lt;/p&gt;</description>
                <environment>CentOS 7</environment>
        <key id="49209">LU-10214</key>
            <summary>Example `lnet_routes.conf` syntax for gateway range is not supported</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="srcc">Stanford Research Computing Center</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Nov 2017 01:34:24 +0000</created>
                <updated>Wed, 1 Aug 2018 21:18:57 +0000</updated>
                            <resolved>Wed, 2 May 2018 04:04:45 +0000</resolved>
                                    <version>Lustre 2.10.1</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="213190" author="ashehata" created="Thu, 9 Nov 2017 01:39:09 +0000"  >&lt;p&gt;lustre_routes_config doesn&apos;t use lnetctl, it uses lctl. You&apos;re right that lnetctl doesn&apos;t support IP ranges for routes. We can add that capability, if need be. But for your specific issue it seems to be something else. will investigate and update the ticket.&lt;/p&gt;</comment>
                            <comment id="213245" author="srcc" created="Thu, 9 Nov 2017 16:33:48 +0000"  >&lt;p&gt;Hi Amir,&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;You&apos;re right, &lt;tt&gt;lustre_routes_config&lt;/tt&gt; uses &lt;tt&gt;lnet&lt;/tt&gt; not &lt;tt&gt;lnet_ctl&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;With the single following line in &lt;tt&gt;/etc/lnet_routes.conf&lt;/tt&gt;:&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;o2ib1: &#160;{ gateway: 10.9.0.[31-32]@o2ib4 }


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;the output of &lt;tt&gt;lustre_routes_config&lt;/tt&gt; is:&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;Can&apos;t parse gateway NID &lt;span class=&quot;code-quote&quot;&gt;&quot;10.9.0.[31-32]@o2ib4&quot;&lt;/span&gt;


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Tracing the bash script shows that it executes the following command, that generates this error:&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;+ lctl --net o2ib1 add_route &lt;span class=&quot;code-quote&quot;&gt;&apos;10.9.0.[31-32]@o2ib4&apos;&lt;/span&gt; 
Can&apos;t parse gateway NID &lt;span class=&quot;code-quote&quot;&gt;&quot;10.9.0.[31-32]@o2ib4&quot;&lt;/span&gt; 
+ RC=1


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;So, &lt;tt&gt;lctl&lt;/tt&gt; doesn&apos;t seem to be supporting IP ranges.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;But it doesn&apos;t seem like &lt;tt&gt;lnetctl&lt;/tt&gt; supports it either:&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 route add --net o2ib1 --gateway 10.9.0.[31-32]@o2ib4 
add: 
 &#160;&#160;&#160;- route: 
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;errno: -1 
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;descr: &lt;span class=&quot;code-quote&quot;&gt;&quot;cannot parse gateway NID &lt;span class=&quot;code-quote&quot;&gt;&apos;10.9.0.[31-32]@o2ib4&apos;&lt;/span&gt;&quot;&lt;/span&gt;


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Anyway, my point is two-fold:&lt;/p&gt;

&lt;p&gt;1.&#160;Neither&#160;&lt;tt&gt;lnetctl&lt;/tt&gt; nor &lt;tt&gt;lctl&lt;/tt&gt;&#160;support IP&#160; ranges when adding routes, which is a regression compared to the previous way of defining routes via &lt;tt&gt;lnet&lt;/tt&gt;&#160;kernel module options,&lt;/p&gt;

&lt;p&gt;2. The default&#160;&lt;tt&gt;lnet_routes.conf&lt;/tt&gt; file provided in the &lt;tt&gt;lustre-client&lt;/tt&gt; RPM contains a non-working syntax example, which is very confusing.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Would it be possible to add back IP range support to define routes via &lt;tt&gt;lctl&lt;/tt&gt; or &lt;tt&gt;lnetctl&lt;/tt&gt;?&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="213643" author="gerrit" created="Tue, 14 Nov 2017 08:26:43 +0000"  >&lt;p&gt;Sonia Sharma (sonia.sharma@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30076&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30076&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10214&quot; title=&quot;Example `lnet_routes.conf` syntax for gateway range is not supported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10214&quot;&gt;&lt;del&gt;LU-10214&lt;/del&gt;&lt;/a&gt; lnet: Add support for gateway range&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2076f24978bf1cf491c44765548d0c2b554d703f&lt;/p&gt;</comment>
                            <comment id="213683" author="ashehata" created="Tue, 14 Nov 2017 18:08:22 +0000"  >&lt;p&gt;Please note that &quot;lustre_routes_config&quot; script would&apos;ve never worked with address ranges, since lctl never supported that from userspace. Only the module parameters supported that. So there is no regression in that sense. I agree that there is a discrepancy between how userspace configuration and kernel module parameters work.&lt;/p&gt;

&lt;p&gt;Going forward though, I would really like to add new features to the lnetctl utility only, since that&apos;s intended to be the primary utility for configuring LNet. And lustre_routes_config script will eventually be deprecated. Can you use lnetctl for configuring routes?&lt;/p&gt;
</comment>
                            <comment id="213737" author="srcc" created="Wed, 15 Nov 2017 07:41:16 +0000"  >&lt;p&gt;Yes, absolutely, using &lt;tt&gt;lnetctl&lt;/tt&gt; would&#160;be completely fine.&lt;/p&gt;

&lt;p&gt;Actually,&#160;we would like to be able to use&#160;the &lt;tt&gt;lnet&lt;/tt&gt; service and the provided systemd unit files. I believe that at this time, the route configuration part is commented out in the unit file, so I guess it would have to be adapted. But any way to let us&#160;specify IP range in a configuration file that the &lt;tt&gt;lnet&lt;/tt&gt; service would use to conigure the routes would be fine by us.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="216128" author="gerrit" created="Wed, 13 Dec 2017 01:26:42 +0000"  >&lt;p&gt;Amir Shehata (amir.shehata@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30511&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30511&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10214&quot; title=&quot;Example `lnet_routes.conf` syntax for gateway range is not supported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10214&quot;&gt;&lt;del&gt;LU-10214&lt;/del&gt;&lt;/a&gt; lnet: allow expressions for route config&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4d4577e6fe47614a9e24b55053c6e5d4a09bf560&lt;/p&gt;</comment>
                            <comment id="216129" author="ashehata" created="Wed, 13 Dec 2017 01:34:22 +0000"  >&lt;p&gt;I added the feature that you requested. Please try it out and let me know if it fits your needs. Note I only added the feature to lnetctl.&lt;/p&gt;

&lt;p&gt;so you can configure routes as follows:&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;lnetct route add --net &amp;lt;net&amp;gt; --gateway &amp;lt;expr-list&amp;gt;.&amp;lt;expr-list&amp;gt;.&amp;lt;expr-list&amp;gt;.&amp;lt;expr-list&amp;gt;
# example
lnetctl route add --net tcp1 --gateway 192.18.[93-94].[1-12,23-25]@tcp
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;or via YAML&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;route:
    - net: &amp;lt;net&amp;gt;
      gateway: &amp;lt;expr-list&amp;gt;.&amp;lt;expr-list&amp;gt;.&amp;lt;expr-list&amp;gt;.&amp;lt;expr-list&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The syntax supported is identical to the ip2net syntax.&lt;/p&gt;</comment>
                            <comment id="216445" author="srcc" created="Fri, 15 Dec 2017 22:09:15 +0000"  >&lt;p&gt;Thank you! We&apos;ll test&#160; and get back to you, but this looks awesome.&lt;/p&gt;</comment>
                            <comment id="227031" author="gerrit" created="Wed, 2 May 2018 02:21:18 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30511/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30511/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10214&quot; title=&quot;Example `lnet_routes.conf` syntax for gateway range is not supported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10214&quot;&gt;&lt;del&gt;LU-10214&lt;/del&gt;&lt;/a&gt; lnet: allow expressions for route config&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 235e8dea46f6f9ec0021c789cb5b9214cee94e38&lt;/p&gt;</comment>
                            <comment id="227063" author="pjones" created="Wed, 2 May 2018 04:04:45 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="227111" author="gerrit" created="Wed, 2 May 2018 15:09:15 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32248&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32248&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10214&quot; title=&quot;Example `lnet_routes.conf` syntax for gateway range is not supported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10214&quot;&gt;&lt;del&gt;LU-10214&lt;/del&gt;&lt;/a&gt; lnet: allow expressions for route config&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 39380603e53bc7c60adc1d8887af3f6f0511fee1&lt;/p&gt;</comment>
                            <comment id="231248" author="gerrit" created="Wed, 1 Aug 2018 16:35:58 +0000"  >&lt;p&gt;John L. Hammond (jhammond@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32248/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32248/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10214&quot; title=&quot;Example `lnet_routes.conf` syntax for gateway range is not supported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10214&quot;&gt;&lt;del&gt;LU-10214&lt;/del&gt;&lt;/a&gt; lnet: allow expressions for route config&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8c610a5f483d53de7d9579587f304b551c847e99&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                        </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|hzznin:</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>