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

sanity.sh test_52a test_52b: chattr, lsattr do not work for ZFS

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.4.0
    • Lustre 2.4.0
    • 1
    • 3
    • 2760

    Description

      Commit: ORI-293
      Maloo: https://maloo.whamcloud.com/test_sets/b22fa740-0832-11e1-b0d9-52540025f9af

      The tests should show the actual lsattr outputs to facilitate diagnosis.

      == sanity test 52a: append-only flag test (should return errors) ======= 23:01:45 (1320386505)
      cp: cannot create regular file `/mnt/lustre/d52a/foo': Operation not permitted
      rename returned -1: Operation not permitted
      UUID                   1K-blocks        Used   Available Use% Mounted on
      lustre-MDT0000_UUID      9984896        8576     9974272   0% /mnt/lustre[MDT:0]
      lustre-OST0000_UUID      9985024        6784     9976064   0% /mnt/lustre[OST:0]
      lustre-OST0001_UUID      9984768        4992     9977728   0% /mnt/lustre[OST:1]
      lustre-OST0002_UUID      9984768        1408     9981312   0% /mnt/lustre[OST:2]
      lustre-OST0003_UUID      9984384        6528     9975808   0% /mnt/lustre[OST:3]
      
      filesystem summary:     39938944       19712    39910912   0% /mnt/lustre
      
      osp.lustre-OST0000-osp-MDT0000.sync_changes=0
      osp.lustre-OST0000-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0000-osp-MDT0000.sync_in_progress=1
      osp.lustre-OST0001-osp-MDT0000.sync_changes=0
      osp.lustre-OST0001-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0001-osp-MDT0000.sync_in_progress=0
      osp.lustre-OST0002-osp-MDT0000.sync_changes=0
      osp.lustre-OST0002-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0002-osp-MDT0000.sync_in_progress=0
      osp.lustre-OST0003-osp-MDT0000.sync_changes=0
      osp.lustre-OST0003-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0003-osp-MDT0000.sync_in_progress=1
      osp.lustre-OST0000-osp-MDT0000.prealloc_status=0
      osp.lustre-OST0001-osp-MDT0000.prealloc_status=0
      osp.lustre-OST0002-osp-MDT0000.prealloc_status=0
      osp.lustre-OST0003-osp-MDT0000.prealloc_status=0
       sanity test_52a: @@@@@@ FAIL: lsattr 
      
      == sanity test 52b: immutable flag test (should return errors) ========= 23:02:27 (1320386547)
      /usr/lib64/lustre/tests/sanity.sh: line 3132: /mnt/lustre/d52b/foo: Permission denied
      cp: cannot create regular file `/mnt/lustre/d52b/foo': Permission denied
      /usr/lib64/lustre/tests/sanity.sh: line 3136: /mnt/lustre/d52b/foo: Permission denied
      rename returned -1: Operation not permitted
      UUID                   1K-blocks        Used   Available Use% Mounted on
      lustre-MDT0000_UUID      9985024        7680     9975296   0% /mnt/lustre[MDT:0]
      lustre-OST0000_UUID      9985024        6784     9976064   0% /mnt/lustre[OST:0]
      lustre-OST0001_UUID      9984768        5120     9977600   0% /mnt/lustre[OST:1]
      lustre-OST0002_UUID      9984768        1408     9981312   0% /mnt/lustre[OST:2]
      lustre-OST0003_UUID      9984384        6528     9975808   0% /mnt/lustre[OST:3]
      
      filesystem summary:     39938944       19840    39910784   0% /mnt/lustre
      
      osp.lustre-OST0000-osp-MDT0000.sync_changes=0
      osp.lustre-OST0000-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0000-osp-MDT0000.sync_in_progress=0
      osp.lustre-OST0001-osp-MDT0000.sync_changes=0
      osp.lustre-OST0001-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0001-osp-MDT0000.sync_in_progress=0
      osp.lustre-OST0002-osp-MDT0000.sync_changes=0
      osp.lustre-OST0002-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0002-osp-MDT0000.sync_in_progress=0
      osp.lustre-OST0003-osp-MDT0000.sync_changes=0
      osp.lustre-OST0003-osp-MDT0000.sync_in_flight=0
      osp.lustre-OST0003-osp-MDT0000.sync_in_progress=0
      osp.lustre-OST0000-osp-MDT0000.prealloc_status=0
      osp.lustre-OST0001-osp-MDT0000.prealloc_status=0
      osp.lustre-OST0002-osp-MDT0000.prealloc_status=0
      osp.lustre-OST0003-osp-MDT0000.prealloc_status=0
       sanity test_52b: @@@@@@ FAIL: lsattr 
      

      Attachments

        Activity

          People

            utopiabound Nathaniel Clark
            liwei Li Wei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: