<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:56:43 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-6043] DLC: lnetctl import does not configure any networks</title>
                <link>https://jira.whamcloud.com/browse/LU-6043</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I can bring up a network with lctl net up and once up I used lnetctl export to create a configuration file. After I brought down the network and attempted to bring the network usig lnetctl import &amp;lt; myconfig.yaml it failed with the following message:&lt;/p&gt;

&lt;p&gt;&amp;gt;lnetctl import &amp;lt; lnet.yaml&lt;br/&gt;
yaml:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;builder:&lt;br/&gt;
            errno: -1&lt;br/&gt;
            descr: Failed to handle token:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;state=6, rc=-2&amp;#93;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="27962">LU-6043</key>
            <summary>DLC: lnetctl import does not configure any networks</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="ashehata">Amir Shehata</assignee>
                                    <reporter username="simmonsja">James A Simmons</reporter>
                        <labels>
                            <label>lnet</label>
                    </labels>
                <created>Wed, 17 Dec 2014 23:34:30 +0000</created>
                <updated>Mon, 12 Jan 2015 18:34:41 +0000</updated>
                            <resolved>Mon, 12 Jan 2015 18:34:41 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="101884" author="simmonsja" created="Wed, 17 Dec 2014 23:35:29 +0000"  >&lt;p&gt;Sorry no patch. Not familiar enough with yaml to fix.&lt;/p&gt;</comment>
                            <comment id="101885" author="jamesanunez" created="Wed, 17 Dec 2014 23:39:32 +0000"  >&lt;p&gt;Amir, &lt;/p&gt;

&lt;p&gt;Would you please comment on this ticket?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
James&lt;/p&gt;</comment>
                            <comment id="101906" author="gerrit" created="Thu, 18 Dec 2014 02:37:50 +0000"  >&lt;p&gt;Amir Shehata (amir.shehata@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13115&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13115&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6043&quot; title=&quot;DLC: lnetctl import does not configure any networks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6043&quot;&gt;&lt;del&gt;LU-6043&lt;/del&gt;&lt;/a&gt; lnet: Fix YAML FSM and other cleanup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 90204d6df3a9a0385a7401e56d2ca1a0819c0633&lt;/p&gt;</comment>
                            <comment id="101908" author="ashehata" created="Thu, 18 Dec 2014 02:54:15 +0000"  >&lt;p&gt;Please note that when you do lnetctl export, you&apos;ll get output similar to:&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;net:
    - net: lo
      nid: 0@lo
      status: up
      tunables:
          peer_timeout: 0
          peer_credits: 0
          peer_buffer_credits: 0
          credits: 0
    - net: tcp
      nid: 192.168.205.156@tcp
      status: up
      interfaces:
          0: eth4
      tunables:
          peer_timeout: 180
          peer_credits: 8
          peer_buffer_credits: 0
          credits: 256
    - net: tcp1
      nid: 192.168.206.167@tcp1
      status: up
      interfaces:
          0: eth5
      tunables:
          peer_timeout: 180
          peer_credits: 8
          peer_buffer_credits: 0
          credits: 256
route:
    - net: tcp3
      gateway: 10.1.1.1@tcp
      hop: 1
      priority: 0
      state: up
    - net: tcp4
      gateway: 10.1.1.1@tcp
      hop: 1
      priority: 0
      state: up
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It will dump all currently configured items.  To properly test, you&apos;ll first need to configure lnet without loading any module parameters.  To do that you can issue the following commands:&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;modprobe lnet
lnetctl lnet configure
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then after you configure lnet:&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 &lt;span class=&quot;code-keyword&quot;&gt;import&lt;/span&gt; &amp;lt; config.yaml
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When you issue the following command it will attempt to configure each item.  If the item is already configured it will fail configuring that particular item  (example, if you try to reconfig an already existing network it will fail), but it will not stop and will continue to configure the rest of the items.&lt;/p&gt;

&lt;p&gt;Unfortunately, there is a minor inconsistency in the behavior when you add an existing net vs when you add an existing route.  The former will error and the latter will be ignored.  We can address this inconsistency in a separate patch (but it&apos;s a minor issue)&lt;/p&gt;

&lt;p&gt;You&apos;ll see that when you try to configure the LO Net, since it&apos;s part of the configuration but is always configured implicitly and DLC doesn&apos;t provide a way to configure the LO Net, it will fail.&lt;/p&gt;

&lt;p&gt;the output would likely look similar to&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;add:
    - net:  &lt;span class=&quot;code-comment&quot;&gt;// &amp;lt;-- &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; is the error you get when you &lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; to configure LO
&lt;/span&gt;          errno: -2
          descr: &lt;span class=&quot;code-quote&quot;&gt;&quot;mandatory parameter &lt;span class=&quot;code-quote&quot;&gt;&apos;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;&apos;&lt;/span&gt; not specified. Optionally specify ip2net parameter&quot;&lt;/span&gt;
    - net:
          errno: 0
          descr: &lt;span class=&quot;code-quote&quot;&gt;&quot;success&quot;&lt;/span&gt;
    - net:
          errno: 0
          descr: &lt;span class=&quot;code-quote&quot;&gt;&quot;success&quot;&lt;/span&gt;
    - route:
          errno: 0
          descr: &lt;span class=&quot;code-quote&quot;&gt;&quot;Success&quot;&lt;/span&gt;
    - route:
          errno: 0
          descr: &lt;span class=&quot;code-quote&quot;&gt;&quot;Success&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Currently there is no way to configure LNet from YAML (IE: lnetctl lnet configure).  It is assumed that you have already configured LNet either through:&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 network up
or
lnetctl lnet configure [--all]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If you think it&apos;s useful to configure LNet vial YAML, we can address that in a separate patch.&lt;/p&gt;</comment>
                            <comment id="101964" author="simmonsja" created="Thu, 18 Dec 2014 17:14:44 +0000"  >&lt;p&gt;So I did a few different approach with your included patch.&lt;/p&gt;

&lt;p&gt;First I found without the patch lnetctl net configure --all only adds lo interface after I run modprobe lnet. The system is configured for o2ib as well. With the patch it does work &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;The test of running modprobe lnet; lnetctl net configure; lnetctl import &amp;lt; lnet.yaml still fails with the reported error.&lt;/p&gt;
</comment>
                            <comment id="102481" author="ashehata" created="Fri, 2 Jan 2015 21:21:27 +0000"  >&lt;p&gt;sorry was on vacation.  &lt;/p&gt;

&lt;p&gt;Can you please share your lnet.yaml file so I can test on my side.&lt;/p&gt;</comment>
                            <comment id="102501" author="gerrit" created="Sun, 4 Jan 2015 18:07:05 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13115/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13115/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6043&quot; title=&quot;DLC: lnetctl import does not configure any networks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6043&quot;&gt;&lt;del&gt;LU-6043&lt;/del&gt;&lt;/a&gt; lnet: Fix YAML FSM and other cleanup&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 943469dc33ab665d3908847a21dfee6a3b574505&lt;/p&gt;</comment>
                            <comment id="102608" author="simmonsja" created="Tue, 6 Jan 2015 02:34:01 +0000"  >&lt;p&gt;Here is the lnet yaml file giving me headaches.&lt;/p&gt;</comment>
                            <comment id="102952" author="ashehata" created="Fri, 9 Jan 2015 02:11:53 +0000"  >&lt;p&gt;I fixed your issue in a different patch:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/13304/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/13304/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="103027" author="simmonsja" created="Fri, 9 Jan 2015 17:28:40 +0000"  >&lt;p&gt;You fixed it. Now it works. Thank you.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="28104">LU-6099</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="27964">LU-6045</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="16654" name="lnet.yaml" size="1136" author="simmonsja" created="Tue, 6 Jan 2015 02:34:01 +0000"/>
                    </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_10070" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Project</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10042"><![CDATA[Dynamic LNET Configuration]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzx2r3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16844</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>