<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:14:00 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-1152] ls: cannot open directory .: Permission denied</title>
                <link>https://jira.whamcloud.com/browse/LU-1152</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;mount lustre on /mnt&lt;br/&gt;
ls /mnt (works)&lt;br/&gt;
cd /mnt/blah (works)&lt;br/&gt;
ls&lt;br/&gt;
ls: cannot open directory .: Permission denied&lt;br/&gt;
ls foo (works)&lt;br/&gt;
ls /mnt/blah (fails)&lt;br/&gt;
ls /mnt/blah/foo (works)&lt;/p&gt;

&lt;p&gt;Running strace on ls, I get permission denied opening &apos;.&apos;, regardless of directory permissions.&lt;/p&gt;</description>
                <environment>Client: 1.8.7-wc1, 2.6.32-131.12.1.el6.x68_64&lt;br/&gt;
Server: 1.8.4</environment>
        <key id="13375">LU-1152</key>
            <summary>ls: cannot open directory .: Permission denied</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="ben@terascala.com">Ben Evans</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Feb 2012 14:10:57 +0000</created>
                <updated>Tue, 3 Apr 2012 14:21:55 +0000</updated>
                            <resolved>Tue, 3 Apr 2012 14:21:55 +0000</resolved>
                                    <version>Lustre 1.8.7</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="29980" author="cliffw" created="Wed, 29 Feb 2012 14:34:14 +0000"  >&lt;p&gt;The user and group id&apos;s must be known the MDS, is the user in the MDS password files? Check the client and MDS system logs for errors. &lt;/p&gt;</comment>
                            <comment id="29981" author="ben@terascala.com" created="Wed, 29 Feb 2012 14:39:28 +0000"  >&lt;p&gt;The user was root.  I can run on an older Lustre/FS combo and it works.  &lt;/p&gt;

&lt;p&gt;I can do the following and it still fails:&lt;/p&gt;

&lt;p&gt;mkdir /mnt/tmp&lt;br/&gt;
cd /mnt/tmp&lt;br/&gt;
ls&lt;/p&gt;</comment>
                            <comment id="29982" author="ben@terascala.com" created="Wed, 29 Feb 2012 14:45:21 +0000"  >&lt;p&gt;sorry, I should clarify, an older Lustre Client/kernel version combo works fine.&lt;/p&gt;

&lt;p&gt;also, in addition:&lt;/p&gt;

&lt;p&gt;touch /mnt/tmp/foo&lt;br/&gt;
ls /mnt/tmp/foo&lt;/p&gt;

&lt;p&gt;does work.  I&apos;m thinking there&apos;s some special handling of &apos;.&apos; that&apos;s causing an issue that I&apos;m running into.&lt;/p&gt;</comment>
                            <comment id="30008" author="pjones" created="Wed, 29 Feb 2012 18:00:40 +0000"  >&lt;p&gt;Bobi&lt;/p&gt;

&lt;p&gt;Could you please comment on this one?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="30070" author="bobijam" created="Wed, 29 Feb 2012 21:10:03 +0000"  >&lt;p&gt;what&apos;s the output of &quot;ls -l /mnt/&quot;?&lt;/p&gt;</comment>
                            <comment id="30091" author="ben@terascala.com" created="Thu, 1 Mar 2012 09:06:55 +0000"  >&lt;p&gt;ls -l /mnt displays everything correctly, but it is the only thing that does.&lt;/p&gt;</comment>
                            <comment id="30092" author="bobijam" created="Thu, 1 Mar 2012 09:31:24 +0000"  >&lt;p&gt;what&apos;s the permission/acl output of /mnt/blah ?&lt;/p&gt;</comment>
                            <comment id="30093" author="ben@terascala.com" created="Thu, 1 Mar 2012 09:32:59 +0000"  >&lt;p&gt;drwxrwxrwx (I&apos;ve tried many permutations around that theme, none work)&lt;/p&gt;</comment>
                            <comment id="30270" author="bobijam" created="Thu, 1 Mar 2012 23:52:05 +0000"  >&lt;p&gt;Would you mind enabling all debug message level &quot;lctl set_param debug=-1&quot; on client and servers, and collecting debug logs (client node as well as MDS server) during these operations? So that we can check out what the problem might be.&lt;/p&gt;</comment>
                            <comment id="30289" author="ben@terascala.com" created="Fri, 2 Mar 2012 10:20:12 +0000"  >&lt;p&gt;Process for the dump:&lt;/p&gt;

&lt;p&gt;mount client&lt;br/&gt;
start debugging&lt;br/&gt;
ls /mnt&lt;br/&gt;
ls -l /mnt&lt;br/&gt;
mkdir /mnt/testdir&lt;br/&gt;
ls -l /mnt/testdir (failed)&lt;br/&gt;
touch /mnt/testdir/testfile&lt;br/&gt;
ls -l /mnt/testdir (failed)&lt;br/&gt;
ls -l /mnt/testdir/testfile (success)&lt;br/&gt;
rm /mnt/testdir/testfile&lt;br/&gt;
rmdir /mnt/testdir (failed)&lt;br/&gt;
chmod 777 /mnt/testdir&lt;br/&gt;
rmdir /mnt/testdir (failed)&lt;/p&gt;</comment>
                            <comment id="30375" author="bobijam" created="Sat, 3 Mar 2012 00:57:14 +0000"  >&lt;p&gt;client request testdir&apos;s xattr&lt;/p&gt;
&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;p&gt;00000080:00200000:2:1330700770.421348:0:16553:0:(xattr.c:349:ll_getxattr()) VFS Op:inode=708444163/3303540295(ffff88010e00ed50), xattr security.selinux&lt;br/&gt;
...&lt;br/&gt;
00000002:00000001:2:1330700770.421799:0:16553:0:(mdc_request.c:367:mdc_xattr_common()) Process leaving via err_out (rc=18446744073709551555 : -61 : ffffffffffffffc3)&lt;br/&gt;
&lt;font color=&quot;blue&quot;&gt;====&amp;gt;ENODATA&lt;/font&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;new client(1.8.7) old server(1.8.4) syndrome, I am afraid you&apos;d update your server.&lt;/p&gt;</comment>
                            <comment id="30384" author="pcpiela" created="Sat, 3 Mar 2012 09:27:30 +0000"  >&lt;p&gt;Would disabling selinux be a workaround for this problem?&lt;/p&gt;</comment>
                            <comment id="30496" author="bobijam" created="Mon, 5 Mar 2012 03:40:35 +0000"  >&lt;p&gt;I think not, gotta use &amp;gt;= 1.8.7 server if your client is 1.8.7.&lt;/p&gt;

&lt;p&gt;Since old MDS does not have the essential info (stripe info for client) as following MDS log shows.&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;$ grep fsfilt_ldiskfs_get_md /tmp/logs/1152/dump.mds.out
00002000:00000040:21:1330696880.700393:0:12708:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112866817: rc -61
00002000:00000040:9:1330696880.706343:0:12706:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112901473: rc -61
00002000:00000040:9:1330696880.707520:0:12710:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1114144769: rc -61
00002000:00000040:15:1330696880.712199:0:12714:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112899589: rc -61
00002000:00000040:17:1330696880.713367:0:12723:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1114275841: rc -61
00002000:00000040:19:1330696880.714589:0:31534:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112965121: rc -61
00002000:00000040:15:1330696880.715786:0:31557:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112866819: rc -61
00002000:00000040:17:1330696880.716954:0:31555:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1113817091: rc -61
00002000:00000040:1:1330696880.718103:0:31536:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1113882625: rc -61
00002000:00000040:23:1330696880.720901:0:12707:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112866822: rc -61
00002000:00000040:22:1330696880.722087:0:31556:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1113849857: rc -61
00002000:00000040:4:1330696939.175531:0:31531:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112866817: rc -61
00002000:00000040:17:1330696943.714265:0:31561:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112866817: rc -61
00002000:00000040:15:1330696943.715212:0:12720:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444163: rc -61
00002000:00000040:7:1330696952.152840:0:12719:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444164: rc -61
00002000:00000040:7:1330696952.152854:0:12719:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444163: rc -61
00002000:00000040:17:1330696957.721309:0:12711:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444163: rc -61
00002000:00000040:3:1330696981.345390:0:12713:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444163: rc -61
00002000:00000040:13:1330696991.321460:0:31535:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444163: rc -61
00002000:00000040:17:1330697014.615160:0:31536:0:(fsfilt-ldiskfs.c:717:fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 708444163: rc -61
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="30615" author="ben@terascala.com" created="Tue, 6 Mar 2012 12:58:25 +0000"  >&lt;p&gt;disabling selinux is a workaround, but not a fix.&lt;/p&gt;

&lt;p&gt;Since 1.8.7-wc1 clients work on older versions of Linux with the same filesystem, this looks like a kernel incompatibility, rather than a client/server issue (or one that Lustre aggravates).&lt;/p&gt;</comment>
                            <comment id="30628" author="xuezhao" created="Tue, 6 Mar 2012 20:14:43 +0000"  >&lt;p&gt;First, the selinux should be disabled.&lt;/p&gt;

&lt;p&gt;Secondly, for &quot;fsfilt_ldiskfs_get_md()) error getting EA 4/lov from inode 1112866817: rc -61&quot; such log, in the case that only 1 OST installed on the server, is it possible the EA(stripe info) be empty? Seems it is just a kind of warning/log message, not really error.&lt;/p&gt;</comment>
                            <comment id="30645" author="bobijam" created="Wed, 7 Mar 2012 09:53:48 +0000"  >&lt;p&gt;Ben,&lt;/p&gt;

&lt;p&gt;Can you describe more info about the step? It&apos;s 1.8.4 Lustre server, and all server devices were formated with this 1.8.4 Lustre server? What Linux kernel version do these servers use? What steps did you take? Just mounted the Lustre system and &quot;mkdir /mnt/testdir&quot; and then &quot;ls /mnt/testdir&quot; failed?&lt;/p&gt;</comment>
                            <comment id="30647" author="ben@terascala.com" created="Wed, 7 Mar 2012 10:14:02 +0000"  >&lt;p&gt;server kernel version is 2.6.18-194.3.1.0.1.el5 and Lustre 1.8.4&lt;br/&gt;
Formatted with that kernel/Lustre version.&lt;br/&gt;
8 OSTs, default striping.&lt;/p&gt;

&lt;p&gt;Steps on the client are exactly as you describe, mount, mkdir, ls.&lt;/p&gt;

&lt;p&gt;Disabling selinux on the client fixed the ls issue.&lt;/p&gt;</comment>
                            <comment id="30648" author="bobijam" created="Wed, 7 Mar 2012 10:24:28 +0000"  >&lt;p&gt;hmm, strangely, I have tried &quot;SELINUX=enforcing&quot; and &quot;SELINUX=targeted&quot;, and cannot hit it. Anyway, Lustre should not work with selinux enabled.&lt;/p&gt;</comment>
                            <comment id="33376" author="pjones" created="Tue, 3 Apr 2012 14:21:55 +0000"  >&lt;p&gt;As per Terascala - this ticket can be closed&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10916" name="dump.client.out" size="5889649" author="ben@terascala.com" created="Fri, 2 Mar 2012 10:13:15 +0000"/>
                            <attachment id="10917" name="dump.mds.out.bz2" size="946426" author="ben@terascala.com" created="Fri, 2 Mar 2012 10:16:33 +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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>client</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvh8n:</customfieldvalue>

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