[LU-12672] recovery-small test 66 does not work correctly Created: 19/Aug/19  Updated: 27/Oct/19  Resolved: 27/Oct/19

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

Type: Bug Priority: Minor
Reporter: Oleg Drokin Assignee: Oleg Drokin
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Examining logs I discovered there's something wrong with hole recovery-small test 66 determines mdc cli name and so attempts to set/reset it fail:

== recovery-small test 66: lock enqueue re-send vs client eviction =================================== 05:08:41 (1566119321)
fail_loc=0x8000030c
  File: '/mnt/lustre/f66.recovery-small'
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: 2c54f966h/743766374d	Inode: 144115842806710274  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-08-18 05:08:42.000000000 -0400
Modify: 2019-08-18 05:08:42.000000000 -0400
Change: 2019-08-18 05:08:42.000000000 -0400
 Birth: -
fail_loc=0
fail_loc=0x80000136
error: get_param: param_path 'lustre-MDT0001-mdc-ffff880114af9800/mds_conn_uuid': No such file or directory
error: set_param: param_path 'mdc/lustre-MDT0000-mdc-ffff880114af9800
lustre-MDT0001-mdc-ffff880114af9800/import': No such file or directory
/home/green/git/lustre-release/lustre/tests/test-framework.sh: line 3234: /mnt/lustre/recon: Input/output error
Connected clients: oleg25-client.virtnet
Resetting fail_loc on all nodes...done.
05:09:27 (1566119367) waiting for oleg25-server network 5 secs ...
05:09:27 (1566119367) network interface is UP

Comparing to other users, determining it as

mdccli=$($LCTL dl | awk '/-MDT0000-mdc-/ {print $4;}')

seems to be wrong, every other bit of code seems to be getting it as

mdccli=$($LCTL dl | grep "${mdtname}-mdc" | awk '{print $4;}')

Sure, it's an extra grep which is not ideal but it appears to be actually doing he filterign as opposed to the awk? (see the MDT0001 somehow making the appearance in the output.



 Comments   
Comment by Gerrit Updater [ 19/Aug/19 ]

Oleg Drokin (green@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/35827
Subject: LU-12672 tests: Correctly determine mdccli in recovery-small test 66
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: a01b1edff188bea8eb5b9c8f858b768594bb76f5

Comment by Gerrit Updater [ 27/Oct/19 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35827/
Subject: LU-12672 tests: Correctly determine mdccli in recovery-small test 66
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: fba6abdb9818b01d02ac7663e4ac9881258c8ead

Comment by Peter Jones [ 27/Oct/19 ]

Landed for 2.13

Generated at Sat Feb 10 02:54:38 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.