[LU-4823] sanityn test_51c doesn't check lfs getstripe rc Created: 26/Mar/14  Updated: 09/Oct/21  Resolved: 09/Oct/21

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

Type: Bug Priority: Minor
Reporter: Alexander Lezhoev Assignee: WC Triage
Resolution: Cannot Reproduce Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 13262

 Description   

test_51c fails fith FAIL: "layout wrong" message if getstripe cannot return valid stripecount

+ test_51c
+ mcreate /mnt/lustre/f.sanityn.51c
+ /usr/sbin/lctl set_param fail_loc=0x172
fail_loc=0x172
+ echo 'Setting layout ...'
Setting layout ...
+ pid=18818
+ sleep 1
+ /usr/bin/lfs setstripe -c 2 /mnt/lustre/f.sanityn.51c
++ /usr/bin/lfs getstripe -c /mnt/lustre2/f.sanityn.51c
+ local 'stripecnt=/mnt/lustre2/f.sanityn.51c has no stripe info'
                                           ^^^^^^^^^^^^^^^^^^

+ '[' /mnt/lustre2/f.sanityn.51c has no stripe info -eq 2 ']'
sanityn.sh: line 2345: [: too many arguments

+ error 'layout wrong'
+ error_noexit 'layout wrong'
+ local TYPE=FAIL
+ local dump=true
+ '[' 'xlayout wrong' = xfalse ']'
+ log ' sanityn test_51c: @@@@@@ FAIL: layout wrong '

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