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

sanity-hsm file_creation_failure sends df output to stdout

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • Lustre 2.7.0
    • Lustre 2.7.0
    • 3
    • 16867

    Description

      The file_creation_failure() function added to sanity-hsm calls df for debugging purposes but does not redirect the output of df to stderr. Since file_creation_failure is used in functions like make_large_for_cancel which are in turn used in command substitution

      local f=$(make_large_for_cancel ...)
      

      the df output goes into $f.

      Also many of these functions check for success by calling path2fid which pipes lfs to tr

      path2fid() {
              $LFS path2fid $1 | tr -d '[]'
      }
      

      Since tr will succeed this will fail to detect errors.

      Attachments

        Issue Links

          Activity

            [LU-6055] sanity-hsm file_creation_failure sends df output to stdout

            James Nunez (james.a.nunez@intel.com) uploaded a new patch: http://review.whamcloud.com/13827
            Subject: LU-6055 hsm: improve error handling in sanity-hsm
            Project: fs/lustre-release
            Branch: b2_5
            Current Patch Set: 1
            Commit: 5773e67989e9b4953c1801d8c23572b126af8b78

            gerrit Gerrit Updater added a comment - James Nunez (james.a.nunez@intel.com) uploaded a new patch: http://review.whamcloud.com/13827 Subject: LU-6055 hsm: improve error handling in sanity-hsm Project: fs/lustre-release Branch: b2_5 Current Patch Set: 1 Commit: 5773e67989e9b4953c1801d8c23572b126af8b78

            Patch landed to Master.

            jlevi Jodi Levi (Inactive) added a comment - Patch landed to Master.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13154/
            Subject: LU-6055 hsm: improve error handling in sanity-hsm
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 27f65af06d0906856041cbcf2537cfabe2a90583

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/13154/ Subject: LU-6055 hsm: improve error handling in sanity-hsm Project: fs/lustre-release Branch: master Current Patch Set: Commit: 27f65af06d0906856041cbcf2537cfabe2a90583

            It looks like this was introduced by http://review.whamcloud.com/12456 landing.

            adilger Andreas Dilger added a comment - It looks like this was introduced by http://review.whamcloud.com/12456 landing.

            John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13154
            Subject: LU-6055 hsm: improve error handling in sanity-hsm
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 1765a1a68870282994121a37a213d7ae0f4f4081

            gerrit Gerrit Updater added a comment - John L. Hammond (john.hammond@intel.com) uploaded a new patch: http://review.whamcloud.com/13154 Subject: LU-6055 hsm: improve error handling in sanity-hsm Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 1765a1a68870282994121a37a213d7ae0f4f4081

            People

              jhammond John Hammond
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: