Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1152

ls: cannot open directory .: Permission denied

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Lustre 1.8.7
    • None
    • Client: 1.8.7-wc1, 2.6.32-131.12.1.el6.x68_64
      Server: 1.8.4
    • 3
    • 6442

    Description

      mount lustre on /mnt
      ls /mnt (works)
      cd /mnt/blah (works)
      ls
      ls: cannot open directory .: Permission denied
      ls foo (works)
      ls /mnt/blah (fails)
      ls /mnt/blah/foo (works)

      Running strace on ls, I get permission denied opening '.', regardless of directory permissions.

      Attachments

        1. dump.client.out
          5.62 MB
        2. dump.mds.out.bz2
          924 kB

        Issue Links

          Activity

            [LU-1152] ls: cannot open directory .: Permission denied
            bobijam Zhenyu Xu added a comment -

            Would you mind enabling all debug message level "lctl set_param debug=-1" 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.

            bobijam Zhenyu Xu added a comment - Would you mind enabling all debug message level "lctl set_param debug=-1" 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.

            drwxrwxrwx (I've tried many permutations around that theme, none work)

            ben@terascala.com Ben Evans (Inactive) added a comment - drwxrwxrwx (I've tried many permutations around that theme, none work)
            bobijam Zhenyu Xu added a comment -

            what's the permission/acl output of /mnt/blah ?

            bobijam Zhenyu Xu added a comment - what's the permission/acl output of /mnt/blah ?

            ls -l /mnt displays everything correctly, but it is the only thing that does.

            ben@terascala.com Ben Evans (Inactive) added a comment - ls -l /mnt displays everything correctly, but it is the only thing that does.
            bobijam Zhenyu Xu added a comment -

            what's the output of "ls -l /mnt/"?

            bobijam Zhenyu Xu added a comment - what's the output of "ls -l /mnt/"?
            pjones Peter Jones added a comment -

            Bobi

            Could you please comment on this one?

            Thanks

            Peter

            pjones Peter Jones added a comment - Bobi Could you please comment on this one? Thanks Peter

            sorry, I should clarify, an older Lustre Client/kernel version combo works fine.

            also, in addition:

            touch /mnt/tmp/foo
            ls /mnt/tmp/foo

            does work. I'm thinking there's some special handling of '.' that's causing an issue that I'm running into.

            ben@terascala.com Ben Evans (Inactive) added a comment - sorry, I should clarify, an older Lustre Client/kernel version combo works fine. also, in addition: touch /mnt/tmp/foo ls /mnt/tmp/foo does work. I'm thinking there's some special handling of '.' that's causing an issue that I'm running into.

            The user was root. I can run on an older Lustre/FS combo and it works.

            I can do the following and it still fails:

            mkdir /mnt/tmp
            cd /mnt/tmp
            ls

            ben@terascala.com Ben Evans (Inactive) added a comment - The user was root. I can run on an older Lustre/FS combo and it works. I can do the following and it still fails: mkdir /mnt/tmp cd /mnt/tmp ls

            The user and group id's must be known the MDS, is the user in the MDS password files? Check the client and MDS system logs for errors.

            cliffw Cliff White (Inactive) added a comment - The user and group id's must be known the MDS, is the user in the MDS password files? Check the client and MDS system logs for errors.

            People

              bobijam Zhenyu Xu
              ben@terascala.com Ben Evans (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: