<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:50:53 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-12244] lfs check subcommand no longer works as non-root user</title>
                <link>https://jira.whamcloud.com/browse/LU-12244</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;With the Lustre 2.10 client, non-root users appear to no longer be able to run &quot;lfs check &amp;lt;servers|osts|mds&amp;gt;&quot;. Strace of the command shows a &quot;Permission denied&quot; error accessing &lt;tt&gt;/sys/kernel/debug/lustre/devices&lt;/tt&gt;, resulting in the following error at runtime: &lt;tt&gt;error: check: mds status failed&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Our Operations staff w/o root access needs &quot;lfs check ...&quot; functionality to monitor and fix file system issues, so fixing this issue would helpful for us.&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;statfs(&quot;/sys/kernel/debug/&quot;, {f_type=DEBUGFS_MAGIC, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096, f_flags=ST_VALID|ST_RELATIME}) = 0
stat(&quot;/sys/fs/lnet/devices&quot;, 0x7fffffff8760) = -1 ENOENT (No such file or directory)
stat(&quot;/sys/fs/lustre/devices&quot;, 0x7fffffff8760) = -1 ENOENT (No such file or directory)
stat(&quot;/sys/kernel/debug/lnet/devices&quot;, 0x7fffffff8740) = -1 EACCES (Permission denied)
stat(&quot;/sys/kernel/debug/lustre/devices&quot;, 0x7fffffff8740) = -1 EACCES (Permission denied)
stat(&quot;/proc/fs/lnet/devices&quot;, 0x7fffffff8760) = -1 ENOENT (No such file or directory)
stat(&quot;/proc/fs/lustre/devices&quot;, 0x7fffffff8760) = -1 ENOENT (No such file or directory)
stat(&quot;/proc/sys/lnet/devices&quot;, 0x7fffffff8760) = -1 ENOENT (No such file or directory)
stat(&quot;/proc/sys/lustre/devices&quot;, 0x7fffffff8760) = -1 ENOENT (No such file or directory)
write(2, &quot;error: check: mds status failed\n&quot;, 32error: check: mds status failed
) = 32
exit_group(2)                           = ?
+++ exited with 2 +++
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Client/Server: lustre-2.10.6_2.chaos-1.ch6.x86_64&lt;br/&gt;
kernel: 3.10.0-957.5.1.3chaos.ch6.x86_64</environment>
        <key id="55529">LU-12244</key>
            <summary>lfs check subcommand no longer works as non-root user</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="pjones">Peter Jones</assignee>
                                    <reporter username="charr">Cameron Harr</reporter>
                        <labels>
                            <label>llnl</label>
                    </labels>
                <created>Mon, 29 Apr 2019 19:33:21 +0000</created>
                <updated>Mon, 15 Jul 2019 21:55:31 +0000</updated>
                            <resolved>Wed, 3 Jul 2019 03:59:02 +0000</resolved>
                                    <version>Lustre 2.10.6</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="246548" author="simmonsja" created="Tue, 30 Apr 2019 17:58:19 +0000"  >&lt;p&gt;We have fixes for that which landed to newer lustre versions. You need patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/33799&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33799&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="246553" author="adilger" created="Tue, 30 Apr 2019 18:01:54 +0000"  >&lt;p&gt;The move of the &lt;tt&gt;/proc/fs/lustre/devices&lt;/tt&gt; file from &lt;tt&gt;procfs&lt;/tt&gt; to &lt;tt&gt;debugfs&lt;/tt&gt; was done as part of patch &lt;a href=&quot;https://review.whamcloud.com/23428&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/23428&lt;/a&gt; &lt;tt&gt;&quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8066&quot; title=&quot;Move lustre procfs handling to sysfs and debugfs.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8066&quot;&gt;LU-8066&lt;/a&gt; obdclass: move lustre sysctl to sysfs&quot;&lt;/tt&gt; landed for 2.9.56, so it has been in all 2.10 releases. &lt;/p&gt;

&lt;p&gt;I suspect the reason it is a problem now is that RedHat has backported a change from newer kernels to their kernel that makes debugfs root-only. &lt;/p&gt;</comment>
                            <comment id="246556" author="adilger" created="Tue, 30 Apr 2019 18:06:40 +0000"  >&lt;p&gt;I&apos;ve cherry-picked the patch to b2_10:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/34782&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34782&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="246566" author="charr" created="Tue, 30 Apr 2019 20:10:18 +0000"  >&lt;p&gt;Thank you both. My search for related tickets missed  &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11850&quot; title=&quot;Relocating /proc/fs/lustre/ost to /sys/kernel/debug/lustre/ost prevents non-root access&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11850&quot;&gt;LU-11850&lt;/a&gt;, which is very similar.&lt;/p&gt;

&lt;p&gt;Sparing Redhat from some blame, we only recently started rolling out 2.10 clients (from 2.8) so this is only affecting us now.&lt;/p&gt;</comment>
                            <comment id="246590" author="simmonsja" created="Wed, 1 May 2019 17:36:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11850&quot; title=&quot;Relocating /proc/fs/lustre/ost to /sys/kernel/debug/lustre/ost prevents non-root access&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11850&quot;&gt;LU-11850&lt;/a&gt; only impacts 2.12 LTS users.&#160;&lt;/p&gt;</comment>
                            <comment id="246592" author="charr" created="Wed, 1 May 2019 17:40:38 +0000"  >&lt;p&gt;... And I had searched only on 2.10. Thanks.&lt;/p&gt;</comment>
                            <comment id="246593" author="adilger" created="Wed, 1 May 2019 17:44:58 +0000"  >&lt;p&gt;Cameron, did you try out the patch for b2_10?  Did it solve your problem?  It only affects the userspace tools on the client, so you wouldn&apos;t need to upgrade all of the kernel modules or take an outage to install it. &lt;/p&gt;</comment>
                            <comment id="246594" author="ofaaland" created="Wed, 1 May 2019 17:52:56 +0000"  >&lt;p&gt;Andreas, we haven&apos;t tried it, but we can do so today and post back.&lt;/p&gt;</comment>
                            <comment id="246602" author="ofaaland" created="Wed, 1 May 2019 20:18:59 +0000"  >&lt;p&gt;Yep, that patch worked without any other patches or modification.&lt;/p&gt;</comment>
                            <comment id="246605" author="ofaaland" created="Wed, 1 May 2019 21:21:13 +0000"  >&lt;p&gt;For our own recordkeeping, our local ticket: TOSS-4503&lt;/p&gt;</comment>
                            <comment id="248261" author="pjones" created="Mon, 3 Jun 2019 13:17:34 +0000"  >&lt;p&gt;I believe that this issue is fixed in both 2.10.8 and 2.12.2 so the ticket can now be considered RESOLVED&lt;/p&gt;</comment>
                            <comment id="248917" author="ofaaland" created="Mon, 10 Jun 2019 21:57:33 +0000"  >&lt;p&gt;Peter,&lt;br/&gt;
I do not see that this patch landed to 2.12.2 even though it was backported to 2.10.&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;[faaland1@hefe branch:2.10.6-llnl lustre-210] $git lg wcrev/b2_12 | grep LU-8066 | grep iterate
[faaland1@hefe branch:2.10.6-llnl lustre-210] $git lg wcrev/b2_10 | grep LU-8066 | grep iterate
* e55cd4f LU-8066 utils: have llapi_target_iterate use sysfs tree
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/#/c/34781/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/34781/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Has a +2 but has not landed due to undiagnosed test failures, last activity May 8.&lt;/p&gt;</comment>
                            <comment id="248918" author="pjones" created="Mon, 10 Jun 2019 22:02:55 +0000"  >&lt;p&gt;You are correct - sorry.&lt;/p&gt;</comment>
                            <comment id="250416" author="pjones" created="Mon, 1 Jul 2019 13:25:33 +0000"  >&lt;p&gt;I think that once the current b2_12-next branch lands that this really will be complete.&lt;/p&gt;</comment>
                            <comment id="250577" author="pjones" created="Wed, 3 Jul 2019 03:59:03 +0000"  >&lt;p&gt;Ok - &lt;em&gt;now&lt;/em&gt; this is fixed on b2_12&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="54493">LU-11850</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="36381">LU-8066</issuekey>
        </issuelink>
                            </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|i00flr:</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>