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

sanity test_420: FAIL: incorrect perms on /mnt/lustre/d420.sanity/testdir/testfile

Details

    • 3
    • 9223372036854775807

    Description

      sanity test 420 failed as follows:

      == sanity test 420: clear SGID bit on non-directories for non-members ================================ 11:24:44 (1559845484)
      drwxrwsrwt 2 0 0 4096 Jun  6 11:24 /mnt/lustre/d420.sanity/testdir
      localhost: Permission denied.
      ls: cannot access '/mnt/lustre/d420.sanity/testdir/testfile': No such file or directory
      ls: cannot access '/mnt/lustre/d420.sanity/testdir/testfile': No such file or directory
      /usr/lib64/lustre/tests/sanity.sh: line 20215: [: ==: unary operator expected
       sanity test_420: @@@@@@ FAIL: incorrect perms on /mnt/lustre/d420.sanity/testdir/testfile 
      

      Maloo report: https://testing.whamcloud.com/test_sets/f180e12c-8889-11e9-be83-52540065bddc

      Attachments

        Issue Links

          Activity

            [LU-12399] sanity test_420: FAIL: incorrect perms on /mnt/lustre/d420.sanity/testdir/testfile

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35250/
            Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 4df2ac9ddc717b435773ddf0bbe5c89ac0c9fda0

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35250/ Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420 Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 4df2ac9ddc717b435773ddf0bbe5c89ac0c9fda0

            Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35250
            Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set: 1
            Commit: 1910e52fa8932eeae093edb20b81667f144884b6

            gerrit Gerrit Updater added a comment - Jian Yu (yujian@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35250 Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420 Project: fs/lustre-release Branch: b2_12 Current Patch Set: 1 Commit: 1910e52fa8932eeae093edb20b81667f144884b6
            pjones Peter Jones added a comment -

            Landed for 2.13

            pjones Peter Jones added a comment - Landed for 2.13

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35176/
            Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 1476ac047b449886a0c382b840a7b09dc0cec7eb

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35176/ Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420 Project: fs/lustre-release Branch: master Current Patch Set: Commit: 1476ac047b449886a0c382b840a7b09dc0cec7eb

            Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/35176
            Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 30f8f143785a3ccf44af17db3c15cc23b9d7d9e5

            gerrit Gerrit Updater added a comment - Sebastien Buisson (sbuisson@ddn.com) uploaded a new patch: https://review.whamcloud.com/35176 Subject: LU-12399 tests: avoid 'pdsh localhost' in sanity test_420 Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 30f8f143785a3ccf44af17db3c15cc23b9d7d9e5

            It turns out that a simple alternative is to use 'su - $uname -c'. I will push a patch with this fix.

            sebastien Sebastien Buisson added a comment - It turns out that a simple alternative is to use 'su - $uname -c'. I will push a patch with this fix.

            No, $RUNAS is not a substitute.
            As explained in https://review.whamcloud.com/34809, I tried with runas, but it does not work, because it only substitutes the UID and GID.

            However, if you are able to find an alternative to $PDSH that makes sanity test_420 pass, I would be glad to use it.

            sebastien Sebastien Buisson added a comment - No, $RUNAS is not a substitute. As explained in https://review.whamcloud.com/34809,  I tried with runas, but it does not work, because it only substitutes the UID and GID. However, if you are able to find an alternative to $PDSH that makes sanity test_420 pass, I would be glad to use it.

            I agreed with Jian, we hit the failure too locally testing, just running $RUNAS might be better.

            wshilong Wang Shilong (Inactive) added a comment - I agreed with Jian, we hit the failure too locally testing, just running $RUNAS might be better.
            yujian Jian Yu added a comment -

            Since the command needs to be run on local client, it seems we can just use $RUNAS instead of $PDSH, so that user do not need to configure "$PDSH ${uname}@localhost".

            yujian Jian Yu added a comment - Since the command needs to be run on local client, it seems we can just use $RUNAS instead of $PDSH, so that user do not need to configure "$PDSH ${uname}@localhost".

            Oops, sorry

             

            So my recommendation is to allow 'pdsh localhost' on client node running this test.

            sebastien Sebastien Buisson added a comment - Oops, sorry   So my recommendation is to allow 'pdsh localhost' on client node running this test.

            People

              sebastien Sebastien Buisson
              yujian Jian Yu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: