[LU-6267] lctl in interactive mode repeated use of flags Created: 20/Feb/15  Updated: 23/Dec/15  Resolved: 02/Apr/15

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

Type: Bug Priority: Minor
Reporter: Josh Lothian (Inactive) Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: None
Environment:

Centos 6.5


Issue Links:
Duplicate
is duplicated by LU-6268 lctl in interactive mode fails to par... Resolved
Related
is related to LU-6025 lctl nodemap commands stop working in... Resolved
Severity: 3
Rank (Obsolete): 17566

 Description   

Flags passed to lctl subcommands in interactive are ignored after the first invocation. For example:

% lctl
lctl > get_param -n osc.knotfs-OST0037-osc-ffff8807eab68c00.cur_dirty_bytes
0
lctl > get_param -n osc.knotfs-OST0037-osc-ffff8807eab68c00.cur_dirty_bytes
osc.knotfs-OST0037-osc-ffff8807eab68c00.cur_dirty_bytes=0
lctl > get_param -n osc.knotfs-OST0037-osc-ffff8807eab68c00.cur_dirty_bytes
osc.knotfs-OST0037-osc-ffff8807eab68c00.cur_dirty_bytes=0
lctl >

Expected behavior would be identical output all three times



 Comments   
Comment by Andreas Dilger [ 20/Feb/15 ]

This might be a duplicate of LU-6025, which was just fixed recently. The patch to fix it was http://review.whamcloud.com/13063 and landed to master for 2.7.0.

Even if that isn't the issue, it makes sense to use that patch to help narrow down if there is something else causing the problem.

Comment by Jodi Levi (Inactive) [ 20/Feb/15 ]

Yu Jian,
Could you please look into this one and comment?
Thank you!

Comment by Jian Yu [ 26/Feb/15 ]

Here is the back-ported patch for Lustre b2_5 branch: http://review.whamcloud.com/13893
I'm verifying whether it resolves the issue in this ticket or not.

Comment by Jian Yu [ 26/Feb/15 ]

Here is the test result with the above patch on Lustre b2_5 branch:

# lctl
lctl > get_param -n osc.lustre-OST0000-osc-ffff88007db75c00.cur_dirty_bytes
0
lctl > get_param -n osc.lustre-OST0000-osc-ffff88007db75c00.cur_dirty_bytes
0
lctl > get_param -n osc.lustre-OST0000-osc-ffff88007db75c00.cur_dirty_bytes
0
lctl >

The patch can resolve the issue.

Comment by Jian Yu [ 26/Feb/15 ]

Hi Josh,
Could you please try to use http://review.whamcloud.com/13893 to see whether it resolves the issues in LU-6267 and LU-6268 for you?

Comment by Jian Yu [ 02/Apr/15 ]

Hi Josh,

The patch has landed. Let's close this ticket. If you still hit the issue, please feel free to reopen this ticket. Thank you.

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