[LU-13038] Test to verify parameters are not removed Created: 30/Nov/19 Updated: 19/Apr/22 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Rank (Obsolete): | 9223372036854775807 |
| Description |
|
We need to have a sanity test that will hopefully prevent the repeated bugs that have been introduced by sysfs cleanup patches that result in config parameters being removed or renamed, a few of which have unfortunately made it into releases before they are caught. The test should run "lctl list_param -R" on each of the client, mgs, mds1, and ost1 facets, strip out the fsname and OST/MDT/instance index unique values, "sort -u" the list so that it doesn't matter how many OSTs/MDTs there are, then compare it against a canonical list of parameters. It should be OK to have additional parameters (mostly this will happen if eg. both an MDT and OST are on the same node), but it should be a test failure if any parameters are removed (which will also catchy parameters that are renamed). |
| Comments |
| Comment by James A Simmons [ 30/Nov/19 ] |
|
This is a good idea. Its not just issues with naming but times when similar functionality is duplicated elsewhere that the new name doesn't sync with the older names which causes problems. We saw that with the qos_threshold_rr work. For the linux client at one time we had a sysfs-fs-lustre that listed the sysfs files we had as well as document what they did. Perhaps we could add this to the OpenSFS tree. It have to be updated. This file could be used for verifying if the parameter names are right. I attached the original file but it needs an update. |