<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:26:48 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-2625] lustre_rmmod sometimes returns unexpected errors</title>
                <link>https://jira.whamcloud.com/browse/LU-2625</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;lustre_rmmod sometimes returns errors that should not be displayed to end user.&lt;/p&gt;

&lt;p&gt;When lustre modules are already all unloaded&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;# lustre_rmmod
open /proc/sys/lnet/dump_kernel failed: No such file or directory
open(dump_kernel) failed: No such file or directory
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In a lustre router configuration, when loaded lustre modules are only: libcfs, lnet and lnds&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;# lustre_rmmod
error: dl: No such file or directory opening /proc/fs/lustre/devices
opening /dev/obd failed: No such device
hint: the kernel modules may not be loaded
Error getting device list: No such device: check dmesg.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When executed from a non-root user&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;$ lustre_rmmod
error: dl: No such file or directory opening /proc/fs/lustre/devices
opening /dev/obd failed: Permission denied
hint: the kernel modules may not be loaded
Error getting device list: Permission denied: check dmesg.
open /proc/sys/lnet/dump_kernel failed: Permission denied
open(dump_kernel) failed: Permission denied
Modules still loaded:
libcfs/libcfs/libcfs.o
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment>lustre 2.3.58&lt;br/&gt;
redhat 6.3</environment>
        <key id="17190">LU-2625</key>
            <summary>lustre_rmmod sometimes returns unexpected errors</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="bfaccini">Bruno Faccini</assignee>
                                    <reporter username="pichong">Gregoire Pichon</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Jan 2013 07:48:39 +0000</created>
                <updated>Wed, 13 Feb 2013 11:13:10 +0000</updated>
                            <resolved>Wed, 13 Feb 2013 11:13:10 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                    <version>Lustre 2.1.4</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="50539" author="bfaccini" created="Wed, 16 Jan 2013 08:18:45 +0000"  >&lt;p&gt;Hello again Gregoire !!&lt;br/&gt;
Thank&apos;s for the report will give you an update soon.&lt;br/&gt;
Bye.&lt;/p&gt;</comment>
                            <comment id="50542" author="pichong" created="Wed, 16 Jan 2013 09:01:40 +0000"  >&lt;p&gt;I have posted a patch for the first two reported problems: &lt;a href=&quot;http://review.whamcloud.com/5040&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5040&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the non-root user execution, I am not sure how to proceed and if it should be prevented at all.&lt;br/&gt;
The command /usr/sbin/lustre_rmmod permissions could be changed to 0744 (instead of 0755).&lt;br/&gt;
Or this could be checked directly from the script itself, like this.&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;# check user is root
if [ $(id -u) -ne 0 ]; then
    echo &quot;Error: $0 must be executed as root user&quot;
    exit 1
fi
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="50689" author="bfaccini" created="Thu, 17 Jan 2013 12:39:28 +0000"  >&lt;p&gt;Thank&apos;s for the patch coverring the  first cases you reported.&lt;br/&gt;
Don&apos;t you think we also need to print an informative message in case nothing has to be done (ie, no modules to be unloaded at all, and in your version of &quot;lustre_rmmod&quot; when unload_dep_module() will not be called) ?&lt;br/&gt;
About the non-root execution, I think it is a more generic packaging issue which should be addressed apart, do you agree ??&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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>modules</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvffj:</customfieldvalue>

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