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

1.8 client does not filter 2.x server extended attributes list based on permissions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Lustre 1.8.8
    • Fix Version/s: Lustre 1.8.9
    • Labels:
      None
    • Environment:
      Client: lustre 1.8.6-wc1
      Servers:
       lustre-2.0.65-2.6.18_238.12.1.el5_lustre_ga34dd87
       lustre-modules-2.0.65-2.6.18_238.12.1.el5_lustre_ga34dd87
       lustre-ldiskfs-3.3.0-2.6.18_238.12.1.el5_lustre_ga34dd87
    • Severity:
      3
    • Rank (Obsolete):
      6337

      Description

      There seems to be a problem with user_xattr when using 1.8.6-wc1 client with
      newest lustre-master build:

      cd /mnt/lustre/scratch/people/b14flis
      touch test

      mv test /tmp

      mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
      mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
      mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted
      mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
      mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
      mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted

      strace dump:
      ...
      fgetxattr(3, "trusted.link", 0x0, 0) = -1 EPERM (Operation not permitted)
      fgetxattr(3, "trusted.lov", 0x0, 0) = -1 EPERM (Operation not permitted)
      ...
      lgetxattr("test", "trusted.lma", 0x0, 0) = -1 EPERM (Operation not permitted)
      ...
      lgetxattr("test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56) = 56
      lsetxattr("/tmp/test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56, 0) = -1 EOPNOTSUPP (Operation not supported)
      getxattr("test", "system.posix_acl_access", 0x7fff6edfae60, 132) = -1 ENODATA (No data available)

      serwer side error:

      Lustre: 10440:0:(mdt_xattr.c:374:mdt_reint_setxattr()) client miss to set OBD_MD_FLCTIME when setxattr: [object [0x2002f0053:0x38:0x0]] [valid 68719476736]

      mount options:
      MDT:
      /dev/mapper/scratch-mdt on /mnt/lustre/scratch-mdt type lustre (rw,acl,user_xattr)

      Client:
      172.16.126.1@tcp:/scratch on /mnt/lustre/scratch type lustre (rw,nosuid,nodev,user_xattr,localflock,acl)

      We can supply more information if needed.

        Issue Links

          Activity

          adilger Andreas Dilger created issue -
          adilger Andreas Dilger made changes -
          Field Original Value New Value
          Link This issue is duplicated by LU-532 [ LU-532 ]
          adilger Andreas Dilger made changes -
          Fix Version/s Lustre 2.1.2 [ 10111 ]
          Fix Version/s Lustre 2.3.0 [ 10117 ]
          Affects Version/s Lustre 1.8.8 [ 10131 ]
          Affects Version/s Lustre 2.1.0 [ 10021 ]
          Affects Version/s Lustre 2.2.0 [ 10082 ]
          Affects Version/s Lustre 2.1.2 [ 10111 ]
          Affects Version/s Lustre 2.3.0 [ 10117 ]
          Description There seems to be a problem with user_xattr when using 1.8.6-wc1 client with
          newest lustre-master build:

          cd /mnt/lustre/scratch/people/b14flis
          touch test

          mv test /tmp

          mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
          mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
          mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted
          mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
          mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
          mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted

          strace dump:
          ...
          fgetxattr(3, "trusted.link", 0x0, 0) = -1 EPERM (Operation not permitted)
          fgetxattr(3, "trusted.lov", 0x0, 0) = -1 EPERM (Operation not permitted)
          ...
          lgetxattr("test", "trusted.lma", 0x0, 0) = -1 EPERM (Operation not permitted)
          ...
          lgetxattr("test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56) = 56
          lsetxattr("/tmp/test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56, 0) = -1 EOPNOTSUPP (Operation not supported)
          getxattr("test", "system.posix_acl_access", 0x7fff6edfae60, 132) = -1 ENODATA (No data available)

          serwer side error:

          Lustre: 10440:0:(mdt_xattr.c:374:mdt_reint_setxattr()) client miss to set OBD_MD_FLCTIME when setxattr: [object [0x2002f0053:0x38:0x0]] [valid 68719476736]

          mount options:
          MDT:
             /dev/mapper/scratch-mdt on /mnt/lustre/scratch-mdt type lustre (rw,acl,user_xattr)

          Client:
             172.16.126.1@tcp:/scratch on /mnt/lustre/scratch type lustre (rw,nosuid,nodev,user_xattr,localflock,acl)

          We can supply more information if needed.

          --
          Lukasz Flis
          ACC Cyfronet AGH
          Poland
          There seems to be a problem with user_xattr when using 1.8.6-wc1 client with
          newest lustre-master build:

          cd /mnt/lustre/scratch/people/b14flis
          touch test

          mv test /tmp

          mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
          mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
          mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted
          mv: getting attribute `trusted.lma' of `trusted.lma': Operation not permitted
          mv: getting attribute `trusted.link' of `trusted.link': Operation not permitted
          mv: getting attribute `trusted.lov' of `trusted.lov': Operation not permitted

          strace dump:
          ...
          fgetxattr(3, "trusted.link", 0x0, 0) = -1 EPERM (Operation not permitted)
          fgetxattr(3, "trusted.lov", 0x0, 0) = -1 EPERM (Operation not permitted)
          ...
          lgetxattr("test", "trusted.lma", 0x0, 0) = -1 EPERM (Operation not permitted)
          ...
          lgetxattr("test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56) = 56
          lsetxattr("/tmp/test", "lustre.lov", "\xd0\x0b\xd1\x0b\x01\x00\x00\x00E\x1d\x00\x00\x00\x00\x00\x00\xe2\x00/\x00\x02\x00\x00\x00\x00\x00\x10\x00\x01\x00\x00\x00nE\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00", 56, 0) = -1 EOPNOTSUPP (Operation not supported)
          getxattr("test", "system.posix_acl_access", 0x7fff6edfae60, 132) = -1 ENODATA (No data available)

          serwer side error:

          Lustre: 10440:0:(mdt_xattr.c:374:mdt_reint_setxattr()) client miss to set OBD_MD_FLCTIME when setxattr: [object [0x2002f0053:0x38:0x0]] [valid 68719476736]

          mount options:
          MDT:
             /dev/mapper/scratch-mdt on /mnt/lustre/scratch-mdt type lustre (rw,acl,user_xattr)

          Client:
             172.16.126.1@tcp:/scratch on /mnt/lustre/scratch type lustre (rw,nosuid,nodev,user_xattr,localflock,acl)

          We can supply more information if needed.
          yong.fan nasf made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          johann Johann Lombardi made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          johann Johann Lombardi made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          pjones Peter Jones made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          pjones Peter Jones made changes -
          Fix Version/s Lustre 1.8.9 [ 10204 ]
          pjones Peter Jones made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          adilger Andreas Dilger made changes -
          Link This issue is related to DDN-167 [ DDN-167 ]

            People

            • Assignee:
              yong.fan nasf
              Reporter:
              adilger Andreas Dilger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: