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
            jlevi Jodi Levi (Inactive) made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            adilger Andreas Dilger made changes -
            Link New: This issue is related to LU-3852 [ LU-3852 ]
            jlevi Jodi Levi (Inactive) made changes -
            Assignee Original: WC Triage [ wc-triage ] New: John Hammond [ jhammond ]
            jlevi Jodi Levi (Inactive) made changes -
            Priority Original: Minor [ 4 ] New: Blocker [ 1 ]
            jlevi Jodi Levi (Inactive) made changes -
            Fix Version/s New: Lustre 2.7.0 [ 10631 ]
            jhammond John Hammond created issue -

            People

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

              Dates

                Created:
                Updated:
                Resolved: