[LU-16459] Fix test case sanity/test_205d Created: 10/Jan/23  Updated: 19/Jul/23  Resolved: 19/Jul/23

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

Type: Bug Priority: Minor
Reporter: Feng Lei Assignee: Feng Lei
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
is related to LU-16110 Make output of jobs_stats and rename_... Resolved
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

sanity/test_205d is the test case for LU-16110. It may fail silently for 2 reasons:

  1. yaml.safe_load_all() does not report error unless its content is used again (e.g. print the content)
  2. use "output=$()" to capture the output of a command. But it converts newline to space, so that valid YAML is converted to invalid. But the error cannot be found due to the reason above

And in a multi-mds system, put the testdir on mds1 forcefully



 Comments   
Comment by Gerrit Updater [ 10/Jan/23 ]

"Feng Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/49584
Subject: LU-16459 tests: fix YAML verification function
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b3cb846d88fa4e1d018f951a9f478a8e1f0d9999

Comment by Gerrit Updater [ 19/Jan/23 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/49584/
Subject: LU-16459 tests: fix YAML verification function
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 522da56e1f1d638e234870391b340a307e944587

Generated at Sat Feb 10 03:27:12 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.