[LU-13460] use correct obd index in print_failed_tgt() Created: 17/Apr/20  Updated: 17/Jul/20  Resolved: 11/Jul/20

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

Type: Bug Priority: Minor
Reporter: Emoly Liu Assignee: Emoly Liu
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

In function print_failed_tgt(), when calling llapi_obd_statfs(), the correct obd index should be used according to obd type.



 Comments   
Comment by Gerrit Updater [ 17/Apr/20 ]

Emoly Liu (emoly@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38264
Subject: LU-13460 lfs: use correct obd index in print_failed_tgt()
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b8413070b1b7695183fd1342042ec2f420b50435

Comment by Gerrit Updater [ 01/May/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38264/
Subject: LU-13460 lfs: use correct obd index in print_failed_tgt()
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 25e58c4755609f74bbcd046fd3cea17a7a6dd063

Comment by Peter Jones [ 01/May/20 ]

Landed for 2.14

Comment by Mikhail Pershin [ 16/Jun/20 ]

new test sanity 56rb() is not doing what it is supposed to do:

/mnt/lustre/d56rb.sanity/f56rb.sanity
error: find: no filename|pathname
find files matching given attributes recursively in directory tree.
usage: find <directory|filename> ...

in test the variable $mdt_index is not initialized so test doesn't check how --mdt option works

Comment by Emoly Liu [ 17/Jun/20 ]

tappro,

Thanks for pointing this out! I will submit a patch soon.

Comment by Gerrit Updater [ 17/Jun/20 ]

Emoly Liu (emoly@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38959
Subject: LU-13460 tests: initialize $mdt_idx in sanity.sh test_56rb
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 47e8f86465646d8428f7f0afe12f5e6a702353aa

Comment by Gerrit Updater [ 10/Jul/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38959/
Subject: LU-13460 lfs: make function print_failed_tgt() work correctly
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 219cbfc7665a9260f3d5c8ceee823506a89df42f

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