[LU-6055] sanity-hsm file_creation_failure sends df output to stdout Created: 19/Dec/14  Updated: 20/Feb/15  Resolved: 29/Dec/14

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.7.0
Fix Version/s: Lustre 2.7.0

Type: Bug Priority: Blocker
Reporter: John Hammond Assignee: John Hammond
Resolution: Fixed Votes: 0
Labels: hsm, test

Issue Links:
Related
is related to LU-3852 sanity-hsm test_251: client26-vm "dd:... Resolved
Severity: 3
Rank (Obsolete): 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.



 Comments   
Comment by Gerrit Updater [ 19/Dec/14 ]

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

Comment by Andreas Dilger [ 19/Dec/14 ]

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

Comment by Gerrit Updater [ 26/Dec/14 ]

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

Comment by Jodi Levi (Inactive) [ 29/Dec/14 ]

Patch landed to Master.

Comment by Gerrit Updater [ 20/Feb/15 ]

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

Generated at Sat Feb 10 01:56:49 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.