<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:19:27 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-1760] Misleading LNet Self Test message when lnet_selftest module is not loaded</title>
                <link>https://jira.whamcloud.com/browse/LU-1760</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When creating an lnet self test session without the lnet_selftest module loaded I see the following message:&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;-bash-4.1# lst new_session stress
Invalid parameters list in command line
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is misleading as the real problem is not the parameter list, but the fact that lnet_selftest is not loaded. To an uninformed user, this can be extremely confusing.&lt;/p&gt;

&lt;p&gt;From a quick scan of the code, the error occurs here:&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; 611         rc = lst_new_session_ioctl(name, timeout, force, &amp;amp;session_id);
 612         if (rc != 0) {
 613                 lst_print_error(&quot;session&quot;, &quot;Failed to create session: %s\n&quot;,
 614                                 strerror(errno));
 615                 return rc;
 616         }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Because the module is not loaded, the ioctl fails and sets errno to EINVAL. lst_print_error then interprets this error code and prints the misleading message. It would be much better if something was reported to the user which hinted at a possible unloaded module.&lt;/p&gt;

&lt;p&gt;Something like the following would be much better:&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;-bash-4.1# lst new_session stress
Failed to create a new session with error EINVAL. This can be caused by incorrect parameters or because the lnet_selftest module is not loaded.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Better yet, if the ioctl fails, the lst command could parse /proc/modules to determine if lnet_selftest is loaded.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15512">LU-1760</key>
            <summary>Misleading LNet Self Test message when lnet_selftest module is not loaded</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="ashehata">Amir Shehata</assignee>
                                    <reporter username="prakash">Prakash Surya</reporter>
                        <labels>
                            <label>llnl</label>
                            <label>patch</label>
                    </labels>
                <created>Thu, 16 Aug 2012 14:27:55 +0000</created>
                <updated>Mon, 29 May 2017 05:03:16 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="43358" author="prakash" created="Thu, 16 Aug 2012 14:38:47 +0000"  >&lt;p&gt;strace of the program&apos;s execution:&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;-bash-4.1# strace lst new_session stress
execve(&quot;/usr/sbin/lst&quot;, [&quot;lst&quot;, &quot;new_session&quot;, &quot;stress&quot;], [/* 24 vars */]) = 0
brk(0)                                  = 0x10030000
access(&quot;/etc/ld.so.preload&quot;, R_OK)      = -1 ENOENT (No such file or directory)
open(&quot;/etc/ld.so.cache&quot;, O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=124024, ...}) = 0
mmap(NULL, 124024, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfff7bef0000
close(3)                                = 0
open(&quot;/lib64/libc.so.6&quot;, O_RDONLY)      = 3
read(3, &quot;\177ELF\2\2\1\0\0\0\0\0\0\0\0\0\0\3\0\25\0\0\0\1\0\0\0\0\0\35\r &quot;..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2172712, ...}) = 0
mmap(NULL, 1982072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfff7bd00000
mmap(0xfff7bec0000, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b0000) = 0xfff7bec0000
mmap(0xfff7bee0000, 15992, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfff7bee0000
close(3)                                = 0
mprotect(0xfff7bec0000, 65536, PROT_READ) = 0
mprotect(0xfff7bf60000, 65536, PROT_READ) = 0
munmap(0xfff7bef0000, 124024)           = 0
brk(0)                                  = 0x10030000
brk(0x10060000)                         = 0x10060000
open(&quot;/dev/lnet&quot;, O_RDWR)               = 3
ioctl(3, 0xc008653f, 0xfffef191700)     = -1 EINVAL (Invalid argument)
write(2, &quot;Invalid parameters list in comma&quot;..., 40Invalid parameters list in command line
) = 40
exit_group(-1)                          = ?
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="43368" author="pjones" created="Thu, 16 Aug 2012 15:42:18 +0000"  >&lt;p&gt;Isaac&lt;/p&gt;

&lt;p&gt;Could you please take care of this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="43378" author="pjones" created="Thu, 16 Aug 2012 18:55:32 +0000"  >&lt;p&gt;Doug&lt;/p&gt;

&lt;p&gt;Isaac is out this week so can you help instead?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="43393" author="adilger" created="Fri, 17 Aug 2012 00:58:41 +0000"  >&lt;p&gt;Possibly better would be to just modprobe lst and try it again.  Easier for the user, and no need for a complex error message. &lt;/p&gt;</comment>
                            <comment id="43413" author="doug" created="Fri, 17 Aug 2012 11:33:46 +0000"  >&lt;p&gt;The modprobe approach would certainly be more user friendly.  Unless someone sees an issue with attempting the modprobe on this error condition, I&apos;ll go with that approach.&lt;/p&gt;</comment>
                            <comment id="43414" author="prakash" created="Fri, 17 Aug 2012 11:54:20 +0000"  >&lt;p&gt;I agree, I like the idea of inserting the module for the user.&lt;/p&gt;</comment>
                            <comment id="43659" author="doug" created="Wed, 22 Aug 2012 17:39:43 +0000"  >&lt;p&gt;The change created to address this ticket is: &lt;a href=&quot;http://review.whamcloud.com/3752&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3752&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="73008" author="doug" created="Fri, 6 Dec 2013 19:20:37 +0000"  >&lt;p&gt;Amir: can you find an answer to Isaac&apos;s question in the Gerrit patch and rebase the patch once you do?&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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 26 Jun 2014 14:27:55 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9760</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>
                                                                                                                        <customfield id="customfield_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 16 Aug 2012 14:27:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>